note 10358 modified in virtual by ronabop
| From: | ronabop@php.net | Date: | Wed, 03 Jan 2001 07:43:26 +0000 |
| Subject: | note 10358 modified in virtual by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9324@lists.php.net to get a copy of this message | ||
virtual() appears to work very differently now.
In the past I think it actually went out through TCP and made an HTTP request to whatever URL you
gave it. It probably tried to be smart about parsing the returned stuff, but sometimes screwed up
on HTTP entity headers, if you were still sending the header from the script making the virtual()
call.
I'm pretty sure I remember being able to request a php file - which must have spawned another
httpd process that ran its own PHP and fed me back the results.
Now you can only give a local path (from the perspective of Apache's root dir). So HTTP header
weirdness can no longer happen.
This seems more sensible, though less powerful.
http://www.php.net/manual/function.virtual.php