Jump to content

Content...


Neptunus Maris

Recommended Posts

Does this work to place this line of code on somebody else's site to have a stat counter on their site that will update the database on my server.

 

<script type="text/php" language="php" src="http://www.mysite.com/counter.php?userid=2300"></script>

 

or this...

 

<script src="http://www.mysite.com/counter.php?userid=2300"></script>

 

I was wondering how they do those stat counters and how to display my content on others sites.

Link to comment
https://forums.phpfreaks.com/topic/61603-content/
Share on other sites

Usually you link to a php script in an image tag. The php script generates an image which displays a counter.

 

Yeah but I dont want to display the hits with an image...no display on their site. I just want to have it to wear every time someone visits their site it does a counter on my database.

Link to comment
https://forums.phpfreaks.com/topic/61603-content/#findComment-306630
Share on other sites

Ah i see. The easiest solution is still probably along the same lines. Have a 'hidden' image tag:

 

<img src="http://www.mysite.com/counter.php?userid=2300" style="display:none">

 

 

 

really? i thought you had to use <script></script> tags have to be used. and then src = "mysite.com/countsomethin.php?userid=3434"

 

something like that...ive seen it with javascript doing stat counters but i dont like to use javascript too much, if so not at all...

 

Link to comment
https://forums.phpfreaks.com/topic/61603-content/#findComment-306638
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.