Jump to content

Includes .shtml in a .php page with Virtual, include(parser.php) isn't working..


buildakicker

Recommended Posts

Hi all,

 

I have a strange issue going on. It may be server related, but I don't know what to look for.

 

I have a .php page with a few Virtual Includes:

<?php virtual ("nav.shtml"); ?>

 

...throughout it. I have also a parser that is displaying XML data in a table form.

 

The parser works with the standard:

 <?php include ('parser.php'); ?>

 

...however, if I have the Virtual above the include, the parser doesn't work. Or at least it will not "find the file" however, the file is there and it works ABOVE the virtual, displaying it fine...

 

For example, this works:

<?php include ('parser.php'); ?>
<?php virtual ('file.shtml'); ?>

 

This doesn't:

<?php virtual ('file.shtml'); ?>
<?php include ('parser.php'); ?>

 

Any thoughts?

 

 

Link to comment
Share on other sites

It's hard to say without a little more detail. If you check the user comments section in the manual, you'll see there's a lot of undocumented behavior involved using the virtual function.

 

I would personally avoid it's use, as it's Apache-specific, and there are ways to duplicate this behavior that are more universal.

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.