Enabling GD for PHP on OSX Leopard (10.5.x)

While Apple’s included PHP configuration included with Apache is getting better and better, it is still far from complete.

First thing that it’s missing is support for GD library, which, if you are looking to manipulate images via PHP, is simply essential.

While there are a bunch of other ways to run PHP (XAMPP, MAMP and others), I like using the Apache and PHP that come with Leo and build on top of that (like a true geek).

Here’s how to compile GD for your PHP…

Read more

Choosing a hosting company; 10 things you should look for!

serveri If you are looking to put a website on line, one of the hardest things will be finding a good, reliable web host.

Choosing a web host is not a trivial thing. There are many aspects to consider besides the price, which most of times matter more than the price you pay for hosting. Here are some tips on what to look for:


Read more

Linux tip: When /bin/rm argument list is too long…

If you’re trying to delete a huge amount of files in Linux via command line, you may find yourself in a pickle.

Typing, say:

rm -r movie_queue_batch.php*

May tell you:

bash: /bin/rm: Argument list too long

However, an easy way out of this is by doing the following:

find . -name ‘movie_queue_batch.php*’ | xargs rm

The rule of a thumb goes as with all destructive commands in Linux: before “piping” it to xargs rm run the find command first so you may see which files will be affected.

Thanks to: http://www.moundalexis.com/archives/000035.php