Web Design Blog - June 2010

< Prev   01  02  03   Next >

PHP creating a very simple captcha

You just launched your contact form, and now you are receiving head spinning amounts of spam. How will you ever get it to stop? Where is this coming from? Unfortunately we live in a day where many people are trying to make some quick bucks generating enormous amounts of spam to your inbox. One of the ways they do this is to use a bot to run around the internet looking for simple forms that it can submit it's spam to. These bots will eventually find their way onto your contact form, especially as... read more!

Posted in php | Post Comment

PHP migrating data avoiding id collisions

You ever needed to move a lot of data from one database to another but maintain relationships and key associations? You can export a sql or csv dump and import it into another database, but this leaves one major problem.... If you are using incrementing numerical id's then your import into the second database will probably create id collisions ( ids from the old database being the same as the ids in the new database ). If both of the databases are used frequently, the amount of collisions will p... read more!

Posted in php | Post Comment

Adobe Dreamweaver Shortcuts

Have you ever discovered a keyboard shortcut by accident? You know, you are just doing your thing and bam you hit the wrong key and something unexpected happens. Sometimes it is good and sometimes it is bad. When it is a good surprise you quickly try to figure out the key combo your fat fingers just stumbled upon. I had an epiphany the other day that many of the keyboard shortcuts I use daily were discovered this way. Typically I don't scour the manual when I get a new piece of software. I was p... read more!

Posted in technology | Post Comment

CSS3 Support

As interest in HTML5 and CSS3 heats up, you may be wondering when you'll finally get to implement them in your own code. They can seem almost unusable right now due to cross browser support issues. Many of us are still stuck supporting IE6 and can't imagine trying to code with new standards that are iffy in even the most recent browsers. Wide support is coming, though it may take a bit of time yet. On the bright side there are people out there with the goal of making CSS3 usable right now. The ... read more!

Posted in CSS, html, internet, technology, web design | Post Comment

PHP script to clean up table data

You just found yourself a great source of data from your favorite search engine. This data has been formatted as a table and you'd love to get a copy and use it in your application or display it on your page. You pull up the html source, the html table code that you see makes your stomach uneasy. It renders nicely in the browser, but this html code..... How will you get this great data out? There are many ways to clean up or scrape this sort of data. I am going to discuss a quick and dirty way t... read more!

Posted in php | Post Comment

PHP putting text into an image

There are times when you will want to put text into an image and display that image. Perhaps you want to protect some text from bots, perhaps you want to use a custom font, or perhaps you are building a CAPTCHA implementation. Regardless of your motive, putting text into an image using the GD extension of php is simple. For this example, you must have TTF support in GD. // font must be relative path or a full path, gd requires it $font = './afont.ttf'; $width = 146; $height = 46; $font_size = 18... read more!

Posted in php | Post Comment | 1

Simple CSS Backgrounds

The background of a website is a very important element of the design. It sets the tone of the site, as well as framing in the content. There are three simple CSS methods to create this effect. One Color Background The one color background is great for creating fast loading websites. Not having a background image equals bandwidth savings. body { background-color: #a1bad1;} Repeating Pattern Repeating patterns allow the background to scale to any resolution. As the screen gets wider or ta... read more!

Posted in technology | Post Comment

Quality Control For Your Website

When you're building websites it can be easy to get in the habit of taking the easy way out and using elements that make sense to you. The only problem is that often users won't think the same way as you. You've invested a lot of time and work into a site, but before you do anything with it you need to sit back and do some quality control. It's your site so one of the best things you can do is get some fresh eyes on it. Ask coworkers to sit down and look through it. Have them give impressions of... read more!

Posted in technology | Post Comment

< Prev   01  02  03   Next >

View All Posts