Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Help for a non php thinker

General discussions related to php

Moderators: macek, egami, gesf

Help for a non php thinker

Postby Colin The dumb » Tue Nov 19, 2002 7:57 am

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:
Colin The dumb
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Nov 19, 2002 7:53 am

Re: Help for a non php thinker

Postby 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....
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Re: Help for a non php thinker

Postby 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>";
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Colin The dumb » Fri Nov 22, 2002 8:24 am

Thanks everyone.
It seems to work ok.
Keep smiling
Colin :idea:
Colin The dumb
New php-forum User
New php-forum User
 
Posts: 2
Joined: Tue Nov 19, 2002 7:53 am


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.