php.ini

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
User avatar
Love_Daddy
Forum Commoner
Posts: 61
Joined: Wed Jul 10, 2002 6:55 am
Location: South Africa
Contact:

php.ini

Post by Love_Daddy »

Hi,

I see my Path and Directories in php.ini is empty, since I'm linux, what do I write in there for
it to work properly?

Thanks
User avatar
musashi
Forum Commoner
Posts: 39
Joined: Tue Jul 23, 2002 12:51 pm
Location: Santa Cruz - CA

php.ini help on linux

Post by musashi »

In most cases php.ini works fine without needing any alterations. This is, of course, assuming you have a basic setup and are not trying to do anything fancy. ;)

However, if you setup a test.php page:

<?php phpinfo(); ?>

or (for the CGI version) type: php -i
you should get some information on the setup of your php (the command argument dumps html out so you might want to direct it into a temp file and view in a web browser).

The normal location for the php.ini file is /usr/local/lib
By default your installation should have placed it there.
Post Reply