Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4

Thread: Showing Path..

  1. #1
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default Showing Path..

    What have I done wrong :s

    Code:
    <?php
    $path = $_SERVER['PHP_SELF'];
    
    $valuesArray = explode("/",$path);
    
    
    foreach ($valuesArray as $value){
    
      $name = explode(".",$value);
      echo $name[0];
    
       if($name[1] == ""){
       echo " &nbsp; &gt; &nbsp;";
       }
    }
    
    ?>
    Its supposed to show the path
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #2
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    works for me...

    I put the PHP File in: /path1/path2/path3TOM!!/ on my server and the PHP File showed: > path1 > path2 > path3TOM!! > path

    The last path is the file name...
    Last edited by Recursion; 30-03-2007 at 09:31 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  3. #3
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    yeh oh it did work.. i put it in a test file. which contains ALOT of fatal errors ;P
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #4
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    I might publish that script PP
    How could this hapen to meeeeeeeeeeeeeee?lol.

Posting Permissions

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