i already install php5, i was recorded my steps
delete old "c:\php" if is exist
extract "php-5.0.0-Win32.zip" to "c:\php"
copy "php.ini-recommended" to "c:\windows\php.ini"
open "c:\windows\php.ini"
search for "extension_dir" you find
extension_dir = "./"
change it to
extension_dir = "./ext"
search for "php_mysql.dll"
you will find this lines
;extension=php_mysql.dll
remove the semicolon from the extension like that for mysql
extension=php_mysql.dll
open "Control Panel- System" go to "Advanced" and press button "Environments Variables"
in "System variables" edit "PATH" and add ";c:\php;c:\mysql\bin", OK and close
open "C:\Program Files\Apache Group\Apache2\conf\httpd.conf"
add
LoadModule php5_module C:/PHP/php5apache2.dll
AddType application/x-httpd-php .php .phtml
restart apache server
if you use php localy not for a public site
open php.ini in "c:\windows"
search for key and make it as
error_reporting = E_ALL
display_errors = On
add to extensions
extension=php_dbg.dll
add
[Debugger]
debugger.enabled=on
debugger.profiler_enabled=on
debugger.JIT_enabled=on
debugger.JIT_port =7869
debugger.JIT_host =127 .0.0.1
download dbg-2.11.26-Win32.zip and extract it in c:\php\dbg
copy "c:\php\dbg\server\php_dbg.dll-5.0.0" to "c:\php\ext\php_dbg.dll"
restart apache
run "C:\php\dbg\client\install.bat" once
run "C:\php\dbg\client\DbgListener.exe" when you need to debug
you must have debug client like phpxedit i like it search it on internet
link