Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

thumbnails owned by apache

Status
Not open for further replies.

esromneb

Programmer
Mar 30, 2002
76
US
Hi, I downloaded a thumbnail script, and have made my own modifications. So far I'm having these problems.

For starters, I had to do a umask(000) for my images to even be readable.

Second off, all my images are owned by apache. Is there a way to chown them to my user? Thanks

-ben
 
When a PHP script runs, it runs under the user as which Apache runs. If your Apache server is running as the user apache, all files created by scripts running under your user should be owned by apache.


PHP supports a chown() function.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
When an image or file is uploaded by a php file, the owner of the file is apache(cause apache is running the php-engine) so if you want to make any changes to the file you should use php.
if you want to change the attrib use chown() after you have upload the image! and have in mind use this mode (0777) for 777.
 
No, I was reffering to the tag that tek-tips puts on all messages. I was confused and I thought it was from the users. But I get it now. Thanks ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top