Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP The php.ini File

I'm so lost : Can i use atom isntead of notepad? also my configuration File (php.ini) Path is C:\WINDOWS is that ok?

Also terminal does not recognize the comand edit

3 Answers

Hello Demian

TLDR: Yes you can use Atom. and yes you can use the php.ini in the C:\Windows. You might need to run Atom as administrator so it can read files from the Windows folder since normally you should not be editing those files.

However it is better to have the php.ini next to the executable, ie the php.exe.. When you installed PHP, it should have put in a C:\Program Files\PHP{version}\ or C:\Program Files x86\PHP{version}. When you use the php.ini that is tied you the executable you know your edits will only affect that version of PHP.

If the paragraph above confused you, I would suggest using a GUI (graphical user interface) to manage your PHP. Such as WAMP (Windows Apache MySQL PHP). It allows you to edit your settings files, such as php.ini with ease. Another popular tool is XAMPP.

Lastly. programming is an complex and every changing field. You will need to be comfortable installing and using software that is best suited for the project.

jamesjones21
jamesjones21
9,260 Points

I would say use visual studio code as it's really good and free. The php.ini file should be where ever your php file is located

the thig is when i open C:\WINDOWS opens all the files on c drive and i can find the one i need . Also i already use atom thats why i ask if is possible to use that so i dont have to download more software