Help for a non php thinker

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
User avatar
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Tue Nov 19, 2002 11:59 pm

Colin The dumb wrote:Hi.
How ore even can you insert the following in to a php file.
<SCRIPT language=JavaScript>
randomid = Math.ceil(Math.random()*1000000000);
counter=new Image(); counter.src="http://www.mysite/counter/dragon_counter/counter_image.php?rando mid="+ randomid +"&counter_subpage=test";
// -->
Its a counter script and when i try to insert it in to a php or cgi file it wont display the page.
Any ideas of help would be greatly apreaciated.
Cheers in advance. Colin :idea:

If true this scrips not working in php....
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Wed Nov 20, 2002 2:21 am

Code: Select all

echo "<SCRIPT language=JavaScript>
randomid = Math.ceil(Math.random()*1000000000);
counter=new Image();  counter.src=\"http://www.mysite/counter/dragon_counter/counter_image.php?rando mid=\"+ randomid +\"&counter_subpage=test\";
// -->

Post Reply