|
-
Dec 12th, 2003, 04:47 PM
#1
Thread Starter
Lively Member
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" -->
-
Dec 12th, 2003, 11:59 PM
#2
PHP Code:
<?php include "/cgi-bin/poll/fantasycricket.pl" ?>
or
PHP Code:
<?php virtual("/cgi-bin/poll/fantasycricket.pl" ?>
HTH
-
Dec 13th, 2003, 12:28 AM
#3
PHP doesn't like that because that's SSI.. I don't really know why; but I laughed when I read it..
-
Dec 13th, 2003, 04:32 PM
#4
Stuck in the 80s
I laugh when I read every post. Bwah-ha-ha!
-
Dec 15th, 2003, 03:57 AM
#5
The PHP in my post is missing the ) and the ;
That makes it twice as funny.
-
Dec 17th, 2003, 05:08 PM
#6
include does a raw text include, so that won't work.
You could use fopen to send a HTTP request to the CGI script and simply write out the results.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|