Tech Support Guy banner
Status
Not open for further replies.
1 - 3 of 3 Posts

·
Registered
Joined
·
84 Posts
Discussion Starter · #1 ·
Is there any way to execute a CGI script (in the cgi-bin folder) from a PHP call?

No parameters. Just a straight call to a CGI tracking script.

Thanks

....Vidya

P.S. Maybe exec() or passthru() but then how do I address the CGI script?
 

·
Registered
Joined
·
2,636 Posts
<?php
virtual("cgi-bin/file.cgi");
?>

should do it.

(assuming you got the path right).

The include and require functions will work, but will just grab the text from the cgi file and not actually execute it.
 
1 - 3 of 3 Posts
Status
Not open for further replies.
Top