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)
-   -   Can someone tell me how to put this code in a php page please? (https://gfy.com/showthread.php?t=201707)

Adult Site Traffic 11-25-2003 08:50 PM

Can someone tell me how to put this code in a php page please?
 
!--#exec cgi="/cgi-bin/iplog.cgi" -->

Thank you.

JSA Matt 11-25-2003 08:56 PM

Why are you using SSI with PHP?

- Jesus Christ - 11-25-2003 09:01 PM

I dont think you can unless you set Apache to recognise the .php extention as a file type to use includes

Try this in your .htaccess
(I havent ever done this so it might be wrong)

AddOutputFilter INCLUDES .php

Adult Site Traffic 11-25-2003 09:01 PM

I just want to know how to put it in a php page. Then it won't be ssi, right?

Hey, everyone knows I'm no coder. I get by. I just want it to work on a php page.

So..

<.?
*
?>

??

Adult Site Traffic 11-25-2003 09:03 PM

Quote:

Originally posted by - Jesus Christ -
I dont think you can unless you set Apache to recognise the .php extention as a file type to use includes

Try this in your .htaccess
(I havent ever done this so it might be wrong)

AddOutputFilter INCLUDES .php

Hey. Can I just i.frame an html page and put it on there?

- Jesus Christ - 11-25-2003 09:05 PM

Quote:

Originally posted by Adult Site Traffic


Hey. Can I just i.frame an html page and put it on there?

Im not quite shure what you mean but yes I guess so....

It would be an .shtml file though becasue by default those are the only files parsed through SSI.

Adult Site Traffic 11-25-2003 09:15 PM

Ok. can do. Thank you.

All I want it to do is collect IP from http://adult-site-traffic.com/stats/order and run it against the flagging system on my secure order server where my cart pends orders..

Thank you :)

Ic3m4nZ 11-25-2003 09:17 PM

50$ for the answer

hyper 11-25-2003 09:22 PM

PHP Code:

<!--#include virtual "whatever.cgi"--> 


rowan 11-25-2003 09:39 PM

system("/PATH/TO/cgi-bin/iplog.cgi");

I'm not sure that would have the desired affect though, since it's PHP executing the program, not Apache (that's why you need a full path). I don't know if the variables your CGI needs will be passed through.

If that doesn't work, then why not img src it? Much cleaner than an if<b></b>rame if you can get iplog.cgi to return a 1x1 transparent gif.


All times are GMT -7. The time now is 09:59 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123