kingkool68 - tagged with php http://www.kingkool68.com/feed en-us http://blogs.law.harvard.edu/tech/rss Sweetcron kingkool68@gmail.com TCPDF Examples http://www.kingkool68.com/items/view/5268/tcpdf-examples

PHP class useful for generating PDFs from HTML/CSS.

]]>
Thu, 22 Jul 2010 08:18:00 -0700 http://www.kingkool68.com/items/view/5268/tcpdf-examples
Using the built in WordPress media uploader in custom forms - Forrst http://www.kingkool68.com/items/view/5170/using-the-built-in-wordpress-media-uploader-in-custom-forms-forrst

A PHP class for displaying the built in media uploader tools in custom forms

]]>
Thu, 15 Jul 2010 07:38:00 -0700 http://www.kingkool68.com/items/view/5170/using-the-built-in-wordpress-media-uploader-in-custom-forms-forrst
Object-Oriented PHP for Beginners | Nettuts+ http://www.kingkool68.com/items/view/5102/object-oriented-php-for-beginners-nettuts

Good reference for creating a class in PHP and extending it and what not.

]]>
Thu, 08 Jul 2010 11:58:00 -0700 http://www.kingkool68.com/items/view/5102/object-oriented-php-for-beginners-nettuts
PHPXref 0.7: WordPress http://www.kingkool68.com/items/view/4935/phpxref-07-wordpress

WordPress source code browser. Good for documentation and reference.

]]>
Thu, 24 Jun 2010 14:29:00 -0700 http://www.kingkool68.com/items/view/4935/phpxref-07-wordpress
YOURLS: Your Own URL Shortener http://www.kingkool68.com/items/view/3508/yourls-your-own-url-shortener

PHP Scripts/WordPress plugin for making your own URL shortener complete with stats.

]]>
Fri, 16 Apr 2010 07:04:00 -0700 http://www.kingkool68.com/items/view/3508/yourls-your-own-url-shortener
A Solution For The WordPress Gallery - - WP Engineer http://www.kingkool68.com/items/view/3132/a-solution-for-the-wordpress-gallery-wp-engineer

How to modify WordPress' Gallery HTML shortcode

]]>
Mon, 15 Mar 2010 14:02:00 -0700 http://www.kingkool68.com/items/view/3132/a-solution-for-the-wordpress-gallery-wp-engineer
Parsing tweets with PHP : Five Minute Argument http://www.kingkool68.com/items/view/3119/parsing-tweets-with-php-five-minute-argument

a very simple chunk of code to auto-link the following parts of a tweet:

* URLs (into direct links)
* hashtags (link to a twitter search for that hashtag)
* usernames (link to that user’s profile page)
]]>
Mon, 15 Mar 2010 08:06:00 -0700 http://www.kingkool68.com/items/view/3119/parsing-tweets-with-php-five-minute-argument
Dummyimage.com Gets New Features http://www.kingkool68.com/items/view/3059/dummyimagecom-gets-new-features

Ever since the surge of interest in my pet project dummyimage.com I’ve been meaning to add some new features. Today is the International Day of Awesomeness (which coincides with Chuck Norris’ birthday) and I couldn’t think of a better time to unveil DummyImage.com’s new functionality to the public.

Here is a run down of the changes: Specify Custom Colors You can choose the background and foreground colors of the dummy image right in the url using a 6,3,2, or even 1 character hexcode. Don’t worry if you forget to do this as dummy image will default to gray and black. Add Your Own Text A lot of people wanted to be able to add their own text to a dummy image to better communicate what it is representing. Now using the &text= parameter you can. A Better Typeface Arial be damned! Font geeks cringed at my basic choice of a font. Some seemed worried about my distribution of the most popular font on Earth. Now both camps can be happy as I’m now using the completely free and open M+ Font. I also changed the X in the middle of the images to a multiplication sign × as pointed out by Erinah and Dave Cortright. Standard Image Sizes Dummyimage.com is a useful prototyping tool and a lot of prototypes and wireframes have ad positions. Instead of memorizing dimensions you can now bring up ad sizes by their industry-standard name like largerectangle, skyscraper, and fullbanner. You can even customize the colors, text, and formats of theses sizes as well. Pick Your Format Before you could add any image format extension to the url but my script would still generate a GIF image everytime. Now you can generate proper PNG, JPG, and GIF images and drag them into another app trouble free.

And with these new features I figured it was time to give the site a proper, though still simple, design. Rather than bury how these features work in long, boring text I made a little tool that shows you everything you need to know with minimal fuss. Not a fan of change? Don’t worry, you can still use Dummyimage.com to generate place holder images exactly the same way you have always been doing it. So thank you to everyone who has e-mailed me, tweeted me, left a comment on a post somewhere or otherwise provided feedback on dummyimage.com. I’m glad so many people found it as useful as I think it is. Keep the ideas and dummyimage variations coming. I’m sure this thing could be better. a

]]>
Wed, 10 Mar 2010 06:21:00 -0800 http://www.kingkool68.com/items/view/3059/dummyimagecom-gets-new-features
PHP Form Validation functions « Web Collections http://www.kingkool68.com/items/view/2829/php-form-validation-functions-web-collections

Handy functions for scrubbing PHP input clean and sanitizing it.

]]>
Fri, 19 Feb 2010 13:37:00 -0800 http://www.kingkool68.com/items/view/2829/php-form-validation-functions-web-collections
15 Fantastic Finds on the Google Code Repository http://www.kingkool68.com/items/view/2713/15-fantastic-finds-on-the-google-code-repository

Lots of interesting Google Code projects related to web design.

]]>
Thu, 11 Feb 2010 20:38:00 -0800 http://www.kingkool68.com/items/view/2713/15-fantastic-finds-on-the-google-code-repository
Dummyimage.com Sees A Surge In Interest http://www.kingkool68.com/items/view/2474/dummyimagecom-sees-a-surge-in-interest

Way back in August of 2007 I built a simple PHP tool that generates place-holder images at different size by simply changing the URL. The idea came to me when I was working on a redesign for USNews.com. I hated opening up Photoshop, creating a new document,  filling the background layer, and exporting for web just to make a simple placeholder image. That is why I made dummyimage.com. I figured it would be useful to other people which is why I also released the complete source code, documented and including instructions for setting it up on your own server. But like most new things, few gave it any notice.

The other day my friend Charlie Park (founder of Pear Budget) found it when doing some in-browser wire-framing and sent out a tweet to all of his followers. But he didn’t stop there. Charlie also posted it to Hacker News, a simple news aggregator aimed at geeks. It was obvious that my little tool was resonating with other developers with the tagline “Lorem ipsom for images.” In 24 hours, the Hacker News story got 161 votes with 77 comments, 513 people bookmarked it on del.icio.us, and 337 tweets. What really struck me was how dummyimage.com was crossing the language barrier. I saw tweets mentioning in Spanish, Japanese, Russian, German, Dutch, even Latvian. I’m glad my idea was simple enough that foreign speakers could easily pick it up without any translation help.

All of this sudden attention also produced helpful feedback and new feature ideas. I started working on an update this past December for a few additions I wanted to see but this recent surge of interest has lit a fire under my butt to continue developing. As is the nature of opensource software, people don’t have to wait for me; they can adapt the code to their own needs. Here are some iterations that have already been made:

Fakeimage (Ruby) Placeholder_image (Ruby) Lorem ipsom for Images (JavaScript/jQuery)

And somewhere down the line I would like to give it an attractive homepage. Hooray for side projects! a

]]>
Thu, 28 Jan 2010 04:52:00 -0800 http://www.kingkool68.com/items/view/2474/dummyimagecom-sees-a-surge-in-interest
CSScharts - bar charts created with pure CSS http://www.kingkool68.com/items/view/2270/csscharts-bar-charts-created-with-pure-css

PHP script that automates creating HTML/CSS bar charts out of UL or OL elements.

]]>
Fri, 15 Jan 2010 04:42:00 -0800 http://www.kingkool68.com/items/view/2270/csscharts-bar-charts-created-with-pure-css
Advanced Power Tips for WordPress Template Developers: Reloaded - Smashing Magazine http://www.kingkool68.com/items/view/1938/advanced-power-tips-for-wordpress-template-developers-reloaded-smashing-magazine ]]> Tue, 15 Dec 2009 11:52:00 -0800 http://www.kingkool68.com/items/view/1938/advanced-power-tips-for-wordpress-template-developers-reloaded-smashing-magazine PHP Code Snippits - CSS Tricks http://www.kingkool68.com/items/view/1659/php-code-snippits-css-tricks

Greatl ist of PHP code snippits

]]>
Sun, 22 Nov 2009 19:19:00 -0800 http://www.kingkool68.com/items/view/1659/php-code-snippits-css-tricks
Regular expression tool - regex.larsolavtorvik.com http://www.kingkool68.com/items/view/1267/regular-expression-tool-regexlarsolavtorvikcom

Excellent PHP regex testing tool.

]]>
Mon, 19 Oct 2009 20:22:00 -0700 http://www.kingkool68.com/items/view/1267/regular-expression-tool-regexlarsolavtorvikcom
parsecsv-for-php - Project Hosting on Google Code http://www.kingkool68.com/items/view/1130/parsecsv-for-php-project-hosting-on-google-code

Library for parsing CSV files using PHP.

]]>
Wed, 07 Oct 2009 07:43:00 -0700 http://www.kingkool68.com/items/view/1130/parsecsv-for-php-project-hosting-on-google-code
PHP for converting numbers into words (upto one lakh) http://www.kingkool68.com/items/view/867/php-for-converting-numbers-into-words-upto-one-lakh

Nifty number to word translation.

]]>
Thu, 03 Sep 2009 11:55:00 -0700 http://www.kingkool68.com/items/view/867/php-for-converting-numbers-into-words-upto-one-lakh
sNews PHP/MySQL CMS http://www.kingkool68.com/items/view/215/snews-phpmysql-cms

A simple, lightweight CMS aimed at developers. Would be interesting to try some day for a small project.

]]>
Tue, 07 Jul 2009 10:25:00 -0700 http://www.kingkool68.com/items/view/215/snews-phpmysql-cms
Welcome - Perch - A Really Little Content Management System (CMS) http://www.kingkool68.com/items/view/216/welcome-perch-a-really-little-content-management-system-40cms41

A simple, no frills CMS for small projects. Suppose to be quick and easy to install.

]]>
Tue, 07 Jul 2009 10:23:00 -0700 http://www.kingkool68.com/items/view/216/welcome-perch-a-really-little-content-management-system-40cms41