Tutorials Page 204
PHP IMDB Scraper
It's been quite a while since I've written a PHP grabber and the itch finally got to me. This time the victim is the International Movie Database, otherwise known as IMDB. IMDB has info on every movie ever made (or so it seems). Their...
Web Hosting Search Interview
Preeti at Web Hosting Search found me interesting enough to throw together some interview questions for me. You can check out the interview at: http://www.webhostingsearch.com/articles/programming-david-walsh.php Feel free to post any followup questions here. Thank you to Preeti for putting this together.
PHP Splat Function
One of my favorite MooTools functions is $splat(). Splat takes a given argument and returns an array if the argument is not already an array. This is especially helpful when I've coded my script to cycle through an array of items for processing one at...
Prevent Default Event Actions Using MooTools 1.2
Many sweet JavaScript events are trigger by clicking on a link or a submit button. What if you don't want the browser to follow the link? What if you don't want the form to be submitted traditionally? MooTools allows you to prevent the...
Periodical AJAX Requests Using MooTools 1.2
Every browser I have, both at work and at home, has its default homepage setting set to NetVibes. Why? Because NetVibes lets me decide what content I want on my homepage and it uses AJAX to update information, so I can keep the same...
Flatten Nested Arrays Using PHP
While browsing the MooTools 1.2 source code, I found Array's
flatten()
method. Theflatten()
method takes nested arrays and "flattens" them all into one array. I asked myself how I could do that using PHP. The following is what I came up...Check for Google Analytics Using MooTools 1.2
When I launched my new design last week, I used PHP to comment out Google Analytics because I didn't want to skew the stats. Well, I did skew my stats that day because I forgot to uncomment the damn GA code. Rook move, I...
PHP / MooTools 1.2 Accordion Helper
The MooTools Accordion plugin seems to be the plugin that people seem to have the most problems with. It's an awesome plugin, so I can see why so many people want to use it, but I think that may be part of the problem.
Backup Your MySQL Database Using PHP
One of the most important tasks any developer needs to do often is back up their MySQL database. In many cases, the database is what drives most of the site. While most web hosts do a daily backup of a customer's database, relying on...
Same Site, New Theme
Hello faithful subscribers, I've posted a new davidwalsh.name theme. Let me know your thoughts. I'm not a designer but I think this is a bit better than the last "design." I still have some tweaks to make but I think it's set enough now...