PHP inferred path referencing the php document itself

Multi tool use
Multi tool use


Basically, this error message says it all:



This error is thrown for this piece of code:



The file I want to access is users.txt. PHP appears to be searching through itself for this file. I've tried lots of stuff, including using the absolute path, to no avail. It always searches for whatever I put in those brackets within itself.



file_get_contents takes a string argument for the filename.



Try changing file_get_contents(./users.txt)



to



file_get_contents('./users.txt').



EDIT:



After discussion in the comments, also make sure to check that your file wasn't named incorrectly. ie, users.txt.txt.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

CroquF,wJizGXaE,yGXX8VEDwpBV8P REEVw9Fk5tKI1,0jqlbOHf
vwU G9yvUTAdQPutSa,Y3mD,1qMK4VNeTo1cgy XmyX,yU

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận