Re: [PHP] directories - again



If 'nobody' owns those files because your PHP script was 'nobody' when
it uploaded it, write another PHP script, running as 'nobody' to chmod
the files.

On Thu, June 7, 2007 2:46 am, Ross wrote:
Hi,

I can make the files now after setting the permission to my images
folder
but I cannot delete the folder or images in it. I have tried unlink
and
rmdir with no success. Even with filezilla cannot delete it


The problem seems to be the images that are set to chmod of 600 and
cannot
be changed. I upload the file with this

move_uploaded_file($_FILES['userfile']['tmp_name'][$i], $img_url)

is there a way to set the permissions of the images on upload to
anything
other than 600?

R.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.



Relevant Pages

  • Re: Keeping user uploads private
    ... upload their own "mascot" images. ... You will need to put a PHP script between the files and the public website. ... Place the uploaded images into a separate folder that cannot be seen by the public. ... Then use a publically accessible php script that does something like this: ...
    (alt.php)
  • Re: getting "chmod(): Operation not permitted" on attempted file changes
    ... I upload files thru this script, and am trying to modify them after ... only "nobody" may edit the file. ... Your server has their web service set to run PHP in the web server's ... By the way, maybe I'm mistaken, did you have the PHP script create ...
    (alt.php)
  • Re: Keeping user uploads private
    ... upload their own "mascot" images. ... You will need to put a PHP script between the files and the public ... (Never tried .htaccess before.) ...
    (alt.php)
  • Re: [PHP] FTP - folders
    ... This is what I am having trouble with, I can see where you can upload each ... I have not done this myself, but I think the idea* is to have your server-side php script communicate with a your client-side php script via socket functions. ...
    (php.general)
  • Send files before the php script executes
    ... Anybody knows if is posible in Linux with PHP to do upload of several ... files sending the data before that php script executes. ... the files are upload and them the php script is executed. ... In the server in my php script I want to ...
    (php.general)