Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Rename folders on execute ?

    Hey,

    I'm a beginner and I couldn't find a way to rename a folder on every file.php execute

    Example:
    Original/file.php ---> execute ---> Original1/file.php ---> execute ---> Original2/file.php

    Is that possible ?
    Help if it is please !

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Untested

    PHP Code:
    <?php

    $old_name 
    "Original1/file.php"
    $new_name "Original2/file.php";
    rename($old_name$new_name);

    ?>
    Leonard Whistler


  •  

    Posting Permissions

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