How to download php.ini

Attention: open in a new window. PDFPrintE-mail

( 2 Votes )

This may seem pretty noob to some people but I’ll post it anyway since I’ve been asked a few times.

There are a lot of tweaks for PHP that you can perform by placing a local copy of php.ini in the location of your scripts and modifying the necessary values. Modifying this file will let you increase the default upload size (2MB? No way.), script max execution time and, in general, make you look like a magician.
The default location on most *nix boxes is /usr/local/php/lib and if not, then running the <? phpinfo;?> command will tell you the where it is. If you can’t access the file to see the contents you can download a copy of PHP from http://www.php.net/downloads.php and extract the php.ini file or view the generic one here: http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co.

Simple as that.


Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Joomla Free PHP
Comments
Add New Search RSS
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

SEO by Artio