Category Archives: Tutorials

PHP Ternary Operator (if-else shortCode)

php-ternary-operators

The ternary operator a shortcut comparison operator that replaces an if-else statement. This can be implemented to reduce number of lines and time costs in your projects if you need to use a lot of comparison operators. The ternary operator is really very simple so use, but it might confuse newbie PHP programmers. Continue

PHP IMDb information grabber

IMDB-logo

There was a plenty of these “IMDb info grabbers” or so called APIs. It’s quite a shame that IMDb in fact doesn’t have an actual API. And all of these “grabbers” now does not work, because IMDb has changed it’s design.
I thought it would be a good idea to write and publish working script since one of WDT blog readers have asked for it (and because I needed one myself :) ). Continue

PHP sessions: video tutorial

php_sessions_video_tutorial

A PHP session allows you to store user information on the server for later use. However, session information is temporary and is usually deleted very quickly after the user has left the website that uses sessions. Continue

Concatenating PHP strings

concatenating-php-strings

In this tutorials I’ll show you how to manipulate strings via concatenating several strings together. It should help PHP rookies and become a great time-saver. Continue

Start using HTML5 Placeholders today!

html5-logo-black

Still not using HTML5 because of partial support? We are comming with good news for you – you are probably using javascript mess to achieve placeholder effect on your form inputs. HTML5 offers built-in placeholder attribute. And for those evil browsers without HTML5 support we have jQuery fix. Great, isn’t it? Continue

Sexy Sharp buttons

sexy-sharp-button-CSS-outline

Web 2.0 is a great thing. But together with conseption of content, buildable by users comes stereotype of round web. When CSS3 was introduced, it looked cool to round everything we want without any javascript, but nowadays every button, every website is rounded. Border-radius made webmasters mad.

You may improve your designs by using old-fashion square corners.

Combining borders with outline you may generate some great looking web elements without any CSS3!

Continue

Snippet: adding suffix to the number

php-snippet-number-suffix-1t-2nd-3rd-th

It is so simple to add suffix to any number in english and ir provides a lot better user experience. Continue

CSS keyframe animation basics

CSS3 keyframe animation basics

CSS3 offers us almost unlimited posibilities to make user experience much richer by using pure CSS animations. In this tutorial basic usage of @-webkit-keyframes will be reviewed. Continue