imagejpeg() failed to save image
明月依深秋
明月依深秋 2020-03-20 13:31:27
0
0
1115

Using imagejpeg() in the code to save the image failed, prompting insufficient permissions

Code description:

imagejpeg($img, 'haha.jpg');

Error Description:

imagejpeg(haha.jpg): failed to open stream: Permission denied in /var/www/html/index.php on line 33, referer: http://192.168.126.135/index.php

But I have given 777 permission to the folder. I don’t understand. Please give me some advice.

明月依深秋
明月依深秋

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!