My name is Vincent Franco. I am passionate about web development, and vintage motorcycles.

Conditional Stylesheets with PHP

If you tired of having nasty little conditional comments like this “<!–[if lte IE 6]>…<![endif]–>” in your clean markup. Here is a quick and simple PHP function for checking what version of explorer your visitor has.

function isIE($version) {
   if ( preg_match('/MSIE (6|7)\.0/', $_SERVER['HTTP_USER_AGENT'], $ver) ) {
     if ($ver[1] == $version) return true;
   } else { 
     return false;
   }
}

And here is how you use it:


<?php if (isIE(6)): ?>
<link href="ie6.css" rel="stylesheet" type="text/css" media="screen" />
<?php endif ?>

Simply change the number to test for IE7! Now your markup doesnt have those nasty hack comment/conditional statements and you can sleep easy at night.

This entry was written by Vincent, posted on August 27, 2008 at 8:33 pm, filed under Blog, Development. Leave a comment or view the discussion at the permalink.

Version control with springloops

Beanstalk+Versions has been my tools of choice for version control. Which has worked out great so far, I have no complaints about Beanstalk. The one area that versioning always got a little out of control was deployment.

In comes springloops!

Nice versioned deployment of development, staging, and production servers. Now I can easily deploy across multiple servers for application upgrades to all clients, leaving configuration the way it is supposed to be for each site while just upgrading the back-end pieces to make sure all the clients have the latest and greatest app.

I love it when I find services that make my life easier.

This entry was written by Vincent, posted on at 12:10 pm, filed under Blog, Development, Thoughts. Leave a comment or view the discussion at the permalink.

Freshivore in effect!

The site progress is creeping along and I am pretty happy with the way everything is coming out. The contact, about, and portfolio page still needs some tlc, a few quirks are still lurking in the stylesheet and I need to fix some of the markup to make it more semantic. Yes I know that is almost all of the site, but this is my site to be free with, no constraints on deployment no holding back on the options. So I constantly think of things I want to implement and change… Maybe I jumped the gun setting the site loose to the outside world? Oh well I’ll just think of this site as a work in progress!

With this being my first experience with wordpress and my first blog design I am open to comments and suggestions about the site.

This entry was written by Vincent, posted on August 13, 2008 at 3:37 pm, filed under Blog, Thoughts. Leave a comment or view the discussion at the permalink.

ALA Survey 2008

It’s that time again! A List ApartALA : Survey 2008 is calling on all designers, developers, information architects, project managers, writers, editors, marketers, and everyone else who makes websites. I found last years survey to be a very insightful look into our industry. So with all said and done, “I took the survey and so should you.”

This entry was written by Vincent, posted on at 12:08 pm, filed under Blog, Industry. Leave a comment or view the discussion at the permalink.