I am running php script in which fopen function is not working its showing error. I am using local environment.
$newf = fopen ($newfname, 'wb');
Warning: fopen(/Applications/XAMPP/xamppfiles/htdocs/xxxxxx/uploads/image.jpg): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/xxxxx/xxx.php on line 9 Can you help me out how i handle this error?