GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP Question re: executing CGI on PHP Page (https://gfy.com/showthread.php?t=44465)

kmanrox 12-20-2001 02:22 AM

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

awechen 12-20-2001 02:57 AM

in php u can use exec("command"); http://www.php.net/exec




------------------
"Shock your systemadministration! Read manual-pages!"

kmanrox 12-20-2001 03:00 AM

im peepin the site right now, thx... i didnt think GFY had people who gave a shit, but figured i'd post anyways =-) thx


FATPad 12-20-2001 06:10 AM

virtual("/dir/cgiprogram.cgi");

There's another way of doing it, but can't remember what it is.

Check out that php.net site.

Ludedude 12-20-2001 09:15 AM

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>

TheFLY 12-20-2001 12:09 PM

Quote:

Originally posted by Ludedude:
[B]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" ) ;
?>
That's very cool.

Lane 12-20-2001 12:48 PM

http://www.php.net/manual/en/ref.exec.php


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