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
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!
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