PDA

View Full Version : More php related question, than VB question....


Gutspiller
03-22-2002, 07:12 AM
but, since so many here know php quite well, I figured you could possibly help me with this question too.

I am installing a poll on my front page, but it wants me to put this line on my front page where I want the poll to appear.

<!--#exec cgi="path/to/Poll_It_SSI.cgi" -->

The problem is, is that, that line will work in a file with the extension of .shtml, but it wont work in a php extension file, which is what my front page is.

Can somebody please tell me what I need to change to call the file, but so that it will work in a php file instead of a .shtml

I would greatly appreciate any help on this subject.

Thank you.

Crinos
03-22-2002, 09:10 AM
<?php


include("path/to/Poll_It_SSI.cgi");


?>

Gutspiller
03-22-2002, 02:25 PM
Originally posted by Crinos
<?php


include("path/to/Poll_It_SSI.cgi");


?>

That doesn't seem to work. It just puts the code of that file into the page (with maybe a little more/less stuff)

How do I check the path of Perl? And does anybody know off hand if Ventures Online use Perl 5?

Logician
03-25-2002, 09:39 AM
If you're on Apache, that should work:
virtual ("path/to/Poll_It_SSI.cgi");

Gutspiller
03-25-2002, 03:10 PM
Originally posted by Logician
If you're on Apache, that should work:
virtual ("path/to/Poll_It_SSI.cgi");

Many thanks! I got it working. If you want to see it in action you can hitup: http://www.GameForumz.com The poll is up and running. It's pretty nice too, because it has an archive and everything. :devious: