Tag Archives: php

WordPress v3.x: Don’t Replace Double Dash (--) With Single Dash

WordPress has a built-in feature that will replace a double dash (noted as “--”) with a single, but slighly longer, dash. This is great if you’re a writer or reporter, but it’s damn annoying if you’re trying to write Linux … Continue reading

Posted in Devops | Tagged , | Leave a comment

phpsh: Running An Interactive PHP Shell (Python)

If you haven’t heard of it yet, there’s a very intersting tool available called phpsh, a python implementation to a PHP shell – but better. Installing phpsh SSH into your server, and download, build & install the binaries. This assumes … Continue reading

Posted in Devops | Tagged , , | Leave a comment

Webcast: Database Sharding at Netlog with MySQL and PHP

An interesting Webcast has just popped up, on MySQL’s usage in one of the biggest databases online: Netlog. Netlog, one of the fastest-growing Web communities in Europe, need to ensure its database infrastructure will scale to handle its traffic increase … Continue reading

Posted in Technology | Tagged , , , , | Leave a comment

Compiling PHP With “--with-jpeg-dir” Not Working?

Had this strange issue a couple of days ago, where the following compile command didn’t give me the expected results (ability to use imagecreatefromjpeg() function). ./configure --with-gd --with-jpeg-dir=/usr/lib make make test The “make test” yielded the following results. SKIP gif --> … Continue reading

Posted in php | Tagged , , | 5 Comments

On The Subject Of Naming Variables

It happens to everyone. You’re typing hundreds and thousands of lines of code, and you suddenly find yourself stuck. You need to come up with the name of a new variable, and you can’t find one. It’s something so incredibly … Continue reading

Posted in php | Tagged , , , | Leave a comment