I'm trying to create a local file using mpdf->Output() that eventually goes down to fopen() with wb
as the mode.
the request always returns an error since the fopen returs false.
the folder exists with full permissions and event tried with checking the folder with is_dir and is_exists.
nothing work, and using relative and absolute path changes nothing.
the funny thing that on my local machine (windows) everything works fine and the file is saved.
the saving code:
$tmpPath = 'eventInfoFiles/EventInfo' . $reg->id . '.pdf';
$pdf->Output($tmpPath, 'F');
this is the erro message:
Invalid request - Server Error (1): Error 500: error: Unable to create output file: /var/www/html/youth-movements/api/eventInfoFiles/EventInfo207724.pdf file : /var/www/html/youth-movements/api/vendor/mpdf/mpdf/mpdf.php line : 9443
the permissions from my server. file is located at the root of the project
drwxrwxrwx. 2 root root 6 Jul 1 10:01 eventInfoFiles