NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

not working in ubantu

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
nanhe kumar
Posted via mailing list.





PostPosted: Wed Aug 22, 2012 2:21 pm    Post subject: not working in ubantu Reply with 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
www.nanhe.in
+91-7428232817
Back to top
paolosca



Joined: 09 Sep 2010
Posts: 384

PostPosted: Thu Aug 23, 2012 3:32 am    Post subject: not working in ubantu Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo