Skip to main content

tag: PHP

Categories
Code SamplesPHP

Exporting Announcements from WHMCS

Doing some integration work with WHMCS, I found the need to export some of the announcements into Wordpress. Since there isn’t any native implementation of this, I found the best way is to export it directly from the database. The PHP code to do this is fairly easy…


According to “official” system administrator rules and guidelines you shouldn’t be adding so-called vain scripts to the login prompt – only utilities that will add something useful to the system (for example, current system load, memory and disk usage, etc). However I have some systems that I frequently connect to and thought it would be […]



A forum that I am an adminstrator for has been clamoring for an iPhone theme (style) for a long time now. In the past, I hadn’t seen any usable iPhone template for phpBB3, until now.

View this entire post to view my modifications to a theme switcher for mobile devices, so that the end user can disable a mobile theme for their login if they should choose to do so.


I recently tried to install a PHP PECL extension on a server I manage, when I received this error: [root@xxxx PDO-1.0.3]# pecl install pdo downloading PDO-1.0.3.tgz … Starting to download PDO-1.0.3.tgz (52,613 bytes) ………….done: 52,613 bytes 12 source files, building running: phpize Configuring for: PHP Api Version:         20041225 Zend Module Api No:      20060613 Zend Extension […]


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 […]


Categories

ffmpeg PHP Extension Howto for CentOS

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




Cacti remote exploit

There appears to be an exploit in the wild which is automating the Cacti Command execution and SQL Injection Vulnerability [see Secunia alert 23528]. Via this exploit, any server running an older version of Cacti from before December 28th. Of course it’s always best to keep your software up to date. Other tricks to keep […]


  • 1
  • 2