#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    14
    This should be prety simple in php3 I need the code to return the current directory a variable.

    Thanks in advance
    Bill
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    79
    Rep Power
    15
    Try this..

    <?
    $directory = dirname($PHP_SELF);
    echo $directory;
    ?>

    That will give u the path to where the file is.

    Basil
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    14
    That is it. Thanks this place is great

Similar Threads

  1. Wscript.Shell | VBScript :: Set current working directory
    By Onslaught in forum Visual Basic Programming
    Replies: 2
    Last Post: February 3rd, 2004, 01:12 AM
  2. Replies: 1
    Last Post: January 30th, 2004, 10:51 AM
  3. Odd problem with a hash and foreach loop
    By quantumechanix in forum Perl Programming
    Replies: 7
    Last Post: December 15th, 2003, 05:06 PM

IMN logo majestic logo threadwatch logo seochat tools logo