Page 1 of 1

php.ini files

Posted: Fri Dec 05, 2003 10:00 am
by Nunners
I'm trying to get some of the PEAR stuff running on a server, but without installing it PHP.

I believe if I create all the appropriate files, in the same directory structure, all I need to do is make sure there is an include_path line somewhere....

If I want to do this for a whole website, where the site is in:
/webs/website/

I think I need to put a php.ini file in that directory with the following line:
include_path = ".:/webs/website/PEAR"

Is this correct? I know I've done something wrong, as it doesn't work!

Thanks
Nunners

Doh

Posted: Fri Dec 05, 2003 10:11 am
by Nunners
OK.... so I've now worked out what the problem was....

I was calling a file in a directory further down....

Does this mean I have to have a php.ini file in every directory?

Posted: Fri Dec 05, 2003 11:12 am
by infolock
if ur in windows, just put it in your c:\windows\ directory unless PEAR says for you to do otherwise.