A recursive navigation in php