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 3 of 3
  1. #1
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts

    changing file name with php

    is there anyway, i can change a file name, using an html input box and php, from like one file name to another. im trying to make it like

    Old File Name: {inputbox} New File Name: {inputbox} {submit}

    so i can change it from one file name to another

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Yes. The function you'll want to use on the backend is rename(). The rest is simple form stuff.

  • The Following 2 Users Say Thank You to Inigoesdr For This Useful Post:

    shaunno2007 (08-05-2008), Zangeel (08-05-2008)

  • #3
    Regular Coder Zangeel's Avatar
    Join Date
    Oct 2007
    Location
    public_html/
    Posts
    638
    Thanks
    17
    Thanked 79 Times in 79 Posts
    thats great! thanks a lot


  •  

    Posting Permissions

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