NYCPHP Meetup

NYPHP.org

[nycphp-talk] File uploading: When PHP doesn't have permission to

Webapprentice . webapprentice at mail.com
Sat Jan 3 00:04:38 EST 2004


Hi,
I was trying to use the file uploading aspect of PHP.

When I tried to execute this line
move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadFile)

I get a permission denied error.

$_FILES['userfile']['errors'] is equal to 0, which indicates the file was uploaded to the temp directory of the host, so I think it either couldn't copy it to where I wanted (my user directory) or copy out of the tmp directory.  Running phpinfo() in my user directory indicates that file_uploads is ON and safe_mode is OFF on the server.

I don't own the server, so I don't think I can give PHP permission, or can I?

Do I have any way around this?

Thanks,
Stephen
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm




More information about the talk mailing list