On Friday 07 February 2003 05:56 pm, Mike D wrote:
> Hello all,
>
> I have the following set in my php.ini file:
>
>
> ; UNIX: "/path1:/path2"
> include_path = ".:/usr/local/php/scripts"
> ;
>
> I placed a file in this directory containing a function, and I when I
> call the functions name i get a fatal error - function not defined...
> Am i missing something here?

Try the following:
- phpinfo() and check what it says for include path. Just to make sure that 
your php.ini got read correctly (and you're editing the correct php.ini

- check all the permissions in the include_path directorys and files.

- Put another php file in that include directory eg. test_include.php, make 
sure it's readable for the user that runs the webserver, and include 
test_include.php in another file in another directory. The test_include.php 
can just contains very simple thing like:

echo "This is a file in include_path directory";

just to make sure that you can read the included file.

If all the above works, then make sure you spell the function name correctly 
(??). Just a shot in the dark.

Hope that helps.
RDB 


>   Thanks
> Mike D

-- 
-------------------------------------------------
/"\  ASCII Ribbon Campaign against HTML
\ /  email and proprietary format
 X   attachments.
/ \
-------------------------------------------------


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to