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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!