+ Reply to Thread
Results 1 to 10 of 10

Thread: php_self

  1. #1
    mr_jodete is offline x10Hosting Member mr_jodete is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    php_self

    I have a ad-free account and i would like to ask if is working the php_self script if a have the Intermediate PHP Configuration

    It is because it was working before and now it is stuck.Im using it for counting how many times was viewed the page.
    Any ideas?
    Last edited by mr_jodete; 05-21-2008 at 08:01 PM.

  2. #2
    CoolFinalFan's Avatar
    CoolFinalFan is offline x10 Lieutenant CoolFinalFan is an unknown quantity at this point
    Join Date
    Oct 2005
    Location
    Myrtle Beach, SC USA
    Posts
    311

    Arrow Re: php_self

    this should of been posted in support I believe!



  3. #3
    mr_jodete is offline x10Hosting Member mr_jodete is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    Re: php_self

    right i give a try
    Edit:
    anyway how did u found out my ip?
    Last edited by mr_jodete; 05-21-2008 at 08:11 PM. Reason: Automerged Doublepost

  4. #4
    dWhite Guest

    Re: php_self

    Quote Originally Posted by mr_jodete View Post
    anyway how did u found out my ip?
    It's just a simple scripted image that detects and displays various information about your computer such as; ip address, ISP name, operating system and browser.

    Nothing to worry about.

  5. #5
    mr_jodete is offline x10Hosting Member mr_jodete is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    Re: php_self

    i just wanted to know how did u do that?simple scripted image that detects and displays various information ?whats that?how can i get it?

  6. #6
    dWhite Guest

    Re: php_self

    Quote Originally Posted by mr_jodete View Post
    i just wanted to know how did u do that?simple scripted image that detects and displays various information ?whats that?how can i get it?
    http://www.danasoft.com/

    Try that.

  7. #7
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: php_self

    An easy way to get a visitors IP is by doing the following.

    PHP Code:
    <?php

    echo $_SERVER[REMOTE_ADDR];

    ?>
    Thanks,
    Brandon Long

  8. #8
    mr_jodete is offline x10Hosting Member mr_jodete is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    Re: php_self

    ok cheers.i will
    Edit:
    yeah but im looking for somethin with the php_self script
    the ip tracker is working fine,the think that i want to make to work is the counter.
    Last edited by mr_jodete; 05-21-2008 at 08:25 PM. Reason: Automerged Doublepost

  9. #9
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: php_self

    May I ask what you are talking about? Do you have a link to this script?
    Thanks,
    Brandon Long

  10. #10
    mr_jodete is offline x10Hosting Member mr_jodete is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    18

    Re: php_self

    here is the code of the tracker
    <?php
    include ("connection.inc.php");
    $connection = connect();
    $page=$_SERVER["PHP_SELF"];
    $ip=$_SERVER["REMOTE_ADDR"];
    $date=time();
    $query="INSERT INTO tracker(page,ip,date) VALUES ('$page','$ip','$date')";
    mysql_query($query,$connection);
    $query="SELECT count(*) FROM tracker WHERE page='$page'";
    $result=mysql_query($query,$connection);
    $views=mysql_result($result,0,"count(*)");
    echo "This page has been viewed$views times";
    ?>
    But this code is not doing nothing
    Last edited by mr_jodete; 05-31-2008 at 06:14 PM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers