I am trying to include a Perl Poll script into php. If I could use SSI all I would have to do is <!--#exec cgi="ip.cgi?page=viewpoll;newest=1" --> But I just cant seem to get this to work with php.. please help!
Hi,
try this:
<?php $path = "./script.pl"; system("perl $path"); ?>
firemouse2001
That dosnt do anything.. am i supposed to echo system("perl $path");?
strange. Normally system() should display the output and exec() shouldn't. Have a look at the program execution functions: http://www.php3.de/manual/en/ref.exec.php
Or try the perl $path - it should capture everything that the perl program sends to stdout.
perl $path
this worked:
virtual("ip.cgi?page=viewpoll;newest=1");
Ooh, a new one on me :-). That's half the reason I come here - as a learning experience!