php easy file write


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



Copy this code and paste it in your HTML
  1. $myFile = "/tmp/slike.txt";
  2. $fh = fopen($myFile, 'a') or die("can't open file");
  3. fwrite($fh, print_r($povratak_fje));
  4. fclose($fh);

Report this snippet


Comments


You need to login to view comments.