Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2001
    Location
    UK
    Posts
    2,099
    Rep Power
    27

    HTML code fragment



    I am looking for an HTML code fragment to clock the number of visitors to my site. I require a simple code, with no frilly statistics on routings etc.
    Can any members in the know help?
    The ones available on the net all create links to the originator


    Any opinions, statements and facts expressed in this message do not constitute legal advice in any shape or form and is given for a general outlook in nature. You are advised to seek appropriate and specific professional assistance from a regulated and authorised advisor for definitive advice.

  2. #2
    Join Date
    Apr 2001
    Location
    UK
    Posts
    2,099
    Rep Power
    27
    Hello Mark,

    Im on a Unix server, I have not seen a cgi-bin directory listed in any server sub directory, but expect that since the page is hosted on a Ntl server, cgi-bin is available and accessable.
    I am unsure about the ability to upload scripts.

    I obtained a html code fragment off the web and used it on my page, the counter worked fine. I just didnt like the idea of the person who created the fragment bombarding me with daily e mails with all sorts of offers, etc
    I had to register and pass over my e mail address to obtain the fragment.

    Theres no free lunch I guess, theres always a catch or a string attached. It would be nice to know the number of visitors to my site though,
    Thanks for the help Mark
    Any opinions, statements and facts expressed in this message do not constitute legal advice in any shape or form and is given for a general outlook in nature. You are advised to seek appropriate and specific professional assistance from a regulated and authorised advisor for definitive advice.

  3. #3
    Join Date
    Apr 2001
    Location
    UK
    Posts
    2,099
    Rep Power
    27
    Hello Marc, Ive sent you the access details to your email address
    Any opinions, statements and facts expressed in this message do not constitute legal advice in any shape or form and is given for a general outlook in nature. You are advised to seek appropriate and specific professional assistance from a regulated and authorised advisor for definitive advice.

  4. #4
    Join Date
    Mar 2007
    Location
    South Africa
    Posts
    228
    Rep Power
    18

    Re: HTML code fragment

    Quote Originally Posted by Abe View Post
    ... number of visitors to my site...
    If your server supports PHP, its a 1 liner.

  5. #5
    Join Date
    Mar 2007
    Location
    South Africa
    Posts
    228
    Rep Power
    18

    Re: HTML code fragment

    Quote Originally Posted by nh3simman View Post
    If your server supports PHP, its a 1 liner.
    in php, the super global variable
    $_SERVER['REMOTE_ADDR']
    gives the address of the on-line user

    where
    REMOTE_ADDR = The IP address from which the user is viewing the current page.

  6. #6
    Join Date
    Mar 2007
    Location
    South Africa
    Posts
    228
    Rep Power
    18

    Re: HTML code fragment

    Here is a good article that deals with efficiency issues of counting online users.

    http://www.devarticles.com/c/a/PHP/T...line-With-PHP/

Similar Threads

  1. split a/c fault code
    By ksvinod in forum Air Conditioning
    Replies: 1
    Last Post: 04-07-2007, 02:12 PM
  2. Diplomat 6528 Fault Code
    By Targus in forum Domestic
    Replies: 3
    Last Post: 31-10-2006, 07:43 PM
  3. Fault Code Sheets...?
    By C_Henderson in forum Air Conditioning
    Replies: 2
    Last Post: 01-08-2006, 05:19 PM
  4. Bar Code
    By Jack Lester in forum Chit Chat & Service Stories
    Replies: 0
    Last Post: 27-05-2001, 01:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •