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

    Join Date
    Jul 2000
    Posts
    51
    Rep Power
    15
    Anyone know how to rename a directory with
    php code. Or does the rename($file_old_name, $file_new_name);
    work with directories too??
    Thanks,
    Charlie...
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    No I don't believe it works on dir's but what you can do is -
    delete the dir
    create a dir with the new name

    ------------------
    **********************
    Holev Ezim
    webmaster@builder.co.il
    **********************
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    51
    Rep Power
    15
    Well the problem is I have directories that
    are nested.
    So I would have to rebuild them all.
    I just don't understand why there is not
    a rename directory function within PHP.
    This is a major disapointment.
    Charlie...

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 10:45 PM
  2. php script won't work inside "cgi-local" directory
    By Volitics in forum PHP Development
    Replies: 5
    Last Post: April 26th, 2004, 10:50 PM
  3. PHP / Active Directory Authentication Issue
    By jlauchle in forum PHP Development
    Replies: 0
    Last Post: February 6th, 2004, 01:20 PM
  4. PHP directory help
    By mrras25 in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 02:59 PM
  5. Renaming a directory with content
    By GGK in forum PHP Development
    Replies: 1
    Last Post: January 25th, 2004, 10:40 AM

IMN logo majestic logo threadwatch logo seochat tools logo