This is the first tutorial of our PHP image tutorial series. There are many reasons we use PHP to serve images on sites including: resizing, watermarking, manipulation, skewing, server-caching, etc. This will cover the basics of serving and resizing an image with PHP. This technique will work with JPG, JPEG, GIF & PNG (more…)
Lets define some PHP functions we’ll be calling on for our PHP image tutorial series. We define all these functions in a file named functions.phtml and call it in our PHP code through (more…)
This tutorial will show we use jQuery to create “Select Code” links in our Code Sippets.
Before jumping into this jQuery technique, you may want to see our tutorial on how we construct our Consistent Cross-Browser Code Snippets.
Building on our Code Snippet technique we add (more…)
How did we create and style consistent cross-browser Code Snippets with <pre> and <code> tags and some simple CSS.
The problem, not all browsers treat the padding of the <pre> tag the same. I know what your first thought was…”It’s Internet Explorer!”, wrong actually the culprit is (more…)
When we create a new site’s CSS, we start with a CSS Reset to level the playing field between browsers. The problem, not all browsers treat the margin, padding, line height, font size, styling, text decoration, etc. the same, (more…)
We wanted to create stylish text images for our page and post headings, but we didn’t want to create them in advance, we wanted them on the fly. This is a tutorial on how we accomplished this using PHP.
(more…)
What would a list of How-To-Techniques be on a Wordpress site without a “Hello World!” example in PHP?
We think lacking at best, so let’s play with some simple php code (more…)