in index.php, you can do:
<?
if (action=="cgi") header("Location: cgi-bin/cgiscripts/".$scripts);
?>

or 
<?
if (action=="cgi") echo `./cgi-bin/cgiscripts/${scripts} 2&>1`;
?>

Op dinsdag 26 februari 2002 15:30, schreef u:
> Hey
>
> I have some cgi files who are in the /usr/lib/xxx/cgi-bin/ directory
> How can i make them a part of my php meaning that in the current situation
> the url is something like this
> http://xxxxx.xxxxx.xxx/cgi-bin/cgiscripts/xxxx.cgi
> and i want it to be something like this
> http://xxxx.xxxx.xxxx/index.php?action=cgi&scripts=xxx.cgi
>
> Maybe a stupid question but ....
>
>
> Kind regards
> Sven
Op dinsdag 26 februari 2002 15:30, schreef Sven Jacobs:
> Hey
>
> I have some cgi files who are in the /usr/lib/xxx/cgi-bin/ directory
> How can i make them a part of my php meaning that in the current situation
> the url is something like this
> http://xxxxx.xxxxx.xxx/cgi-bin/cgiscripts/xxxx.cgi
> and i want it to be something like this
> http://xxxx.xxxx.xxxx/index.php?action=cgi&scripts=xxx.cgi
>
> Maybe a stupid question but ....
>
>
> Kind regards
> Sven

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to