Why can I only open files in C:\\windows when using file_get_contents to open a file?
L'z9
L'z9 2017-11-24 19:32:47
0
2
1031

Why when I use file_get_contents() to open a file, I can only open files in C:\\windows, but not elsewhere. I put the test file somewhere else. I am afraid that it will modify other files in windows.

L'z9
L'z9

reply all(1)
Will

It can be opened. If it is not in the same directory, you must write the complete path name, not just the file name.

  • reply They all write the complete path name. After all, I just changed the folder. Windows was changed to user.
    L'z9 author 2017-11-24 19:45:12
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!