Convert Multiple Spaces To a Single Space

Sometimes you want to sanitise a block of text or input by removing consecutive multiple whitespace entries from it, replacing them with a single space. This php code will allow you to do just that: $message = preg_replace("/ss+/", " ", $message);

Some useful news from the WASC

The Web Application Security Consortium (WASC) is pleased to announce the inital release of data collected by the Distributed Open Proxy Honeypot Project. This first release of information is for data gathered from January – April, 2007. During this timeframe, we had 7 internationally placed honeypot sensors deployed and sending their data back to our central logging host.What did we […]