Hi guys... and gals 🙂
What's the proper way of creating a new file and putting some variables in it as a content ? Can someone write a couple of lines of code?
[php ] <?php $new_file = "/some/path/filename.txt";
$fd = fopen($new_file, "wb"); $content = "some content to write"; $fout = fwrite($fd, $content); fclose($fd); ?> [\php ]
Hope this helps, Wil