Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP failed copy
#1
I try to copy a file but it says:

-------------------------
failed to copy example.txt...
-------------------------

code:
-------------------------
<?php

$file = 'example.txt';
$newfile = 'example.txt.bak';

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


?>
-------------------------


is't the permissions?


Restored from old drupal forum, for user uid:27631 username:robind99
You may reset your password to access your new account here.
Reply
#2
yes. it is permission problem.
the new file or directory should be php-writable.


Restored from old drupal forum, for user uid:27631 username:robind99
You may reset your password to access your new account here.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping