Re: Issue with virtual() calls...

From: Date: Mon, 24 Jan 2005 20:25:49 +0000
Subject: Re: Issue with virtual() calls...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207159@lists.php.net to get a copy of this message
Potter, Jeff wrote: > is still broken on others. The content generated from the virtual() > call inside a page ends up in the browser > before the opening <HTML> tag. See the simplified example below: Work-Around: Until you get this hammered out, you could use file_get_contents() with a URL instead. Granted, it's not an Apache sub-request, and it goes in the access_log, so it's not THE SAME as virtual(), but your HTML output will be correct, at least... I'm guessing that performance will suffer slightly, as chewing up a whole 'nother HTTP connection is probably a bit more expensive than a sub-request... Or maybe not. You'll have to test on your server to find out. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#207159) next »