note 33142 added to function.virtual
| From: | abentley at panoramicfeedback dot com | Date: | Tue, 17 Jun 2003 15:29:06 +0000 |
| Subject: | note 33142 added to function.virtual | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50509@lists.php.net to get a copy of this message | ||
Here's an update to tomwk's code:
function safe_virtual( $filename )
{
$curDir = getcwd();
virtual ( $filename );
chdir( $curDir );
}
This is better if you've already changed your current directory to be something other than your
script's directory. It works for PHP4 and above.
----
Manual Page -- http://www.php.net/manual/en/function.virtual.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33142
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33142&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33142&report=yes