Sixem

PHP Write To .TXT

Jun 7th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2. $file_value = "file.txt";
  3. $file_handle = fopen($file_value, 'w') or die("can't open file");
  4. $input = "text to write";
  5. fwrite($file_handle, ($input));
  6. fclose($file_handle);
  7. ?>
Advertisement
Add Comment
Please, Sign In to add comment