RE: [PHP] probelm : delete files using PHP

From: Date: Wed, 24 Jul 2002 10:51:58 +0000
Subject: RE: [PHP] probelm : delete files using PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109281@lists.php.net to get a copy of this message
> I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux. > > I want to delete files in a directory,which were created 15 days back. > > I can not do it, with PHP filesystem and directory functions, as > PHP runs as > "nobody" user. To delete a file the user running the web server needs to be able to write to the directory containing the file. Either the directory should be owned by the user nobody and writable by its owner, or in the group nobody and writable by group, or (the most dangerous choice) writable by any user. To change the ownership, you need to be able to log in as the user root. Simon Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml

« previous php.general (#109281) next »