note 103440 added to function.realpath
| From: | netmosfera at gmail dot com | Date: | Wed, 13 Apr 2011 16:55:25 +0000 |
| Subject: | note 103440 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178801@lists.php.net to get a copy of this message | ||
please note that realpath is a performance killer
on my sys listing 100 files with realpath takes 0.2 sec (core2quad 6600 x64 4gbddr2)
in most cases, its better to use getcwd() instead and work with dirname() to resolve ".."
----
Server IP: 69.147.83.197
Probable Submitter: 87.11.150.121
----
Manual Page -- http://www.php.net/manual/en/function.realpath.php
Edit -- https://master.php.net/note/edit/103440
Del: integrated -- https://master.php.net/note/delete/103440/integrated
Del: useless -- https://master.php.net/note/delete/103440/useless
Del: bad code -- https://master.php.net/note/delete/103440/bad+code
Del: spam -- https://master.php.net/note/delete/103440/spam
Del: non-english -- https://master.php.net/note/delete/103440/non-english
Del: in docs -- https://master.php.net/note/delete/103440/in+docs
Del: other reasons-- https://master.php.net/note/delete/103440
Reject -- https://master.php.net/note/reject/103440
Search -- https://master.php.net/manage/user-notes.php