PHP does not recognize or insert include files
Solution is to:
# vi /etc/php.ini
Modify line:
include_path = “./usr/share/php:/home/httpd/php”
:wq
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:
<? php
include (“common_routines.php”);
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.