Virtual() not working

keefe007

Verified User
Joined
Dec 25, 2004
Messages
282
I moved a new site to my server that uses the php virtual() function. I'm running apache2 and php5 on this server. For some reason none of the virtual() calls are working.

Here's the error from a sample call:


Warning: virtual() [function.virtual]: Unable to include '/virtual/include/header/'' - request execution failed in /home/haymasters/domains/domain.com/public_html/index2.php on line 6

I can't even do this:


Warning: virtual() [function.virtual]: Unable to include 'http//google.com/' - request execution failed in /home/haymasters/domains/haymasters.com/public_html/index2.php on line 6

Nothing is showing up in the error logs. Anyone have any ideas?

Keefe
 
I've narrowed the problem down to this:

<?php virtual("/test/"); ?> - doesn't work

<?php virtual("/test/index.html"); ?> - works fine

I have another DA server running Apache 1.3 and PHP 4.x and both of these work fine on that server.

Why isn't apache2/php5 able to fine the index file and include it?

Thanks!
 
I've actually narrowed this down a bit more. I think its an apache2 issue now.

<!--#include virtual="/test/"--> - doesn't work
<!--#include virtual="/test/index.html"--> - works fine

any ideas?
 
Back
Top