Re: Doubt in script to upload files to server
| From: | Fred | Date: | Wed, 21 Nov 2001 06:17:56 +0000 |
| Subject: | Re: Doubt in script to upload files to server | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75359@lists.php.net to get a copy of this message | ||
You have two options. If you have root access you can login as root and
delete them. If it is something you will be doing on an ongoing basis you
can add a cron job as root to chrgp and chown the files in the upload
directory every so often. You would then be able to delete them as whatever
user you normally login as.
If you do not have root access you will need to write a php script to delete
the files for you. Since all PHP scripts run as the user Apache is run as,
files created using PHP can also be deleted with PHP.
Fred
Vedha Kannan <ksoundar@san.rr.com> wrote in message
news:003a01c17251$2d0982c0$f98c4b42@san.rr.com...
Hi,
I'm new to this group. I have a problem with a php script that I'm
creating to upload files to the server.
The uploaded files have their owner as "apache" and not me as the owner.
Hence I'm not able to delete the files that are uploaded.
How do I solve this problem?
Thanks,