• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

SSI calls in php pages?

LastActionHero

WBBMods.com
NLC
I want to execute a cgi script in php pages...is this possible?

SSI calls that i want to use

<!--#exec cgi="/cgi-bin/script.cgi" -->

or

<!--#include virtual="/cgi-bin/script.cgi" -->

Is this possible?
 
no but i think you use <? php include="" ?>
i think that is the code and if you wanted you could include a .shtml page with that code in it.
 
Originally posted by Epgs
no but i think you use <? php include="" ?>
i think that is the code and if you wanted you could include a .shtml page with that code in it.


Including the .shtml page is a good idea, I'll try that.

Originally posted by Hayama-kun
Try looking up system or something like that

:confused:
 
You have to execute the script, so you have use the perl command from the terminal prompt, meaning the PHP equivalent of C++'s system("");
 
Originally posted by Hayama-kun
You have to execute the script, so you have use the perl command from the terminal prompt, meaning the PHP equivalent of C++'s system("");

OK i'll search for that, if you find something let me know.
 
So virtual() is basically the equivalent of LWP's getprint() in Perl? :confused2
 
I mean if one can assume that it always works like that (or has it to do with where you host).
 
Back
Top