PHP does not recognize or insert include files
Solution is to:
# vi /etc/php.ini
include_path = “./usr/share/php:/home/httpd/php”
Above ensures that path php is used to locate .php files. This is recommended as it prevents security breaches.
In the main.php in your web pages, put:
The file will be correctly included.
To prevent security breaches in PHP, ensure that all your scripts are put in a path that is not within the Apache directory tree.