ITT #3: Protecting Non-Public Files

If you've ever built a web app, you're probably familiar with the idea of breaking your code up into smaller pieces, then including those files using include_once or require_once. This practice can speed up your application, help you organize your code better, and increase the portability of code in future projects. Another benefit that file inclusion offers that's often overlooked, however, is enhanced security.

For example, nearly every app that I write reads to or writes from a database. To speed up the connection process, I've written a database class that I simply include in new projects, allowing me to easily open the connection and just keep on coding.

The information used in the included database file is sensitive data that could be troublesome in the wrong hands (i.e. the username and password for my database), and while... read more

What I've Learned

First and foremost, the Discovery Channel runs some crazy shit after dark.

--

As an early Christmas gift to myself, I stopped in at Best Buy today and ordered a Cintiq 12WX. It should be here on Friday, and I'm giddy. I've been drooling over this thing since August, and I cannot wait to take it for a test drive.

--

Ford managed to impress me with their new ad campaign for the Ford F150.



I always enjoy video with a heavy emphasis on typography, and it's nice to see a mainstream ad featuring wordplay.

--

The count() feature in CSS is frustrating unless you get a handle on its scope... read more

  • «
  • 1
  • »