fopen() error, need some advice
Posted: Fri Mar 26, 2004 7:24 am
I am new to php and I could use some advice.
I'm running php 4.3.4 and abyss server on a win98 machine.
php is installed correctly as I have tested it using phpinfo().
I get this error when executing a certain script that I wrote...
Warning: fopen(undeliverable email.txt): failed to open stream: No such file or directory in C:\Program Files\Abyss Web Server\htdocs\php\sendmixed.php on line 6
Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\Abyss Web Server\htdocs\php\sendmixed.php on line 7
These errors are associated with a script that allows users to upload a file to my server and then an email is sent to me. The file above (email.txt) is the file I am trying to upload using the form, so naturally it doesn't already exist in the location specified by the above "fopen" error.
What needs to be done to fix this?
just so you know:
register_globals=on
safemode=off
thanks!
I'm running php 4.3.4 and abyss server on a win98 machine.
php is installed correctly as I have tested it using phpinfo().
I get this error when executing a certain script that I wrote...
Warning: fopen(undeliverable email.txt): failed to open stream: No such file or directory in C:\Program Files\Abyss Web Server\htdocs\php\sendmixed.php on line 6
Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\Abyss Web Server\htdocs\php\sendmixed.php on line 7
These errors are associated with a script that allows users to upload a file to my server and then an email is sent to me. The file above (email.txt) is the file I am trying to upload using the form, so naturally it doesn't already exist in the location specified by the above "fopen" error.
What needs to be done to fix this?
just so you know:
register_globals=on
safemode=off
thanks!