by Priyanka on Tuesday, 04 November 2008
Help!


Hello Folks! This is the ques one of my net friends has asked to the experts in one of the communities I hv joined. Do u hv solution for this problem? Ques: I m stuck with this php socket code from morning, the error code is like this $result = socket_bind($socket, $host, $port) or die("Could not bind to socketn"); the vars values are $host = "127.0.0.2"; $port = 1234; and it dies when i run it from command prompt by php -q filename.php in the above line showing my error ie:Could not bind to socket i think the error is in binding the socket with ip and socket any solution ??


Topic Normal Re: Help!
by Priyanka on 11/05/2008 16:23

OK.. Someone, who is not an expert in php has tried to answer my ques, though m not sure.. Please tell me if this is the right answer. Ans: I am assuming $result = socket_bind($socket, $host, $port) or die("Could not bind to This will create the socket for u .. check out this things 1. The address family which ur using for socket 2. The socket is already in use or not ? 3. If all well then ur socket is not created at first place .. which i am not aware.


Topic Normal Re: Help!
by Administrator on 11/13/2008 02:08

Please fire any of the two commands first to see if 1234 is already in use nmap -sS locahost netstat -antuwp | egrep "(^[^t])|(^tcp.*LISTEN)" These commands will tell you all the open ports on our server. See if 1234 is already not bound to any other service. Also see of the user you trying with has permissions to bind socket for listening or not.



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering