PDA

View Full Version : Does somebody know an UCJ site that uses PHP?


paulus2000
01-04-2002, 04:06 AM
I can not get UCJ working on my php website because SSI and PHP are both HTML embedded scripting languages and could not run on the same page.

I have been looking around for an PHP code that can do the same as the SSI code:
<!--#exec cmd="./cgi-bin/ucj/ucjref.cgi"-->

paulus2000
01-04-2002, 04:08 AM
That's why I am looking for an UCJ site that uses PHP. So maybe he can help me out.

drumsicle
01-04-2002, 05:06 AM
Did you ask Tim?

eskimoen
01-04-2002, 05:11 AM
USe http://www.php.net/manual/en/function.system.php

paulus2000
01-04-2002, 05:21 AM
Originally posted by drumsicle:
<STRONG>Did you ask Tim?</STRONG>

Yes, he thought that the following code should work:

&lt;?php
putenv ( "HTTP_REFERER=".$HTTP_SERVER_VARS["HTTP_REFERER"] ) ;
putenv ( "REMOTE_ADDR=".$HTTP_SERVER_VARS["REMOTE_ADDR"] ) ;
PassThru ( "./cgi-bin/ucj/ucjref.cgi" ) ;
?&gt;

And when I put that code on my website it generates the normal UCJ javascript but there are no "IN" hits counted.

paulus2000
01-04-2002, 11:02 AM
Nobody knows an UCJ website with PHP?

SeRsH
01-04-2002, 11:40 AM
Originally posted by Paulus2000:
<STRONG>I can not get UCJ working on my php website because SSI and PHP are both HTML embedded scripting languages and could not run on the same page.

I have been looking around for an PHP code that can do the same as the SSI code:
&lt;!--#exec cmd="./cgi-bin/ucj/ucjref.cgi"--&gt;</STRONG>

&lt;?php virtual("./cgi-bin/ucj/ucjref.cgi"); ?&gt;
will do the same

[Dan]
01-04-2002, 11:44 AM
What about using frames? You put your exec cmd in the main html (where you got your &lt;frameset&gt; tags), then in the upper frame you put a blank page of 1 pixel, and in the bottom frame you put your php page?

maxuscz
01-04-2002, 04:19 PM
I know how make it.
contact me if you need this script

ICQ 51124430

e-van
01-04-2002, 09:02 PM
Originally posted by SeRsH:
<STRONG>

&lt;?php virtual("./cgi-bin/ucj/ucjref.cgi"); ?&gt;
will do the same</STRONG>

this will work just fine :)

XP
01-12-2002, 05:50 PM
Fuck, it is not working on Prohosters. Because they disabled CGI on webserver (While in Telnet is working !)