Tully Rankin

My blog includes various articles on Linux, PHP, BASH, Programming, Security, and other technology related topics.

Entries for December, 2009

Parse Apache Config for DocumentRoot in C

So I am now on my second week of learning the C language. I have been writing a lot of small programs just to get the hang of the code. I have written simple calculators, guess my number games, and simple quizzes. Tonight I was working on code that could parse a apache config and [...]

Leave a Comment

Youtube URL to Embed Code

Working on a new site and wanted to add a function to add embed code from YouTube. I am limiting the amount of html that is allowed to be posted by the users. I also wanted to make sure the user could only embed a video from YouTube. The function I’m working on takes the [...]

Leave a Comment

PHP Decorator Pattern

I read “PHP Objects, Patterns, and Practice, Second Edition” a while back but nothing really kicked in. I have yet again started studying various design patterns. I have started reading “Head First Design Patterns” and feel this book is easier to understand. I also recently finished the “Head Fist SQL” book which was written very [...]

Leave a Comment