PHP Tutorials
Allow Google Into Password Protected Areas
I have many clients that have password protected portions of their website. They love that they can charge users to access content but still allow Google into their website to index it. How does the PHP script know if it's Google accessing the site?
Basic File Uploading Using PHP
I create a lot of websites that allow administrators to upload files to their own website. Since allowing user customization has become more and more important on websites these days, I thought I'd share how easy it is to handle file uploads in PHP. The XHTML...
Weather Switcher 1.000001
A while back, CSS-Tricks Tsar Chris Coyier and I created a Weather Switcher script that connected to Yahoo!'s weather API, downloaded an XML file containing weather information for a specified zip code, and modified the website's theme based on the weather. Yahoo! recently made an update...
Using Form Input Arrays For Checkboxes
One way that I've gotten faster at XHTML forms is using input arrays whenever possible. Input arrays allow me to deal with just one variable for checkboxes that serve as multiple answers to one question. Here's how the process works. Step 1: The XHTML Form Note...
MooTools onLoad SmoothScrolling
SmoothScroll is a fantastic MooTools plugin but smooth scrolling only occurs when the anchor is on the same page. Making SmoothScroll work across pages is as easy as a few extra line of MooTools and a querystring variable. The MooTools / PHP Of course, this is a...
Know Your Environment: PHP Server Module Reporter
Jeremy Martin gave me the opportunity to guest post on his blog so I dropped a little PHP knowledge on his audience. I've created a script that analyzes a hosting environment and returns a list of installed PHP modules. What's missing? What's there?
Six Degrees of Kevin Bacon Using MooTools 1.2
As you can probably tell, I try to mix some fun in with my MooTools madness but I also try to make my examples as practical as possible. Well...this may not be one of those times. I love movies and useless movie trivia so naturally I'm...
Load Your Static Content the Dynamic Way
One of the catch 22's of owning a blog or site on the cheap is that of not breaking the budget, while tip-toeing around an overly constrictive space/bandwidth quota. Along with countless others, I myself am often hanging in the aforementioned balance. One solution...
Set the User Agent With PHP cURL
A few months back, I shared with you how to download the contents of a URL and execute a HTTP POST transmission using PHP cURL. For security purposes, some hosts require that a common user agent be present in the POST. If...
PHP Serialize() & Unserialize() Issues
I've been working on some very large forms lately and I've come to the conclusion that creating a database scheme around them wouldn't be the best option because: My customers don't need to analyze all form submissions as a whole -- form information is simply used on...