Re: Issue with virtual() calls...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux