How to easily create Debian packages for PHP extensions

Written on March 20th, 2011
.

debian php packe How to easily create Debian packages for PHP extensions

Let me explain to all of you how to create a Debian package from a PECL tarball. Currently is very simple to package a PECL extension without having any previous experience in Debian packaging and thus this system administration by installing deb packages could be more easy too.

So let’s start the packaging.

Read the rest of this entry »

Indent your HTML code with a Smarty plugin

Written on January 27th, 2011
.

images Indent your HTML code with a Smarty pluginIf you are using Smarty as a template system in your PHP project you will be very pleased to use this tiny-but-very-useful outputfilter that I made.

Smarty as you can read in its documentation has some extension points where you can create plugins into to extend its functionality. One of them are outputfilters, that allow us to operate on a template’s output, after the template is loaded and executed, but before the output is displayed.

So you can modify your final HTML code with those extentions point without a any pain.

Read the rest of this entry »

Debugging PHP with XDebug and Komodo IDE

Written on October 6th, 2010
.

Captura de pantalla 1 Debugging PHP with XDebug and Komodo IDEWhen you develop a very important web app it is pretty sure you will need debugging it. The best way to do this is using XDebug so in this article I am going to explain how to setup and use XDebug with Komodo IDE or Edit, but you can use it for Netbeans or Eclipse as well.

The first step is install XDebug in your system (I assume that you have already installed a LAMP server in your system). Read the rest of this entry »

How to setup a LAMP server with less than 100 characters

Written on July 15th, 2010
.
lamp How to setup a LAMP server with less than 100 charactersOne of the reasons cause I love the GNU/Linux for developing is its easy and quick setup.
So if you’re a LAMP-dev you can setup a LAMP server with less than 100 chars.
With the next command you will have a apache2+php5+mysql on Debian based systems with the bonus of phpmyadmin for administer your databases.
sudo apt-get install phpmyadmin lamp-server^

Dont forget the trailing ‘^’ char.

Quick post, quick solution. Isn’t it?