note 111080 added to function.virtual
| From: | PeterKehl | Date: | Sat, 12 Jan 2013 03:47:24 +0000 |
| Subject: | note 111080 added to function.virtual | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192949@lists.php.net to get a copy of this message | ||
This documentation is not clear enough. Parameter $filename is not a filename as on the filesystem,
but a URI. It can be absolute, starting with /, or relative to URI that involved the PHP script
which called virtual(). (I.e. if the PHP script that calls virtual() is invoked via PHP
require/require_once/include/include_once mechanism and it passes a relative URI to virtual(), then
that URI must be relative to the URI of the topmost PHP script on the inclusion stack.)
Not sure how relative URIs work if the request which calls virtual() was processed through Apache
rewrite rules.
----
Server IP: 69.147.83.199
Probable Submitter: 103.4.120.131
----
Manual Page -- http://php.net/manual/en/function.virtual.php
Edit -- https://master.php.net/note/edit/111080
Del: integrated -- https://master.php.net/note/delete/111080/integrated
Del: useless -- https://master.php.net/note/delete/111080/useless
Del: bad code -- https://master.php.net/note/delete/111080/bad+code
Del: spam -- https://master.php.net/note/delete/111080/spam
Del: non-english -- https://master.php.net/note/delete/111080/non-english
Del: in docs -- https://master.php.net/note/delete/111080/in+docs
Del: other reasons-- https://master.php.net/note/delete/111080
Reject -- https://master.php.net/note/reject/111080
Search -- https://master.php.net/manage/user-notes.php