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. Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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"> Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.