Help for a non php thinker

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
User avatar
WiZARD
Moderator
Moderator
Posts: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Help for a non php thinker

Post by WiZARD » 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";
// -->
</script>
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....

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

Re: Help for a non php thinker

Post by Oleg Butuzov » 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\";
// -->
</script>";

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest