Jump to content

Problem with virtual()


keefe007

Recommended Posts

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've narrowed the problem down to this:

 

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

 

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

 

I have another 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!

Link to comment
https://forums.phpfreaks.com/topic/78297-problem-with-virtual/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.