Ok, i have found out solution and am sharing with you..
For Debian LENNY:
1. Open sources list:
2. Add lines to list -> Press 'a' and in new line insert (i supose you have VI editor, otherviwe use appropriate key):
3. Save and exit -> Press ':wq' to save and exit in VI editor
4. Import dotdeb keys:
deb http://packages.dotdeb.org lenny all
cat dotdeb.gpg | apt-key add -
Follow on screen instructions...
You will get latest stable version for lenny: PHP 5.2.17
if you want 5.3.x, than add these lines in apt sources:
deb http://php53.dotdeb.org oldstable all
deb-src http://php53.dotdeb.org oldstable all
If you use Debian Squeeze
, than instead of 'oldstable' use 'stable' in apt list. Other is the same...
P.s: I am not responsible for any issues, it is just my experience shared with you...
To check PHP version
, use: 'php -v'