Page 1 of 1

what is the php.ini file

Posted: Tue Jan 26, 2010 12:15 pm
by phi_17
Hi,

I download the 5.2.12.zip from php.net
I went accross some how-to-install threats and it said to copy the php.ini-dist to c:\windows and rename it to php.ini
and there is no php.ini in the zip package that I download.
{Howerver, on another older system using php 5.1.4 we have php.ini in the php folder (c:\php\php.ini).}
My question is do I really need the php.ini file in my c:\php or c:\windows at all (by renaming th php.ini-recommended or php.ini-dist ...)or should I just use whats in th php zip package that i download fom php.net and don't change any file name?

Thanks

Re: what is the php.ini file

Posted: Tue Jan 26, 2010 1:00 pm
by JakeJ
you have to have a php.ini file. So rename the file php.ini-dist to php.ini. Then you can configure php from there. Most of the time the default is fine. But you might need to enable extra extensions, etc.

Re: what is the php.ini file

Posted: Tue Jan 26, 2010 1:18 pm
by phi_17
I don't quite get this because without php.ini my php scripts are working just fine. (I wasn't so sure about whether to chang file name so I left it the way it is and din't copy anything to the c:\windows or system32.) Havn't got
any problem yet. It properly slow when we browse the website from remote computer but
thats about it as of now.

Ps. I am using IIS6 php 5.1.4 and and IIS7 with php 5.2.12