I am trying to save data to a file on my server.
The data ( a large string) is received in the url in the form myfile.php?theData=datastringhere
my code looks like this...
<?
$theName = uniqid('plan_').'.pdf';
$thePath = '/www/vhtdocs/marshallcontracts/devel/uploads/';
$newFile = fopen ($thePath . $theName, 'wb');
fwrite ($newFile, $theData, $theUnencodedSize);
fclose ($newFile);
?>
But this code flags up a Permission denied error on line 7.
Im not sure where I am going wrong 🙁