The .htaccess File4:52 with Alena Holligan
Especially on a shared server, you don't always have access to modify the php.ini file. Using a .htaccess file will allow you to set error level at a directory level and also show parse errors, which stop a php script from processing.
WARNING! Be careful that your error handling does not get pushed to production.
.htaccess File Settings
php_flag display_startup_errors on php_flag display_errors on php_value error_reporting -1 php_flag html_errors on
How to show hidden files in Mac OS X
The Terminal application is the best way to display hidden files in Mac OS X. The Terminal app enables you to control Mac OS X using the command line to enter Unix commands. We like to think of Terminal as the hood of a car; it allows you to open Mac OS X up and look inside.
Open Terminal (click Go > Utilities and double-click the Terminal app)
Now copy and paste both lines listed below into Terminal one at a time, and press Return after each line:
defaults write com.apple.finder AppleShowAllFiles YES killall Finder
How to show hidden files on Windows
- Open Folder Options by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Folder Options.
- Click the View tab.
- Under Advanced settings, click Show hidden files, folders, and drives, and then click OK.
You need to sign up for Treehouse in order to download course files.Sign up