|
|
|
|
![]() ![]() |
Feb 21 2007, 08:27 AM
Post
#1
|
|
|
Advanced Member Group: Members Posts: 149 Joined: 14-February 07 From: Tuticorin, India Member No.: 20,415 |
I want to transfer files from one folder to another or an entire folder in my web space. I don't want to download it and upload it, can I do this using a PHP script. Please help me. I'm just learning the basics of PHP
|
|
|
|
Feb 22 2007, 05:21 AM
Post
#2
|
|
|
Premium Member Group: Admin Posts: 272 Joined: 10-January 06 Member No.: 10,610 |
If you are using cPanel, you can backup your entire directory and FTP to another server using the Backup utility. Consequently, you can do the same with your database--but you have to download the datbase (which is very small) and restore your database using another server's cPanel Backup utility.
Is this enough or would you like this in PHP? |
|
|
|
Feb 22 2007, 07:31 AM
Post
#3
|
|
|
Advanced Member Group: Members Posts: 149 Joined: 14-February 07 From: Tuticorin, India Member No.: 20,415 |
I was asking about transferring inside my hosting space.
Say from folder, home/livi/examples to home/examples I've seen this functionality in some sites. |
|
|
|
Feb 22 2007, 08:19 AM
Post
#4
|
|
|
Premium Member Group: Admin Posts: 272 Joined: 10-January 06 Member No.: 10,610 |
I'm sorry, I misread the initial post.
Using your cPanel, you can move folder or file(s) to wherever you want. The trick is to practice with one file before moving the whole thing. Click the folder/file you want to move and choose MOVE from FILE MANAGER. Using your FTP program you can click and drag folder/file from one place to another. Some FTP programs will act just like your Explorer where you can copy and paste to your desired location. This does not mean you have to download to your local drive. |
|
|
|
Feb 22 2007, 10:22 PM
Post
#5
|
|
|
Super Member Group: [HOSTED] Posts: 658 Joined: 12-July 06 From: Ontario, Canada Member No.: 14,464 |
You do not need PHP to transfer files. If you want to though, you can read something from the W3Schools about the PHP filesystem thing.
Using FireFTP or another FTP program of your choice, you can drag and drop folders (even cut and paste for some) wherever you want them in your hosting account's file system. If you don't have FTP software, you can do so in cPanel (it takes longer). Practise with 1 file first and see if it is what you want done. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th September 2008 - 12:18 AM |