Category Archives: PHP

PHP has taken the web world by storm – here I discuss my tips and experiences with it, as well as the PHP Extension Library, PEAR.

phpMyAdmin: Bypass File Upload Size Limit

When you want to import a large SQL query in phpMyAdmin, you can run into problems as the default upload size limit is restricted by whatever it is in the php.ini file – and often, you cannot change this or … Continue reading

Posted in mysql, PHP | Tagged , | 18 Comments

Sending a 301 “Moved Permanently” Header with PHP

Using these 2 handy-dandy lines of PHP code, you can easily redirect both people and search engines to a web page’s new location. By doing it this way, you not only make life easier for your site’s visitors, but also let search engines know that they should update their records about the move. Continue reading

Posted in PHP | 3 Comments

Generate Javascript Files with PHP

There are times when you might want to fetch stuff from a database using PHP and then spit out a JavaScript file. For example, many image slideshows are controlled by javascript – but what if the image references are stored … Continue reading

Posted in PHP | 5 Comments

So Your PHP Error Reporting is Off

If you’re working with crappy web host, you might notice that you’re getting a lot of blank PHP pages. This is likely due to PHP’s error reporting being completely turned off – here’s a fix. Continue reading

Posted in PHP | 2 Comments

Benchmark Your PHP Pages

Curious about how long your PHP pages take to load – or maybe you’re on a total optimizing / refactoring rampage? This will help you see how many microseconds you can shave off your page generation time. Continue reading

Posted in PHP | Leave a comment

Using PHP to Obfuscate Email Addresses

Want to thwart those pesky spambots? These 2 simple PHP functions can mask those email addresses, and when worked into your CMS, can make it super easy for you and your clients to whip up safe email links on the web. Continue reading

Posted in PHP | 4 Comments