Web Design Blog - June 23, 2010

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


View All Posts
web design corner image