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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.