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?

 

 

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.

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.