Gossamer Forum
Home : General : Internet Technologies :

Execute a CGI script through PHP

Quote Reply
Execute a CGI script through PHP
How can I execute a CGI script through PHP? PHP doesn't like this at all:

<!--#exec cgi="/cgi-bin/poll/fantasycricket.pl" -->

---------------
Cricket Web - http://www.cricketweb.net
Cricket Web Forum - http://forum.cricketweb.net/
---------------
Quote Reply
Re: [Philip_Clark] Execute a CGI script through PHP In reply to
SSI directives do not work on CGI outputed pages. I would assume however, that PHP has a function that allows you to execute a program and display it's STDOUT.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] Execute a CGI script through PHP In reply to
Yeah - any idea what that function is? Crazy

---------------
Cricket Web - http://www.cricketweb.net
Cricket Web Forum - http://forum.cricketweb.net/
---------------
Quote Reply
Re: [Philip_Clark] Execute a CGI script through PHP In reply to
http://forums.devshed.com/t22520/s.html
Quote Reply
Re: [Philip_Clark] Execute a CGI script through PHP In reply to
Pretty simple name Tongue

http://php.net/system

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
Quote Reply
Re: [Philip_Clark] Execute a CGI script through PHP In reply to
You might also look at virtual().

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund