Re: pathname for unlink()

From: Date: Sun, 25 Jun 2000 15:49:41 +0000
Subject: Re: pathname for unlink()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2994@lists.php.net to get a copy of this message
You just need to specify the directory like this: unlink("/path/to/file"); Make sure the user PHP is running as, has write permissions to the file and directory. Jason ----- Original Message ----- From: "Lawrence Blades" <lrblades@clarksdale.com> To: <php-general@lists.php.net> Sent: Saturday, June 24, 2000 7:57 PM Subject: [PHP-GENERAL] pathname for unlink() > Searched archives; no help. > > I am trying to delete a file located in ANOTHER DIRECTORY than the page > with my script on it. > Of course I get the error message "Warning: Unlink failed (No such file > or directory) in blah, blah blah - the path to the script's directory > > Do I use fopen()? opendir()? > > If so, what do I put after it to connect the pathname with the unlink function? > A while statement? How? > > Thanks in advance.... > -- > Lawrence Blades > Digital Technologies > P.O. Box 673 > Clarksdale, MS 38614 > Hm: 662-627-9539 > Office: 662-624-6586 > Cell: 662-902-3092 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > _______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net

« previous php.general (#2994) next »