File_put_contents

problem description

file_put_contents () failed to open stream:No such file or directory

the environmental background of the problems and what methods you have tried

data link: https://learnku.com/laravel/t...

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Php
Jul.05,2022

Please post the code.


create a new file such as test.log
chmod 777 test.log
file_put_contents ('/ paht/to/test.log','test',FILE_APPEND);

if the path of the file is correct, can't you write it if you try to give it permission?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c37428-34041.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c37428-34041.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?