Re: parse/fatal errors
| From: | Jason Wong | Date: | Wed, 14 Nov 2001 19:26:01 +0000 |
| Subject: | Re: parse/fatal errors | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14332@lists.php.net to get a copy of this message | ||
On Thursday 15 November 2001 02:30, Joe.Warner@smed.com wrote:
> Fatal error: Failed opening required 'sql_inc.php3' (include_path
> ='.:/usr/local/lib/php') in
> /usr/local/share/doc/apache/phpboard/index.php on line 24
> (Line 24 is require $inc_dir . "sql_inc.php3";)
There are three possibilities here:
a) You haven't defined $inc_dir
b) You have defined $inc_dir incorrectly -- remember it needs to be a
fully qualified path -- something like
"/usr/local/share/doc/apache/phpboard/"
c) You have defined $inc_dir correctly you're missing the file
sql_inc.php3.
> phpBoard includes a perl script that you can use to change your
> scripts extensions. So, if your extensions are .php, you can change
> them to .html, .php3 or even .phtml
>
> When I convert everything to .phtml and point a browser at
> the BBS directory, it lists the file contents of the directory.
Have you set your apache to interpret .phtml files as PHP?
Look for a line in your httpd.conf which is similar to this:
AddType application/x-httpd-php .php4 .php3 .phtml .php .inc
If .phtml is not there add it and restart apache.
hth
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Don't make a big deal out of everything; just deal with everything.
*/