@levelsio
almost 2 years ago
Anyone known why my PHP can't unlink() files in /tmp (from sys_get_temp_dir()) drwxrwxrwt 92 root root 19771392 Mar 19 08:12 tmp Temp files created by PHP with user www-data (e.g. user on site) but then can't be deleted: /tmp/1679213591-1.png, is_writeable=1, file perms=644
Oh ok I fixed by getting error_get_last() and I was using sys_get_temp_dir() twice so it was trying to unlink /tmp/tmp/file not /tmp/file I should be removed from the computer!!!!!
Thanks everyone!
Page created with TweetHunter
Write your own