View Single Post
Old 01-02-2004, 05:39 AM  
notjoe
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto, Canada
Posts: 5,599
Quote:
Originally posted by acctman
how would i go about checking to see if my error reporting is on
Your Webserver is running under a non-root userspace. Files which get uploaded will be owned by this user.

Since this isnt a _root_ user you cannot chown the file to another user on the machine using the php script, about the best you could do is chmod 755, so that only the webserver user can write to the file but everyone else on the system can read/execute it.

Right from Php.net/chown
"Attempts to change the owner of the file filename to user user (specified by name or number). Only the superuser may change the owner of a file. "
notjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote