Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Help To Transfer Files Within Hosting Space Using Php
livingston
post Feb 21 2007, 08:27 AM
Post #1


Advanced Member
Group Icon

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
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Feb 22 2007, 05:21 AM
Post #2


Premium Member
Group Icon

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?
Go to the top of the page
 
+Quote Post
livingston
post Feb 22 2007, 07:31 AM
Post #3


Advanced Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Feb 22 2007, 08:19 AM
Post #4


Premium Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
FirefoxRocks
post Feb 22 2007, 10:22 PM
Post #5


Super Member
Group Icon

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How Do I Create And Write To Files?(4)
  2. Php : Variables Included Dont Work In Functions(4)
  3. How To Build Up A Domain Forwarding Service?(7)
  4. Deleting Files With PHP(6)
  5. How To Delete Files When Session Ends(4)
  6. How To Edit Php Files?(16)
  7. Php File Upload(3)
  8. Reading Files And Folders(1)
  9. Free Forum Hosting Type Script Help!(2)
  10. How To Protect Included Files(10)
  11. Magic Quotes And $_files(3)


 



- Lo-Fi Version Time is now: 7th September 2008 - 12:18 AM