This workshop will be retired on May 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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.
The .htaccess
file, as mentioned in Before You Start, is only applicable for locally hosted servers or a hosting server you have access to. If you'd like to follow along, make sure that you are developing using a local PHP Dev Environment.
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.
http://www.howtogeek.com/howto/windows-vista/show-hidden-files-and-folders-in-windows-vista/
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up