Page 1 of 1

UPLOADING FILES ERROR! CAN't WRITE...

Posted: Wed Jul 12, 2006 1:31 am
by fwing
I am trying out an uploading program that output this error msg:

Error report, sending files to server
Not allowed to write to dir:/upload/


The scripts are stored in server under public directory having this permission 0755.
Is the program script missed out the login parts? How to do it in PHP - to submit my account name and password?
TQ.

Posted: Wed Jul 12, 2006 1:51 am
by jamiel
Either change the ownership of that directory to the user your webserver runs as, otherwise chmod 766 it. Your webserver needs write access.

Posted: Wed Jul 12, 2006 2:22 am
by Benjamin
Are you trying to write to /upload/ or something like /var/www/apache/htdocs/yoursite/upload/?

/upload/ isn't going to work.

UPLOAD PROBLEM!

Posted: Wed Jul 12, 2006 8:39 am
by fwing
I am trying to upload file from PC to My Server under my account http://www.abc.com. I want to use

is_uploaded_file() and move_uploaded_file()

to do the uploading. Now I notice the destination directory is having pemission 0755 and I failed.
Do I better use the PHP ftp function to log in and then use the respective uploading functions for the jobs?
TQ.