Page 1 of 1

error: include_path

Posted: Mon Oct 21, 2002 11:29 am
by tparker
I get this error when I add the "include()" to my script.

Warning: Failed opening 'connectphp' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/spasoft/do_authuser_include.php on line 2

Do I need to set this anywhere?

Posted: Mon Oct 21, 2002 12:22 pm
by twigletmac
The error message is reporting the file name as 'connectphp' should this maybe be 'connect.php'? Also make sure that there is a connect.php file in the spasoft directory.

Mac

Posted: Mon Oct 21, 2002 12:31 pm
by tparker
I have it in the spasoft directory. Here is the piece of code
<?include(connect.php); ......?>

Posted: Mon Oct 21, 2002 12:34 pm
by tparker
OK, I find my mistake. the (.) in connect.php will not parse unless I have it in "". Rooky move. Bare with me gang. :)

Posted: Mon Oct 21, 2002 12:38 pm
by Dale
tparker wrote:(.)

Hmm.. that isnt what i think it is, is it? Image

Posted: Mon Oct 21, 2002 12:45 pm
by twigletmac
Yup, you don't need the parenthesis for include() statements but you do need the quotes:

Code: Select all

include 'connect.php';
http://www.php.net/manual/en/function.include.php

Mac

Posted: Mon Oct 21, 2002 12:48 pm
by tparker
Awesome guys. Thank you for taking the time to help out a green horn.
This is what I added to my script. I works now.

include("connect.php");

Thanks again,
Tony

Posted: Tue Oct 22, 2002 3:53 am
by mikeq
Dale wrote:
tparker wrote:(.)

Hmm.. that isnt what i think it is, is it? Image
Stop it!! :lol: