
March 9th, 2001, 11:29 PM
|
|
Junior Member
|
|
Join Date: Mar 2001
Posts: 0
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
I'm using PHP with my site, but I'm wanting to use Perl with it.
The perl script i wish to use, uses it's own html template file (which is a seperate file to the perl script).
I've created my own php file which i use as the template to my whole website, it contains this include statement:
<?php include ("cgi-bin/".$document.".cgi"); ?>
Instead of using the script as "cgi-bin/perlscript.cgi" i want to use this "name.php?document=perlscript".
I basically want to do it like this to save time when I decide to change the layout and look of my site by only having to modify one file.
The problem i'm having is that the browsers don't seem to recognise that it is perl and just outputs the whole perl script as html text inside the php document.
How can I get it to work properly.
I hope I've expressed my problem clearly!
Thanks in advance for any help.
Tim Burgan
burgan@iprimus.com.au
|