Gordon Werner
03-17-2002, 07:30 PM
OK ...
So I have OS X 10.1.3 on my cube running without any real problems. So I decided that I wanted to try to take advantage of having PHP4 and MySQL available on my computer for web development.
So, I went into my httpd.conf file and uncommented the commands to load the PHP4 modules as described in the excellent articles (http://www.oreillynet.com/pub/ct/49) at the O'Reilly Network.
Everything seems to work as expected ... I now have PHP4 on my Cube.
However, and here is the problem, in one of my test files I tried using both the include() and require() functions to include a global variable file in my main php document.
When I tried viewing the page I got the following error message:
Fatal error: Failed opening required 'defs.inc' (include_path='.:/usr/lib/php') in /Users/gordon/Sites/file.php on line 1
Now the file "defs.inc" (in the example above) is in the same directory as the main file "file.php"
Can anyone assist me in changing the settings so that this will work?
I appreciate any and every piece of advice that all y'all can provide.
Thanks in advance,
Gordon
[ 03-17-2002: Message edited by: Gordon Werner ]
So I have OS X 10.1.3 on my cube running without any real problems. So I decided that I wanted to try to take advantage of having PHP4 and MySQL available on my computer for web development.
So, I went into my httpd.conf file and uncommented the commands to load the PHP4 modules as described in the excellent articles (http://www.oreillynet.com/pub/ct/49) at the O'Reilly Network.
Everything seems to work as expected ... I now have PHP4 on my Cube.
However, and here is the problem, in one of my test files I tried using both the include() and require() functions to include a global variable file in my main php document.
When I tried viewing the page I got the following error message:
Fatal error: Failed opening required 'defs.inc' (include_path='.:/usr/lib/php') in /Users/gordon/Sites/file.php on line 1
Now the file "defs.inc" (in the example above) is in the same directory as the main file "file.php"
Can anyone assist me in changing the settings so that this will work?
I appreciate any and every piece of advice that all y'all can provide.
Thanks in advance,
Gordon
[ 03-17-2002: Message edited by: Gordon Werner ]