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 »Archive for the 'PHP' Category
Referrer and Comment spammers are a PITA.
This shouldn’t be news to anyone – but Referrer and Comment spammers are a real pain in the a*se. Polluting my web logs and making any meaningful log analysis problematic. So, I now have an itch to scratch and I’m going to do something about it. I would encourage you, the reader, to do something [...]
Read the rest of this entry »PHP algorithms: Determining if an IP is within a specific range.
I spend a lot of time lurking in the #PHP channel (efnet and freenode, please – no flamewars) and this topic is a commonly asked one that usually gets a simplified answer in the form of using strpos(), or at best an ip2long() in a greater than and less than answer. Unfortunately although people usually [...]
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 »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 »Delphi for PHP (aka D4PHP)
Yesterday I installed Delphi for PHP (D4PHP), a new development environment from CodeGear, a Borland company. D4PHP is CodeGear’s first attempt at bringing visual rapid application development to PHP. To be honest my first impression was fear. Here I am, 10+ years into PHP and used to developing raw PHP in vi and Zend Studio, [...]
Read the rest of this entry »