How to check xdebug installation
http://blogs.sun.com/netbeansphp/entry/howto_check_xdebug_installation参考这边文章检查xdebug是否安装好,总是报这个错,
unable to bind address [0]: Only one usage of each socket address (protocol/network address/port) is normally permitted. 为何?[code=INIFile][Xdebug]
zend_extension_ts="C:/software/php/ext/php_xdebug.dll"
xdebug.profiler_output_dir="C:/software/php/xdebug"
xdebug.profiler_enable=Off
xdebug.profiler_enable_trigger=1
xdebug.default_enable=On
xdebug.show_exception_trace=On
xdebug.show_local_vars=1
xdebug.max_nesting_level=50
xdebug.var_display_max_depth=6
xdebug.dump_once=On
xdebug.dump_globals=On
xdebug.dump_undefined=On
xdebug.dump.REQUEST=*
xdebug.dump.SERVER=REQUEST_METHOD,REQUEST_URI,HTTP_USER_AGENT
xdebug.trace_output_dir="C:/software/php/xdebug"xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000[/code]<?php$address = '127.0.0.1';
$port = 9000;
$sock = socket_create(AF_INET, SOCK_STREAM, 0);socket_bind($sock, $address, $port) or die('Unable to bind');
socket_listen($sock);
$client = socket_accept($sock);
echo "connection established: $client";
socket_close($client);
socket_close($sock);
?>