buildakicker Posted November 28, 2011 Share Posted November 28, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/251996-includes-shtml-in-a-php-page-with-virtual-includeparserphp-isnt-working/ Share on other sites More sharing options...
xyph Posted November 29, 2011 Share Posted November 29, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/251996-includes-shtml-in-a-php-page-with-virtual-includeparserphp-isnt-working/#findComment-1292029 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.