How would you like to MASTER graphic design by next week?
Click here to find out how
Featured Photoshop templates - professional ready to use designs for your next project
View all templates
Tag cloud using php, mysql and ajax with filter - PHP tutorial
Simple and effective script to build a tag cloud for your website. Here we use PHP, Ajax and MYSQL. Tagging is now becoming an unavoidable area in website building and if you have a built in code like the one you are about to see, then it will be easy for a developer to integrate it or even customize it according to the requirement. First and foremost we need to have MYSQL set along with the page with an html input field, the ajax part and some css for styling.
More cool PHP tutorials:
PHP Shorthand if and else assignments
Learn how to use phps ternary operator to speed up writing if and else assignments. Make your code more readable and easier to edit!
Add Custom Image Sizes Into Media Library
In a previous code snippet we found about how you can define new custom images sizes to use on your WordPress theme. This will use the WordPress built in function called add_image_size(). add_image_size( 'custom-image-size1', 300, 900, true );
PHP Cookies-enabled check in 3 effortless steps
This tutorial should help you get an overall idea of how to check if cookies are enabled. Customize the code to meet your needs. Don't forget to include a cookies test script in all Web applications that handle cookies or sessions in some way.
Copying an object in PHP with clone
Objects in PHP are assigned by reference, so copying an object with the = operator will result in a second variable referencing the same object and not an actual copy. Enter PHP's clone function which creates a shallow copy of the object.
Writing a Post Views Count Plugin: Part 1
Writing a plugin to display post views count for each post, including shortcode and template tags feature to use it anywhere.