Nov 22, 2009

Help To Transfer Files Within Hosting Space Using Php

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Help To Transfer Files Within Hosting Space Using Php

livingston
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

Comment/Reply (w/o sign-up)

BuffaloHELP
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?

Comment/Reply (w/o sign-up)

livingston
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.

Comment/Reply (w/o sign-up)

BuffaloHELP
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.

Comment/Reply (w/o sign-up)

FirefoxRocks
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.

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : transfer, files, hosting, space, php

  1. Credit System - Transfer Credits Between Members?
    (1)
  2. Magic Quotes And $_files
    (3)
    It recently came upon me that I was designing a website that used file uploads. Of course, PHP was
    my first choice to solve the problem. I'm pro-PHP and anti-ASP. Perl is somewhere in the middle.
    But anyway! I have magic_quotes_runtime and magic_quotes_gpc both on and it seems to be causing
    some problems with file uploads. If a user uploads a file called "Jared's Stuff.txt" (that was
    one of my tests) then magic_quotes insert a backslash before the apostrophe and $_FILES becomes
    "'s Stuff.txt" since the backslash is interpreted as part of the path. Is the....
  3. How To Protect Included Files
    (10)
    Hey! How can i make my included files 100% safe. Like if I include a file witht his code.. CODE
    include "bla.php"; How can i make it 100% safe? I know I must close the php tags in the
    included files. but what more =?....
  4. Free Forum Hosting Type Script Help!
    Free forum hosting type script help!!! (2)
    i want to make something like http://invisionfree.com/ that makes an dir with your phpbb 3 forum
    in it with an admin CP plz help i really want to make something like it!! i was thinking of coding
    my own with file handling but i'm not good at some of it like "when u click submit to register
    a forums it will move the phpbb3 file that leads to the users dir then it will rename the dir to
    your username so like my.site.com/username it might work" with the admin username and pass and
    admin's email it will open the config.php then edit all the data but it will ke....
  5. Reading Files And Folders
    (1)
    I am in the process of writing a small content management system for my niche sites and need to be
    able to accomplish the following two items. Any assistance would be appreciated: I have a
    directory that has nothing but sub directories in it and I need to be able to identify each
    directory name and return them in an option drop down selection menu which will be included in an
    identifying URL. ALSO: I am in need of a script that could be included on a returned page
    that will read the content of a table and identify various keywords within the content and pl....
  6. Php File Upload
    About uploading files through php (3)
    Right i have done a check for a tutorial on this as well as a question about it but php is not
    allowed in the search box. So i thought i'd just ask what i want to know. I have a form which
    uploads a file, it refreshes the page, uploads the file and then alerts the user to if the file has
    uploaded. To be honest im not sure why i keep getting the error. But here is the code: This is the
    form that is used for the user to select the file &fid= " method="POST"> Choose a file to
    upload: This is the upload code if ($op == "up"....
  7. How To Edit Php Files?
    (16)
    Hi, You can use frontpage to preview HTML files, but how can I edit and preview PHP files offline.
    I'm not well-known with PHP and I see more and more using this script to manage their site.....
  8. How To Delete Files When Session Ends
    (4)
    Dear Friends I need solution to a problem. The problem is as under: I am creating certain files
    (playlist) in server disk when user selects some songs. The files are created in ram format. What I
    want to do is to delete these files created during a particular session. Is it possible to do so?
    Now I am deleting these files using on Unload event fired by JavaScript. I am using PHP. ....
  9. Deleting Files With PHP
    is this possible? (6)
    It is posible for PHP to delete files on a server? If so, how is this possible? Just out of
    interest.......
  10. How To Build Up A Domain Forwarding Service?
    (on web hosting) (7)
    I just buy a domain and hope to share it for url forwarding. Of course, I try to use the free
    sources as possible. Now all I have is a domain and I am trying to get an account from astahost. I
    hope to get PHP scripts that can automatically accept people to request for creating a subdomain or
    subdirectory for url forwarding or url framing. May anyone give me some advices about where to get
    the PHP scripts or how to proceed it?....
  11. Hosting Credits System
    Hosting Credits System script wanted. (2)
    Hey, i am looking for a php/mySQL based hosting credits system like the one integrated into
    astahost. it would be based off the number, quality and non-foul language of posts in a Simple
    Machines Forum. If anyone has any ideas or would like to know more so they could help, please post
    here. Thankyou! /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
    alt="biggrin.gif" /> Forum: SMF beta 3 public: http://infamousflame.astahost.com ....
  12. Php : Variables Included Dont Work In Functions
    Variables from Included files dont work (4)
    Today, I came up with this strange PHP behaviour. Just wanted to know if anyone has any
    suggestions! I make a common variable/function file called config.php. I put in my generally used
    functions in it. Suppose this is my file CODE // -----VARIABLES --- // $a=10,$b.... //
    -----FUCTIONS--- // function doit() { print "A value is " . $a; } ?> Here, suppose we execute
    this file directly. Since A has a global scope, it does work perfectly. But if this same file is
    imported in another file say, mainfile.php CODE // -----VARIABLES --- // $c,$d.... include &#....
  13. How Do I Create And Write To Files?
    creating, writing, deleting files (4)
    Hi, Can someone please tell me how to create files and write to them in PHP. I just want to create
    a simple file containing text, and then be able to read it or update it. Thanks Alfie....
  14. Getting Files From Other Sites
    Using wget (3)
    Hello. A while ago, a friend showed me this PHP code (wget) which allows you to get files from other
    sites. I was a simple one liner type thing. Since my old host (Nytka) went down, I've lost it,
    as has my friend. Do you know anything about wget, and could tell me it?....

    1. Looking for transfer, files, hosting, space, php

See Also,

*SIMILAR VIDEOS*
Searching Video's for transfer, files, hosting, space, php
advertisement



Help To Transfer Files Within Hosting Space Using Php

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com