| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() | Move File HI I need some help, im making a small mod for a script i use and i need the following, when i fill in a form in 2 of the feilds it is a drop down menu that list's all the files in the files directory and the other in the images directory. So what i want is when i select the two files from each of the files e.g: File: blabla.txt (would be located in content/uploaded/blabla.txt) Img: blabla.gif (would be located in images/uploaded/blabla.gif) I want is when i click submit the script will move the files to one directory down so then it will be located as this: ????: NamePros.com http://www.namepros.com/programming/248941-move-file.html blabla.txt would then be located in content/blabla.txt blabla.gif would then be located in images/blabla.gif Please if you could help me i would be pleased. |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() | you can http://ca3.php.net/rename if you want |
| |
| | #3 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | www.php.net/rename working link :X |
| |
| | THREAD STARTER #4 (permalink) | ||||
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() |
| ||||
| |
| | #5 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | (Without seeing your form:) Most likely it would be something like: Code: <input name="oldname" type="text"> and <input name="newname" type="text"> PHP Code: |
| |
| | THREAD STARTER #6 (permalink) |
| Account Closed Join Date: Oct 2005 Location: United Kingdom
Posts: 1,554
![]() ![]() ![]() ![]() | So it would look like this: PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |