![]() |
PHP Question re: executing CGI on PHP Page
I have a page that is a .php page, but it needs to exec cgi, and without the .shtml extension it is ignoring the CGI call, is there a simple way around this? thx in advance
------------------ K-MaN icq 1337988 NicheBucks 50/50 RawPussy TGP Secret Galleries TGP Trade Traffic For All Sites at BuiltonPorn |
in php u can use exec("command"); http://www.php.net/exec
------------------ "Shock your systemadministration! Read manual-pages!" |
im peepin the site right now, thx... i didnt think GFY had people who gave a shit, but figured i'd post anyways =-) thx
|
virtual("/dir/cgiprogram.cgi");
There's another way of doing it, but can't remember what it is. Check out that php.net site. |
Kman...here's how I do UCJ on a php page to call the c module:
<?php putenv ( "HTTP_REFERER=".$HTTP_SERVER_VARS["HTTP_REFERER"] ) ; putenv ( "REMOTE_ADDR=".$HTTP_SERVER_VARS["REMOTE_ADDR"] ) ; PassThru ( "./cgi-bin/ucj/ucjref.cgi" ) ; ?> Some variation of this should work. You can call whatever you want using the php rather than an SSI call. ------------------ Post your galleries here! Make 60% recurring (no fees) with these Babes! <A HREF="http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=914709&PA=210461" TARGET=_blank> http://www.barefantasy.com/banners/linkup3.gif The Professional TGP Submitter! </A> |
Quote:
|
|
All times are GMT -7. The time now is 02:34 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123