i am using this script for the email attachment but when i execute the form on my server it shows to warning
Warning: fread(): supplied argument is not a valid stream resource
Warning: fclose(): supplied argument is not a valid stream resource
pls help
Change this:
to this: