I am trying to create new text file through php by the following command:-
<?php
$new = fopen('newfile.txt', 'w');
?>
Somehow it is unable to create it because of permissions issues of linux. Now I can only create text file first then set it's permissions. Or is there a way to do this in the code itself? Either way I need to get the job done.