SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member FataLChaOs's Avatar
    Join Date
    May 2004
    Location
    Pennsylvania
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question IP Logging Questino

    Ok im just starting to get into site making, so im starting out with GeoCities just to test some things. I was wondering if there was a way to Log ipaddresses that went to my site and put the ip logs on a page like Geocities.com/Forgotten_tech/Logged.html

  2. #2
    SitePoint Enthusiast EspenA's Avatar
    Join Date
    May 2004
    Location
    Norway, Oslo
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi FataLChaOs and welcome to the forums,

    If you want to log the IP-adresses, you need to use a server-side scripting language, e.g. PHP, ASP etc. This does also mean that the file extension needs to be .php (or .asp). As far as I know, Geocities doesn't support server-side scripting.

  3. #3
    SitePoint Wizard Dangermouse's Avatar
    Join Date
    Oct 2003
    Posts
    1,024
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $_SERVER['REMOTE_ADDR'] will give you the IP of the user (most of the time). Read up on how to write to a file, write the ip to a file, then use php.net/file to open the file and show the contents.

  4. #4
    SitePoint Member FataLChaOs's Avatar
    Join Date
    May 2004
    Location
    Pennsylvania
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds confusing but.. ill try

  5. #5
    SitePoint Enthusiast EspenA's Avatar
    Join Date
    May 2004
    Location
    Norway, Oslo
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ... but does Geocities support PHP? I don't think so...


Bookmarks

Posting Permissions

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