Re: Can not delete files that were uploaded

From: Date: Fri, 28 Jun 2002 23:27:28 +0000
Subject: Re: Can not delete files that were uploaded
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107338@lists.php.net to get a copy of this message
You can try to 'chmod' it first : @chmod ($myfile, 0777); and then do an exec or passthru.. exec("rm -f $myfile"); Note the '@', if the chmod fails, he doesn't show it... Good luck Dyon "Anan" <anan@etcyber.net> schreef in bericht news:20020712071858.54912.qmail@pb1.pair.com... > Hello, > > I use PHP to upload files to the web server via web browser. However, I can > not delete the files later cause the Redhat linux server running on safe > mode. Do I have to changed the owner of the file during the file uploading > time? > > Please let me know how to solve this problems. > > Anan > >

« previous php.general (#107338) next »