Question : PHP Include or Require CGI

Hiya

I just tried to do this for the first time...
include('hostpay/index.cgi');

I aint worked with CGI much so I am not sure if it is possible to include it in a similiar manner or should I be trying to execute a cgi file on the server.

This is the index.cgi script:
#!/bin/sh
exec /usr/bin/rshop-int "@*"

and that is also all that displays in my PHP page.

Whats the approach to doing this normally?
thanks a lot

Answer : PHP Include or Require CGI

be careful with the syntax
If you have a text file cities.txt:
London

Alexandria

Belize

Roma

Calgary

Your php could be, e.g.
$output = shell_exec('sort cities.txt');
echo "
$output
";
?>
------------------
output will be:

Alexandria
Belize
Calgary
London
Roma
Random Solutions  
 
programming4us programming4us