Tips, Tricks and Information for the Modern Technologist

Category: PHP


Use PHP, GD and .htaccess to Watermark All Images in a Directory

Posted 30th January in Code Samples, PHP. 17 Comments

The goal here is to watermark all images in a certain directory, except for thumbnails or other selection. You can either do this on each file prior to placing on your webserver – which is probably wise for CPU load issues – but let’s just say you want to do this for all files served [...]


ffmpeg PHP Extension Howto for CentOS

Posted 17th September in Linux, PHP. 2 Comments

If you need to compile ffmpeg for PHP (for example, to allow PHP to process video similar to how YouTube does) – then follow this Howto from Nazly. For a CentOS machine with custom PHP, it works great. Ffmpeg PHP Extension Compile Instructions


.htaccess stupid tips and tricks

Posted 11th September in Code Samples, Configurations, PHP, Security, System Administration, Webdesign. Comments Off

Found an encyclopedic list of “stupid” .htaccess tricks. Includes many useful ones such as being able to stop hotlinking of images and replacing with your own, increasing speed and security and general good-to-know htaccess information. Stupid htaccess tricks


Joomla! 1.0.12 Double Pathway Bug

Posted 27th June in Code Samples, Joomla, PHP, Webdesign. 5 Comments

Joomla! 1.0.12 appears to have a pathway bug. If you use a component other than com_frontpage for the “Home page” of Joomla – meaning the first link in mainmenu and the page that appears when you load the root of the Joomla! site – then when you click on an article you get a “Double [...]


PHP Script for controlling APC PDU via SNMP

This one is neat – you can control those APC PDU Power Poles over the network via SNMP. This works for the APC Switched Rack Unit PDU, but it may work for others. I use this on a PDU with Network Management Card AOS version v2.6.4 and Rack PDU APP v2.6.5, so of course this [...]