Re: how to manage permissions for file uploader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Lamp Lists wrote:
to upload an image for a photo gallery (my own code) I have to have permission for the directory images 0777.
but having permission for a directory 0777 is REALLY bad idea, isn't it?
I'm "owner" of the directory (lamp:lamp images).

what to do to set my code has permission to upload an image into the images directory and have permissions on the directory 0755?

I googled for file uploader scripts and classes to se how they handle it but I can't see that part. just file/size/type validation and moving uploaded file to final destination.

thanks.

-LL





A simple way is have your program create the dir, instead of you doing it with ftp or a file manager on the sever. Then your scripts will "own" the dir.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux