what is the php.ini file

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
phi_17
Forum Newbie
Posts: 2
Joined: Tue Jan 26, 2010 12:06 pm

what is the php.ini file

Post 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
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: what is the php.ini file

Post 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.
phi_17
Forum Newbie
Posts: 2
Joined: Tue Jan 26, 2010 12:06 pm

Re: what is the php.ini file

Post 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
Post Reply