Re: problem using unlink()

From: Date: Tue, 05 Aug 2003 13:54:40 +0000
Subject: Re: problem using unlink()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158285@lists.php.net to get a copy of this message
* Thus wrote James Brash (jamesbrash@btinternet.com): > > Hi, > I have a problem using unlink(); on a system using FreeBSD and Apache... > where my local system using Windows and Apache experiences no problems. > > <? > unlink("test1.php"); > ?> > > On the windows system is deletes the file, but on the FBSD system the file > does not delete and returns no error. I have tried using the full path, and > CHMODing the files but no luck. Thanks for any help/advice you can give me. Make sure your error_reporting flag is turned on to the fullest value, I usually apply this in a script to ensure all flags are turned on: error_reporting(-1); Php should output some sort of text that is causing unlink to fail. HTH, Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#158285) next »