David Walsh Tutorials

  • By
    Just Joined Who’s Web

    I just had the opportunity to join Who's Web, a nice Web 2.0 website that uses Google maps and loads of ajax.The website, now in beta stage, does not have a great amount of functionality, but it allows users to post their name, photo, and website.

  • By
    Organized, Short Folder Structure Using mod_rewrite

    I tend to be over-organized when I create the folder structure of my customers' websites. I like using descriptive file and folder names for a number of reasons:Search engine friendly URLS and image names (for image searches)Descriptive file names give users a "preview" of the...

  • By
    Thank you, Google!

    Google is finally picking up on my old domain's .htaccess file (its 301 redirects) and changing all of the old site's article URLs to this new domain. It's about time! Took about two weeks, and there are plenty of posts...

  • By
    PHP / MySQL Database Optimization Function

    After frequent record deletion from your MySQL database tables, your tables can acquire overhead. Overhead is empty space left inside the database table due to the deletions. A great way to speed up your MySQL database, not to mention keep it compact, is to...

  • By
    Weekend Links – MooTools Form Validation, mooPHP, jQuery Sliding Puzzle, MooTools Tab Accordion, TinyMCE 3 Alpha 1

    Since we've already figured out how to create TinyURL URLs remotely using PHP, we may as well create a small AJAX-enabled tiny URL creator. Using MooTools to do so is almost too easy. The XHTML (Form) We need an input box where the user will enter...

  • By
    Secure (SSL) Google Analytics

    Google Analytics is a tremendous tool, especially when your customer wants an eCommerce website. Analytics is even more powerful when your customer uses Adwords to drive in traffic.Google provides the following code for you to add to your page footer so that Analytics can grab...

  • By
    RSS Feed Notes

    I was checking out my RSS feeds and noticed that my code examples weren't looking good. I'll be updating the RSS feed this weekend, hopefully by having code examples display in a <pre> instead of a <textarea> (textarea needed for the Syntax Highlighter on the...

  • By
    Change Domains But Keep Your Traffic &#8211; .htaccess 301s

    Changing domains was a big decision. My biggest concern was being able to keep my user, RSS feed, and search engine traffic. Luckily, the power of the .htaccess file allowed me to do so: The above .htaccess file code, placed on the old domain...

  • By
    6 AJAX Rules To Live By

    AJAX, or Asyncronous JavaScript And XML, has been around for a few years now. Web Developers have done some really great things with AJAX, but I've also come across some horrible uses of AJAX. I've coupled together my experience as a Web Programmer and...

  • By
    &#36;50 Off DreamHost Hosting

    I took some quick time to set up a DreamHost hosting promotion code to get you $50 off yearly DreamHost hosting.DreamHost has been a great host for the site. Quick load times, great bandwidth allowance, good price, and awesome customer support.In the interest of full...