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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.