<?php
file_put_contents('demo.txt', "You can put\rAny text here");
doesn't create demo.txt file when executing the PHP file from a browser. virtual server on VMware. any help would be appreciated.
<?php
file_put_contents('demo.txt', "You can put\rAny text here");
doesn't create demo.txt file when executing the PHP file from a browser. virtual server on VMware. any help would be appreciated.
May be a permission issue. Give 777 permission to your folder where you are trying to create a file
chmod 777 foldername.
However 777 may not be secure as experts say.But it can help you at the moment.