after saving a php file I receive Warning msgs on form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eliboone
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2004 9:29 am
Location: Illinois

after saving a php file I receive Warning msgs on form

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
eliboone
Forum Newbie
Posts: 2
Joined: Wed Apr 14, 2004 9:29 am
Location: Illinois

Post 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
Post Reply