NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
nanhe kumar Posted via mailing list.
|
Posted: Wed Aug 22, 2012 2:21 pm Post subject: not working in ubantu |
|
|
Hi
i am testing xdebug is install or not with following code after echo 3 its taking very long time i have waiting approx 4 hour but echo 4 not print connection is not established i am working on ubantu
<?php
$address = '127.0.0.1';
$port = 9000;
echo 1;
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
echo 2;
socket_bind($sock, $address, $port) or die('Unable to bind');
socket_listen($sock);
echo 3;
$client = socket_accept($sock);
echo 4;
echo "connection established: $client";
socket_close($client);
socket_close($sock);
?>
--
Thanks & Regard
Nanhe Kumar
www.mobileconcern.com
www.nanhe.in
+91-7428232817 |
|
| Back to top |
|
 |
paolosca
Joined: 09 Sep 2010 Posts: 384
|
Posted: Thu Aug 23, 2012 3:32 am Post subject: not working in ubantu |
|
|
Hi Nanhe Kumar,
You may try using the IP of your machine (i.e. 192.168.1.123) instead of
the localhost address 127.0.0.1
If you want to know if xdebug is properly installed and loaded in php
you can use phpinfo() or get_loaded_extensions().
If it's properly installed and you have NetBeans a more straightforward
approach is to simply start a debug session.
Check the following pages if you need more information:
http://netbeans.org/kb/docs/php/debugging.html
http://wiki.netbeans.org/HowToConfigureXDebug
Note that the correct way to install xdebug in Debian based Linux
distributions is to run:
apt-get install php5-xdebug
Once it's done you don't need to add anything in php.ini, you just need
to edit the xdebug configuration in the following file:
/etc/php5/conf.d/xdebug.ini
Regards,
Paolo
On 08/22/2012 08:59 PM, nanhe kumar wrote:
| Quote: | Hi
i am testing xdebug is install or not with following code after echo 3
its taking very long time i have waiting approx 4 hour but echo 4 not
print connection is not established i am working on ubantu
<?php
$address = '127.0.0.1';
$port = 9000;
echo 1;
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
echo 2;
socket_bind($sock, $address, $port) or die('Unable to bind');
socket_listen($sock);
echo 3;
$client = socket_accept($sock);
echo 4;
echo "connection established: $client";
socket_close($client);
socket_close($sock);
?>
--
Thanks & Regard
Nanhe Kumar
www.mobileconcern.com <http://www.mobileconcern.com>
www.nanhe.in <http://www.nanhe.in>
+91-7428232817 |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|