note 101271 added to function.readlink
| From: | FranoisVespa at osu1 dot php dot net | Date: | Mon, 06 Dec 2010 14:00:44 +0000 |
| Subject: | note 101271 added to function.readlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-174651@lists.php.net to get a copy of this message | ||
I totally agree with mookowg at gmail dot com! the realpath($link) function should be used instead
of readlink(), also because realpath() returns absolute path, which is not the case of readlink()
which can return the path relative of the link to the target (ex, ../target.txt)
----
Server IP: 80.64.47.13
Probable Submitter: 95.61.51.75
----
Manual Page -- http://www.php.net/manual/en/function.readlink.php
Edit -- https://master.php.net/note/edit/101271
Del: integrated -- https://master.php.net/note/delete/101271/integrated
Del: useless -- https://master.php.net/note/delete/101271/useless
Del: bad code -- https://master.php.net/note/delete/101271/bad+code
Del: spam -- https://master.php.net/note/delete/101271/spam
Del: non-english -- https://master.php.net/note/delete/101271/non-english
Del: in docs -- https://master.php.net/note/delete/101271/in+docs
Del: other reasons-- https://master.php.net/note/delete/101271
Reject -- https://master.php.net/note/reject/101271
Search -- https://master.php.net/manage/user-notes.php