note 125158 added to function.unlink

From: Date: Wed, 01 Jul 2020 07:41:31 +0000
Subject: note 125158 added to function.unlink
Groups: php.notes 
Request: Send a blank email to php-notes+get-214823@lists.php.net to get a copy of this message
unlink works the same as the rm command on nix based loses or del command on windows, it will not resolve the file but remove the exact path given even if that path is just a link. E.G /var/www/test/index.php = symlink(/home/test/www/index.php) <?php unlink("/var/www/test/index.php"); ?> Will just delete the link, not the original file where as <?php unlink("/home/test/www/index.php"); ?> Will unlink the original file path and break the symlink, and allow the system to overwrite as the filesystem will not know of the file's location anymore. ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.166.36 (proxied: 2a02:8010:65cc:1:4510:7d83:5ad3:93c1) ---- Manual Page -- http://php.net/manual/en/function.unlink.php Edit -- https://master.php.net/note/edit/125158 Del: integrated -- https://master.php.net/note/delete/125158/integrated Del: useless -- https://master.php.net/note/delete/125158/useless Del: bad code -- https://master.php.net/note/delete/125158/bad+code Del: spam -- https://master.php.net/note/delete/125158/spam Del: non-english -- https://master.php.net/note/delete/125158/non-english Del: in docs -- https://master.php.net/note/delete/125158/in+docs Del: other reasons-- https://master.php.net/note/delete/125158 Reject -- https://master.php.net/note/reject/125158 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214823) next »