Forum Moderators: coopster

Message Too Old, No Replies

Server privileges on my image uploads

PHP script can't delete images that it created!

         

GalaxyTramp

3:13 pm on Jun 4, 2008 (gmt 0)

10+ Year Member



When my PHP script uploads image files to my server they are assigned to owner 99 99 and no group on the server. This means that my PHP script fails when it tries to delete them. I think I need to somehow assign them to my ownership and group in order that deletion works?

Having pondered over this for some time I do not quite understand why PHP cannot delete an image that it has created?

If the PHP script as user "server" for example creates a file why can it not delete it also?

Can somebody explain this for me and maybe offer a solution to my problem.

(Apache/linux server)

regards

C

eelixduppy

2:16 pm on Jun 10, 2008 (gmt 0)



hmmm...not sure about this one. If the file was created by PHP it should be able to remove it. Have you had any luck with this yet? I'd imagine it has to do with something specific to your server setup itself.

oh, and Welcome to WebmasterWorld!