error msg: Warning : include(includes/config/connect): failed to open stream: No such file or directory in /home/vol5_7/epizy.com/epiz_26587412/htdocs/index.php on line 11
help:
i need help to include my connect.php file in index.php page because of the above error while both ‘includes folder’ and ‘index.php’ being in the same htdocs folder
What you must include is connect.php not connect.
And includes folder (due to configurations) is not accessible, you’ve to rename includes folder to something else.
No, this should actually be fine. The includes folders are not web accessible, but they are accessible from PHP scripts. That’s kind of the point, PHP scripts in the includes folder should ONLY be include()d into other scripts, not be accessed directly from the web.
The errors folder is more of a bug than intentional behavior. But that’s also controlled by web request routing, not PHP file management. So if you place a file in the errors folder and read that file from PHP, it should just work too.