Wednesday, November 26, 2008

Code for copy one file to another file with same directory in php

  1. php
  2. $text = file_get_contents('client.html');
  3. $paste = file_put_contents('client2.html',$text);
  4. if($paste)
  5. {
  6. echo "File copied correctly\n";
  7. } else {
  8. echo "There was a problem copying the file\n";
  9. }
  10. ?>

No comments:

How to solve mysql ERROR 1118 (42000) Row size too large

  I had this issue with MYSQL 5.7 . The following worked althoug...