Tag Archives: php5

Cakephp Paginate – How to change separator “|”

In your view you just do something like this:

Paginator->prev('<'disabled'));?>
Paginator->numbers(array('separator'=>''));?>
Paginator->next(__('Next', true) . ' >>', array(), null, array('class' => 'disabled'));?>

Top 10 Coolest PHP name functions

10. overload
9. reset
8. end
7 .sleep
6. __destruct
5. empty
4. explode

3. chop

2. exit

1. die

Seems that PHP is a melancolic and sad language…

Install Xdebug in Ubuntu Lucid Lynx

#in order to install phpsize because the pecl will need this

sudo apt-get install php5-dev

sudo apt-get install php-pear # in order to install xdebug

sudo pecl install xdebug

sudo apt-get install php5-xdebug

Edit your php.ini configuration and edit this settings

display_errors on

html_errors=on

Print a phpinfo() and check if xdebug is correctly installed. You can use the php -v command