PHP Tutorials

  • By
    PHP Woot Checker – Tech, Wine, and Shirt Woot

    If you haven't heard of Woot.com, you've been living under a rock. For those who have been under the proverbial rock, here's the plot: Every day, Woot sells one product. Once the item is sold out, no more items are available for purchase. You don't know how many...

  • By
    April Fools!  Change Your PHP Pages to ASP…Or Not

    I don't know a lot of PHP developers that think very much of ASP. This, of course, sets the stage for a great April fools trick: we're going to change all of the links on our website from ".php" to ".asp" and see how...

  • By
    Watch Your POST:  Save PHP POST Data as XML

    One of my main goals when creating PHP web forms is to keep them secure and protected from spammers and automated bots. With the amount of spam that Akismet catches every day, I don't need to be reminded of the importance of securing forms.

  • By
    Set Up Your WordPress Blog To Allow Trackback Toggling

    One aspect of WordPress I dislike is that trackbacks display as a comment with the rest of a post's comments. Trackbacks are a nuisance when there's a great conversation going within the post's comments. Some users, however, love trackbacks so I can't simply get...

  • By
    PHP error_reporting() Cheat Sheet

    Error handling is important in any programming language and PHP is no exception. Lucky, error handling in PHP is extremely easy to set up. The following is a quick cheat sheet for PHP, straight from PHP.net. Error Levels The following values and constants can be used...

  • By
    Learning Ternary Operators — Tips & Tricks

    I started using ternary operator logic about six months ago and notice myself using shorthand if/else logic all the time. It shortens my code, the time to write it, and makes me look smarter to the mustaches.Thanks to Google Analytics, I've found that I receive...

  • By
    Force A Secure Page Using PHP

    Many pages, most often pages with forms or pages that serve personal information, require the need to be served over a secure connection. Even recreational internet users have gotten accustomed to looking for "lock" icon within their browser before inputting data into a web form.

  • By
    Execute a HTTP POST Using PHP CURL

    A customer recently brought to me a unique challenge. My customer wants information request form data to be collected in a database. Nothing new, right? Well, there's a hurdle -- the information isn't going to be saved on the localhost database -- it...

  • By
    MySQL’s REPLACE() Is PHP’s STR_REPLACE()

    The PHP function that I use the most could be str_replace(). If you aren't familiar with the function, here's what it does: Over the past months, I've grown to realize that I oftentimes use the function as a quick fix. I've been...

  • By
    MSN Live Search Result Grabber

    Within the last month, I've created two popular SEO tools: Google Grabber and Yahoo Grabber. Each grabber goes to the respective website and retrieves the number of pages a specified domain has indexed in the search engine. Having the indexed number...