Gossamer Forum
Home : General : Perl Programming :

cgi call

Quote Reply
cgi call
There is a way to call a cgi script from within a php page s that the cgi script becomes part of the php page - like an include - not using SSI.
From memory it is something like calling an image... But for the life of me cannot find a reference to it.

<img src ="/cgi-bin/script.pl> - or something like that.

Any help? Apreciate any help.
Quote Reply
Re: [Gypsypup] cgi call In reply to
If you are accessing it externally, you could use a routine like this;

Code:
function showURL($url) {
$got = @file($url);
echo $got;
}

...then in your script, call it with;

<? showURL('http://www.yourdomain.com/page.cgi?something') ?>

Hope that helps :)

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates