www.webdeveloper.com
Results 1 to 5 of 5

Thread: Please Suggest me

  1. #1
    Join Date
    Jul 2012
    Posts
    1

    Please Suggest me

    What's the best way to copy a file from within a piece of PHP?

  2. #2
    Join Date
    Aug 2012
    Posts
    15
    Hi, could you be more specific? Perhaps this will help other to understand your question.

    Can you try to explain what you are trying to achieve?

    Cheers!

  3. #3
    Join Date
    Feb 2005
    Location
    Tauranga
    Posts
    2,062
    <?php copy($original, $newfile);

  4. #4
    Join Date
    Aug 2012
    Location
    Dallas, Texas
    Posts
    5
    <?php
    $file = 'example.txt';
    $newfile = 'example.txt.bak';

    if (!copy($file, $newfile)) {
    echo "failed to copy $file...\n";
    }
    ?>

  5. #5
    Join Date
    Aug 2012
    Posts
    11
    <?php copy($original, $newfile);

    simple

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles