file_put($file, $source)


/ Published in: PHP
Save to your folder(s)

Easy file create/write script


Copy this code and paste it in your HTML
  1. function file_put($file, $source){
  2. $fp = fopen($file, 'w');
  3. fwrite($fp, $source);
  4. fclose($fp);
  5. @chmod($file, 0777);}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.