Failed to open stream: no such file or directory in PHP
Failed to open stream: no such file or directory in PHP
This is usually a very common issue. The same code will work in the local machine and it often fails when gets uploaded to the Actual web server.
Possible Causes
- The File might be missing.
- The file might not have the read access
- The file name is case sensitive. Make sure, whatever is included in the PHP has the exact name as in the file directory of the PHP file. This is the most likely cause in many occasions. For example AClass.php might be stored there as aclass.php. include(“test/class/AClass.php”) will not work where as include (“test/class/aclass.php”) will work.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Leave a comment