Web Hosting Talk







View Full Version : PHP help needed


svdorr
09-26-2005, 09:40 PM
I have a client that is having troubles with php script he wrote.

The script is located at:

http://www.district14.org/Minnesota/Minneapolis/Admin/login.php

When he attempts to upload a file, he gets the following error.

filetouploadhehe h/home/distacbl/public_html/Minnesota/Minneapolis/Results/
Warning: move_uploaded_file(/home/distacbl/public_html/Minnesota/Minneapolis/Results/): failed to open stream: Is a directory in /home/distacbl/public_html/Minnesota/Minneapolis/Admin/login.php on line 134

Warning: move_uploaded_file(): Unable to move '/tmp/phppfOzu9' to '/home/distacbl/public_html/Minnesota/Minneapolis/Results/' in /home/distacbl/public_html/Minnesota/Minneapolis/Admin/login.php on line 134
There was a problem moving your file

He has several php scripts like this on his site. They were working and now they are not. Nothing with PHP has been changed.

Any suggestions on what to check, as I am not a php expert by any means.

Thanks in advance.

pphillips
09-26-2005, 10:08 PM
You should check to make sure that the directory he is trying to write the file to has write permission for your webserver user.

svdorr
09-27-2005, 07:22 PM
wshost,

Thanks for the reply. The web server does have write permissions to the folder in question. Any other thoughts?

Thanks.

sonic10
09-27-2005, 07:30 PM
I was able to upload a test .txt file but no other file types,,