tags:

views:

19

answers:

3

Instead of copying php.ini files over from old PHP versions whenever I upgrade PHP, I would like to be able to download the newest php-recommended.ini file from somewhere by itself. I have searched for this option on php.net but I could not find it.

It seems like it should be an easy question, but I have not been able to answer it.

Thanks for any help!
Metropolis

+2  A: 

Just download it directly from the repository.

Byron Whitlock
Beat me by 42 seconds!
prodigitalson
+1  A: 

You can grab it from SVN:

http://svn.php.net/viewvc/php/php-src

It will be in the root of the trunk/tag/branch youre dealing with.

prodigitalson
I actually like this one better only because its graphical lol
Metropolis
I think the best answer for me would be http://svn.php.net/viewvc/. Just so I could see where all of the source files are.
Metropolis
A: 

php.ini for development servers:
http://svn.php.net/viewvc/php/php-src/trunk/php.ini-development?view=co

php.ini for production servers:
http://svn.php.net/viewvc/php/php-src/trunk/php.ini-production?view=co

Then download the version you need, rename it to php.ini and put it in the right directory.


EDIT:
Instead of download from the trunk, you should instead find your version of PHP here and download either the php.ini-development or php.ini-production file from there. This is because the newest version might be too new for your version of PHP, and might be incompatible and cause only trouble for you.

Frxstrem
Im aware of what versions I need to download.....I just wanted to know where they are. Thanks for the help though!
Metropolis