Results 1 to 5 of 5

Thread: Php Help

  1. #1

    Default Php Help

    I am trying to add a php code to my site for site stats and the stats wont appear, does anybody know why?

    the code i am adding is

    PHP Code:
    <?php
    $pagefull 
    $_SERVER['REQUEST_URL'];
    $referrer $_SERVER['HTTP_REFERER'];
    $serverport $_SERVER['SERVER_PORT'];
    ?>
    Signature / Mini Banner Made BY bentlegs.

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    at the moment your just seting varibles try this
    <?php
    echo $_SERVER['REQUEST_URL'];
    echo "<br>";
    echo $_SERVER['HTTP_REFERER'];
    echo "<br>";
    echo $_SERVER['SERVER_PORT'];
    ?>

  3. #3

    Default

    thanks, silly xenigma.net gave me wrong code
    Signature / Mini Banner Made BY bentlegs.

  4. #4
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    I know, xenigma just shows you how to set the variables, not how to show them, just do what it says then:

    <?php
    echo "$variableyouset";
    ?>

  5. #5

    Default

    Ive done it, did u not read what mentor sed?

Posting Permissions

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