Web Design Blog - November 21, 2008

Using php from unix command line to process/modify files

This trick/snippet combines the flexibility of unix/linux command line tools combined with php scripting. If you are unfamiliar with the "find" command, you are missing out on your abilities to search and perform updates to many files. PHP can be used to do many things, this trick will teach you how to do some of those things on many files in one go, helping you automate what would normally be a very manual process. For example, say you need to do a find replace on many files, you could use find... read more!

Posted in php, snippets | Post Comment

Random can be fun

Here is a snippet that will display a random sentence or phrase out on a php page. -------------------------------------------------- $sentences = array( 'RRRRR Matey' ,'Take a chill pill' ,'Sit and relax' ,'On vacation we go' ); $random_sentence = $sentences[ rand(0,count($sentences)-1) ]; echo $random_sentence; --------------------------------------------------------- ... read more!

Posted in php | Post Comment

Google SEO Secrets Revealed… Sort of.

This month Google released their SEO Starter Guide. This guide outlines the basics of search engine optimization (SEO) as it relates to Google. This is a great document to reference when you are trying to explain SEO to the average Joe. If you have a basic understanding of SEO there really isn't anything new here, but it would make a great desktop guide when doing basic SEO on a website. ... read more!

Posted in technology | Post Comment

The Canon HF100: Who Puts This Stuff on the Bottom?

Here at Lunawebs we use a pair of solid-state HD camcorders to record all of our footage. They are great cameras with lots of manual control and a very nice image. They record directly to SD cards using AVCHD, which is a compressed form of HD, but looks very good (especially at the highest bitrate). Sure, you have to have a beefy computer to decode the image, but since cameras tend to outlive computers, it is an easy call in progressive purchasing. One thing that absolutely baffles me is how suc... read more!

Posted in technology | Post Comment


View All Posts