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:

security header validate

  HTTP Security Headers Check Tool - Security Headers Response (serpworx.com)