PHP gets its options from a file php.ini on your hard drive. If this does not exist, PHP assumes a default set of values, so it is best to set up a php.ini file to make sure you have PHP working as you want.
If you do not have access to your php.ini file, perhaps because you host your site elsewhere, you will need to hand set your PHP settings in each script, although there are limitations on how much you can change.
Want to learn PHP 7?
Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!
If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!
Next chapter: Summary >>
Previous chapter: Abnormal script termination
Jump to:
Home: Table of Contents
Copyright ©2015 Paul Hudson. Follow me: @twostraws.