Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-20-2001, 02:22 AM   #1
kmanrox
aka K-Man
 
kmanrox's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,291
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
kmanrox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2001, 02:57 AM   #2
awechen
Confirmed User
 
Join Date: Oct 2001
Location: LA
Posts: 162
in php u can use exec("command"); http://www.php.net/exec




------------------
"Shock your systemadministration! Read manual-pages!"
awechen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2001, 03:00 AM   #3
kmanrox
aka K-Man
 
kmanrox's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,291
im peepin the site right now, thx... i didnt think GFY had people who gave a shit, but figured i'd post anyways =-) thx

kmanrox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2001, 06:10 AM   #4
FATPad
Confirmed User
 
Join Date: Oct 2001
Posts: 6,693
virtual("/dir/cgiprogram.cgi");

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

Check out that php.net site.
FATPad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2001, 09:15 AM   #5
Ludedude
Suck it!
 
Industry Role:
Join Date: Jun 2001
Location: Who wants to know?
Posts: 4,432
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>
The Professional TGP Submitter! </A>
Ludedude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2001, 12:09 PM   #6
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
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.
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2001, 12:48 PM   #7
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
http://www.php.net/manual/en/ref.exec.php
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.