php

Xdebug bookmarklet

 - Tagged as

Nothing really new since there is already a firefox extension which does just the same, but I also wanted to support other browsers.

So this bookmarklet toggles the cookie Xdebug uses to check if it should debug the running script or not.Read more

Introducing DBGp Path Mapper intercepting proxy

 - Tagged as

My current IDE of choice, Komodo, brings native support for the DBGp protocol to debug source code either locally or from a remote server. It has however some issues with its path mapping implementation.

Since it’s not the first time I stumbled upon this kind of issue (my previous Eclipse PDT experience was troublesome too) I finally tried to solve it.Read more

Comprobar un NIF, NIE o CIF

 - Tagged as

Después de postear un simple código para comprobar un NIF, me he mirado un poco más el tema y para mi sorpresa no hay mucha información sobre esto.

Así que aquí presento una pequeña función para comprobar si el formato de un NIF, NIE o CIF es válido.Read more

Introducing FLV4PHP

 - Tagged as

This weekend I found some time to work in a new project. In the last post I wrote about streaming video for Flash players, I went thru some different options for that task and one of them was the HTTP progressive download of FLV files.

There is an interesting idea to make seeking possible when using a simple HTTP download (I think Google Video does just this), it has been already mentioned in a few places.Read more

URL Argument separator

 - Tagged as

Quite so often a web developer starts thinking what’s wrong with the guys who make the rules of how Internet works. And if we dig a bit in the problem, we can many times see that the ‘non-sense’ is there not because the specs were flawed but because the popular implementations didn’t follow completely the spec.

The ‘non-sense’ I’ve been thinking about lately is why the hell we use the ampersand [&] to separate the arguments in a URL.Read more