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

I'm not understanding what php.ini is...

So I've looked at the php.ini file, and I'm understanding it as some kind of text based settings panel of sorts...but how does this text(?) file (I'm not sure what an ini file in general is) become the settings for your PHP debugging?

2 Answers

ceriannejackson
ceriannejackson
23,759 Points

The php ini file is just a text file that contains a load of different settings and parameters for your PHP configuration. It gets read when PHP starts. Have you had a look at the PHP documentation? http://php.net/manual/en/configuration.file.php

Antonio De Rose
Antonio De Rose
20,885 Points

The php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits.