note 38452 added to function.unlink

From: Date: Mon, 22 Dec 2003 07:17:12 +0000
Subject: note 38452 added to function.unlink
Groups: php.notes 
Request: Send a blank email to php-notes+get-62308@lists.php.net to get a copy of this message
using apache and php on WINDOWS there is a peculiarity about using unlink. unlink can only take relative paths on windows. using an absolute path will only result in a "Permission denied" error. this means that this will work. unlink("/tempfile.txt"); while this will give a "permission denied" error. unlink("c:\web_root\tempfile.txt"); well, hope it help someone, because i was very frustrated till i figured it out. ---- Manual Page -- http://www.php.net/manual/en/function.unlink.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38452 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38452&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38452&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62308) next »