Posts made in December, 2006

  • I’m off for the long holdiay season, so I’ll be off blogging till the next year. So here’s wishing you all a Merry Christmas and a happy holiday season. In case I don’t come online till the next year, wish you a Happy New Year in advance.

    Read More...
  • Most of us have had problems with UTF-8 problems in PHP and MySQL. Here’s how to modify your database and table to be UTF-8 compliant. Most of the time we do set the character set to utf8 but forget to set the collation set to utf8. Use the following MySQL statements to convert your database [...]

    Read More...
  • A new buzzword in the PHP circles is Fluent Interfaces, which is not really new, but a way to chain methods of an object together. Here’s an example from Mike Naberezny which shows the regular way and the Fluent way: < ?php private function makeNormal(Customer $customer) { $o1 = new Order(); $customer->addOrder($o1); $line1 = new [...]

    Read More...
  • debugConsole for PHP5

    I’m sure all us PHP developers have had to debug code on a production server and at the same time not have visitors to the site see our debug message on the site? Here’s a utility which gives you a the debug messages formatted neatly and allow locking down the debug messages only to a [...]

    Read More...
  • Chris Chabot has released a new PHP package called phpSocketDaemon. This is a blazingly fast and easy to use to create daemons listening on a socket. Here’s some of the benchmarks on a httpd server created using phpSocketDaemon published by Chris himself: Using apache bench (ab) on my home computer, using 256 concurrent , keep-alive [...]

    Read More...
  • Just nucking cracked me up Nuckin’ Futs! The JibJab Year in Review | Send To Friends | Funny Animations at JibJab

    Read More...
  • Cookie Theft on Shared Servers

    Stefan shows how shared hosting environments could lead to security threat to your site, allowing another site on the same host to hijack cookies from your site. Within a shared hosting environment it is sometimes quite often possible to bind yourself to some high TCP port and accept incoming connections. Sometimes this is possible because [...]

    Read More...
  • Want to create cool Web2.0 UI’s? You can use Apatana to create these using the Yahoo UI Library. Aptana provides you the IDE to create UI components with YUI and provides you with code complete facilities to do this too ! Check the link below to get started. Aptana also provides the same functionality for [...]

    Read More...
  • Justin Silverton shows how to create an Upload Progress meter using PHP 5.2 and Yahoo User Interface. Prior to PHP 5.2, there’s no way a PHP script could monitor the progress of a file upload, causing programmers to look at Perl scripts to provide the same information. For a demo, head over to http://progphp.com/progress.php This [...]

    Read More...
  • Here’s a cool way to scan a site visitor’s network using just HTML and the user’s browser. The concept of doing network scanning via JavaScript is hardly new and is quite easy for anyone with even cursory knowledge of JavaScript. However, the assumption was that as long as you browse the web with JavaScript disabled [...]

    Read More...