-
Please Suggest me
What's the best way to copy a file from within a piece of PHP?
-
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!
-
<?php copy($original, $newfile);
-
<?php
$file = 'example.txt';
$newfile = 'example.txt.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
-
<?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
Forum Rules
|
|
Bookmarks