note 83815 added to function.realpath
| From: | ratonel78 at yahoo dot com | Date: | Fri, 13 Jun 2008 00:03:39 +0000 |
| Subject: | note 83815 added to function.realpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140393@lists.php.net to get a copy of this message | ||
//windows
realpath('smarty/'); //is D:\whatever\folder\smarty\
//unix
realpath('smarty/'); //is /whatever/folder/smarty
if you are on windows, use smarty with security on,
and set a secure_dir with an ending / this is why you receive the error:
Smarty error: (secure mode) accessing "file.tpl" is not allowed
----
Server IP: 69.147.83.197
Probable Submitter: 82.76.21.22
----
Manual Page -- http://www.php.net/manual/en/function.realpath.php
Edit -- https://master.php.net/note/edit/83815
Del: integrated -- https://master.php.net/note/delete/83815/integrated
Del: useless -- https://master.php.net/note/delete/83815/useless
Del: bad code -- https://master.php.net/note/delete/83815/bad+code
Del: spam -- https://master.php.net/note/delete/83815/spam
Del: non-english -- https://master.php.net/note/delete/83815/non-english
Del: in docs -- https://master.php.net/note/delete/83815/in+docs
Del: other reasons-- https://master.php.net/note/delete/83815
Reject -- https://master.php.net/note/reject/83815
Search -- https://master.php.net/manage/user-notes.php