Page 1 of 1

after saving a php file I receive Warning msgs on form

Posted: Wed Apr 14, 2004 9:29 am
by eliboone
Hello,

On my website I have a form for submitting photos. The file hasn't been altered in a year. I made a small change to the text that appears on the screen and saved it. Now when I fill out the form and click submit the next page that peoples submitting photos sees (my .php file) has several Warning messages on it. I don't really know PHP so I am not sure what to do. Here are the Warning messages. I would be appreciative if someone could take a look. Thanks, Eli

http://www.ferretdepot.com/galleryform.html

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/ferretdepot.com/httpdocs/Merchant2/submitphoto.php on line 47

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/ferretdepot.com/httpdocs/Merchant2/submitphoto.php on line 14

Warning: fopen("/usr/local/psa/home/vhosts/ferretdepot.com/httpdocs/tempphotodir/60406.jpg", "r") - Operation not permitted in /home/httpd/vhosts/ferretdepot.com/httpdocs/Merchant2/submitphoto.php on line 14

Warning: stat failed for /usr/local/psa/home/vhosts/ferretdepot.com/httpdocs/tempphotodir/60406.jpg (errno=2 - No such file or directory) in /home/httpd/vhosts/ferretdepot.com/httpdocs/Merchant2/submitphoto.php on line 14

Warning: Supplied argument is not a valid File-Handle resource in /home/httpd/vhosts/ferretdepot.com/httpdocs/Merchant2/submitphoto.php on line 14

Warning: Unlink failed (No such file or directory) in /home/httpd/vhosts/ferretdepot.com/httpdocs/Merchant2/submitphoto.php on line 81

Posted: Wed Apr 14, 2004 9:31 am
by JayBird
i think your host may have update their version of PHP and safe mode may now be turned on, or you don't have the correct permission. I would contact your provider.

Or try:

use move_uploaded_file() instead of copy()

Mark

Posted: Wed Apr 14, 2004 11:07 am
by eliboone
Thanks for the reply Bech100. It turns out that some of the file paths were changed when we switched hosts. All is well now.

Eli