Paul Gregg

Jack of all Tech.

Stage 2: http:BL with Apache2 mod_perl

After my earlier post Referrer and Comment spammers are a PITA I came up with two mod_perl plugins to Apache and an “apache level” firewall. The reason for the apache-level firewall is two-fold.  There is no direct way for the Apache user to manipulate an iptables chain (as it doesn’t run as root), and second; […]

Read the rest of this entry »

tail -# file, in PHP

I read Kevin’s Read Line from File article today and thought I would add some sample code I wrote a while back to address a similar task in PHP – How to perform the equivalent of “tail -# filename” in PHP. A typical task in some applications such as a shoutbox or a simple log […]

Read the rest of this entry »

TinyURL PHP “flaw” ?

The Register is running a story today TinyURL, your configs are showing which points out that TinyURL has a /php.php page displaying the contents of phpinfo(). The article then goes on to make some scary sounding claims from security consultant Rafal Los “Why would you want to run a web service as ‘Administrator’ because if […]

Read the rest of this entry »

PHP on LinkedIn.com

Since LinkedIn opened up its Groups system, there has been a huge growth in the number of groups related to PHP.  Some with charters, some without; some with a specific community background and others with a specific regional focus.  I am posting this to bring attention to some of them. In order of popularity (member […]

Read the rest of this entry »

Migrated to MovableType

Well after a few days of poking and prodding and working my way around Ubuntu Hardy Heron bug compiling Image::Magick (tip: it is a bug in the supplied gcc-4.2.3 – you can get gcc 4.3 in gcc-snapshot apt package), I finally have a working MT install. Next up was writing a PunBB article and comment […]

Read the rest of this entry »

To silent fanfare, Microsoft released SQL Server 2005 Driver for PHP

On July 24, Microsoft released version 1.0 of their native SQL Server 2005 Driver for PHP. http://www.microsoft.com/downloads/details.aspx?FamilyId=61 … 597C21A2E2A&displaylang=en Some months back I downloaded a beta version of this after having problems working with international characters (UTF-8) with PDO and MSSQL and impressively the SQL Server 2005 Driver for PHP worked very well. Congratulations to […]

Read the rest of this entry »

Want to try out the next major version of Delphi for PHP ?

CodeGear is looking for additional beta testers for the next major version of Delphi for PHP (http://www.codegear.com/products/delphi/php). Interested PHP developers can apply to become a field tester at http://www.surveymonkey.com/s.aspx?sm=AsT7NAxv4zC5WYKIaK9pRw_3d_3d.

Read the rest of this entry »

FastCGI for IIS (PHP related)

I haven’t seen this announced on the PHP blogs (planets) yet and since it may be of interest to those running PHP (with IIS as a CGI) I’ll repost the details here. Joe Stagner’s Blog (Microsoft employee) has posted that the IIS team have released the FastCGI extension for IIS 5.1/6.0 as a free download […]

Read the rest of this entry »

Code release: preg_find() – A recursive file listing tool for PHP

Version 2.1 I originally wrote this a few years ago and never really promoted it beyond the realms of the #php IRC channel on EfNet.  However, it has managed to find its way into applications such as WordPress and many other PHP apps.  It is gratifying to know that others are finding it useful. So […]

Read the rest of this entry »

String Case Conversion in PHP

Occasionally I read through some comments on the PHP Manual, sometimes to get ideas on different methods of doing things, other times just to try to keep current with some of the vast array of functions available. Sometimes, I see things that really scare me – code that is written and published with the best […]

Read the rest of this entry »