I'm brand new to PHP and have just got it up and running on my Apache box. I'm trying to use a simple include statement in my page and keep getting a "failed opening <include file> for inclusion (include_path..."
Here's my include_path from my php.ini file:
include_path=.:/var/www/html/php-lib:/usr/share/php
Here's my php code:
<?php
include("/mysite/topNav.php");
?>
Here's what I've tried/verified so far:
- Read/execute permissions on all php files (in fact, I chmodded everything to 777 just to make sure)
- /mysite/topNav.php really exists in /var/www/html/php-lib
- other PHP code is working fine on the same page as the include statement
- restarted httpd more times than I can count.
- verified that my php.ini file is the "real" one being read as php starts up.
As I said, I'm brand new to this, so I'm sure this is a silly oversight. That said, I can't find it, so any/all help is appreciated.