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?

Menu