Click to See Complete Forum and Search --> : PHP 4.3 installation : Debian3 -> Sarge


DeadlySin3
01-17-2005, 10:16 PM
Hello..

I've got a question regarding my PHP4 (PHP 4.3.10-2)installation.

Directly after installing PHP4 on my system, I wrote a quick test page to make sure php was working, and it is.

Then, I tried to install a script that i've previously written and i'm getting an error reguarding the include_path. So far, i can do whatever I need with PHP... except use the include() function! :(

here's the error i'm getting

Warning: Unknown(/var/www/apache2-default/tagit2beta/index.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)(): Failed opening '/var/www/apache2-default/tagit2beta/index.php' for inclusion (include_path='.:/usr/share/php') in Unknown on line 0

within index.php i'm trying to include a file that defines some mysql database info (username pass host.. etc.)

I was told to try this via a command line:
php -i | grep 'include_path'

which output this:
include_path => .:/usr/share/php:/usr/share/pear => .:/usr/share/php:/usr/share/pear

I'm just kind of curious why I can't use the include function.. anyone know how I can resolve this problem?

jerdo
01-17-2005, 10:35 PM
You can use include. Right now it is looking in these directories

include_path => .:/usr/share/php:/usr/share/pear => .:/usr/share/php:/usr/share/pear

You simply need to modify the php.ini to search where you have your include files.

DeadlySin3
01-17-2005, 11:59 PM
Ok, I appreciate your help!