php.ini files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Nunners
Forum Commoner
Posts: 89
Joined: Tue Jan 28, 2003 7:52 am
Location: Worcester, UK
Contact:

php.ini files

Post 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
Nunners
Forum Commoner
Posts: 89
Joined: Tue Jan 28, 2003 7:52 am
Location: Worcester, UK
Contact:

Doh

Post 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?
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

if ur in windows, just put it in your c:\windows\ directory unless PEAR says for you to do otherwise.
Post Reply