Neptunus Maris Posted July 24, 2007 Share Posted July 24, 2007 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 More sharing options...
Neptunus Maris Posted July 24, 2007 Author Share Posted July 24, 2007 I want to have a stat counter for networks of mine...does anybody know anything about this? Link to comment https://forums.phpfreaks.com/topic/61603-content/#findComment-306623 Share on other sites More sharing options...
GingerRobot Posted July 24, 2007 Share Posted July 24, 2007 Usually you link to a php script in an image tag. The php script generates an image which displays a counter. Link to comment https://forums.phpfreaks.com/topic/61603-content/#findComment-306627 Share on other sites More sharing options...
Neptunus Maris Posted July 24, 2007 Author Share Posted July 24, 2007 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 More sharing options...
GingerRobot Posted July 24, 2007 Share Posted July 24, 2007 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"> Link to comment https://forums.phpfreaks.com/topic/61603-content/#findComment-306633 Share on other sites More sharing options...
Neptunus Maris Posted July 24, 2007 Author Share Posted July 24, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.