I am new here, so I hope this is the correct place to post this.
I am using a script to automatically generate a sitemap. The sitemap gets generated from a Perl file that is being treated as a CGI script.
The file is called from a PHP include. I’ve used PHP includes before, so I do not know what the problem is.
The script by itself works fine when it is pointed to directly in my browser, like this:
<a href="../cgi-bin/tree/tree.pl">go to sitemap</a>
It shows the sitemap of the directory it is supposed to map, so I know it works. It generates a nested list.
But when I call it from a PHP webpage file using a PHP snippet (a virtual include) like this:
[php]<?php virtual ("../cgi-bin/tree/tree.pl"); ?>[/php]
the page is blank from that point in the code on down!
This is a very simple page I created to test it, with nothing else interfering.
The way is supposed to work is that the PHP snippit is supposed to embed the sitemap in an HTML (PHP) file.
I’ve tried using the word include instead of virtual & that causes an error.
I have been struggling with this, so I hope someone can help! I know other people have used this method but I do not know what they did differently.