<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: PHP Socket programming Tutorial &#8211; How to code Client and Server	</title>
	<atom:link href="https://www.binarytides.com/php-socket-programming-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/php-socket-programming-tutorial/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Sat, 09 Oct 2021 20:54:23 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Stephen		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-325569</link>

		<dc:creator><![CDATA[Stephen]]></dc:creator>
		<pubDate>Sat, 09 Oct 2021 20:54:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-325569</guid>

					<description><![CDATA[Great Tutorial, just one change, You unset the socket and then use it in the next line, needs to be other way round and then return i believe.

 if ($input == null) 
			{
				//zero length string meaning disconnected, remove and close the socket
				unset($client_socks[$i]);
				socket_close($client_socks[$i]);
            }]]></description>
			<content:encoded><![CDATA[<p>Great Tutorial, just one change, You unset the socket and then use it in the next line, needs to be other way round and then return i believe.</p>
<p> if ($input == null)<br />
			{<br />
				//zero length string meaning disconnected, remove and close the socket<br />
				unset($client_socks[$i]);<br />
				socket_close($client_socks[$i]);<br />
            }</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rahul Rajoria		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-249268</link>

		<dc:creator><![CDATA[Rahul Rajoria]]></dc:creator>
		<pubDate>Wed, 06 May 2020 09:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-249268</guid>

					<description><![CDATA[Hey thanks for the great tutorial I have implemented it&#039;s and working as accepted (good), so can you just give me a hint or suggestion, how to estalished connection between client to client for example like chat ?]]></description>
			<content:encoded><![CDATA[<p>Hey thanks for the great tutorial I have implemented it&#8217;s and working as accepted (good), so can you just give me a hint or suggestion, how to estalished connection between client to client for example like chat ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: show mack		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-215256</link>

		<dc:creator><![CDATA[show mack]]></dc:creator>
		<pubDate>Fri, 25 Oct 2019 12:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-215256</guid>

					<description><![CDATA[Hi,
My previous Project is developed with jsxmlsocket(https://www.developerfusion.com/project/18979/jsxmlsocket). It is working with flash. Js xml socket connected with ip and port then The response like this {&quot;ClientID&quot;:&quot;202.75.xx.xxx:xxxxx&quot;,&quot;ServerDist&quot;:&quot;1&quot;} By using this client id i am sending vehicle device id, So i am getting all the vehicle information continously.
But now i am working in PHP Sockets i am getting Client id and ServerDist, After sednig ClientID with device id($message = &#039;{\&quot;ClientID\&quot;:\&quot;&#039; . $ClientID . &#039;\&quot;,\&quot;TrackSystemNos\&quot;:\&quot;1399288XXXX\&quot;}&#039;;) i am not getting correct client information again i am getting ClientID and ServerDist So can you please help me how to get the device data

I need response like this:
{
   &quot;SimID&quot;:&quot;139928XXXXX&quot;,
   &quot;SignalType&quot;:&quot;Locate&quot;,
   &quot;DateTime&quot;:&quot;2019-10-24 13:31:40&quot;,
   &quot;Longitude1&quot;:&quot;0.00000&quot;,
   &quot;Latitude1&quot;:&quot;0.00000&quot;,
   &quot;Longitude&quot;:&quot;0.00000&quot;,
   &quot;Latitude&quot;:&quot;0.00000&quot;,
   &quot;Velocity&quot;:&quot;0&quot;,
   &quot;Angle&quot;:&quot;0&quot;,
   &quot;LocateStatus&quot;:&quot;NoLocate&quot;,
   &quot;StatusA&quot;:&quot;OFF&quot;,
   &quot;StatusB&quot;:&quot;OFF&quot;,
   &quot;StatusC&quot;:&quot;OFF&quot;,
   &quot;StatusD&quot;:&quot;OFF&quot;,
   &quot;TurnStatus&quot;:&quot;0&quot;,
   &quot;AccStatus&quot;:&quot;OFF&quot;,
   &quot;Temperature&quot;:&quot;0&quot;,
   &quot;Temperature2&quot;:&quot;&quot;,
   &quot;Temperature3&quot;:&quot;&quot;,
   &quot;Temperature4&quot;:&quot;&quot;,
   &quot;Oil&quot;:&quot;0&quot;,
   &quot;Oil2&quot;:&quot;0&quot;,
   &quot;LevelNum&quot;:&quot;12.13&quot;,
   &quot;OilIn&quot;:&quot;0&quot;,
   &quot;OilOut&quot;:&quot;0&quot;,
   &quot;Miles&quot;:&quot;7611669&quot;,
   &quot;ParkingSpan&quot;:&quot;1.11:54:59&quot;,
   &quot;TodayMile&quot;:&quot;61321&quot;
}]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
My previous Project is developed with jsxmlsocket(<a href="https://www.developerfusion.com/project/18979/jsxmlsocket" rel="nofollow ugc">https://www.developerfusion.com/project/18979/jsxmlsocket</a>). It is working with flash. Js xml socket connected with ip and port then The response like this {&#8220;ClientID&#8221;:&#8221;202.75.xx.xxx:xxxxx&#8221;,&#8221;ServerDist&#8221;:&#8221;1&#8243;} By using this client id i am sending vehicle device id, So i am getting all the vehicle information continously.<br />
But now i am working in PHP Sockets i am getting Client id and ServerDist, After sednig ClientID with device id($message = &#8216;{\&#8221;ClientID\&#8221;:\&#8221;&#8216; . $ClientID . &#8216;\&#8221;,\&#8221;TrackSystemNos\&#8221;:\&#8221;1399288XXXX\&#8221;}&#8217;;) i am not getting correct client information again i am getting ClientID and ServerDist So can you please help me how to get the device data</p>
<p>I need response like this:<br />
{<br />
   &#8220;SimID&#8221;:&#8221;139928XXXXX&#8221;,<br />
   &#8220;SignalType&#8221;:&#8221;Locate&#8221;,<br />
   &#8220;DateTime&#8221;:&#8221;2019-10-24 13:31:40&#8243;,<br />
   &#8220;Longitude1&#8243;:&#8221;0.00000&#8221;,<br />
   &#8220;Latitude1&#8243;:&#8221;0.00000&#8221;,<br />
   &#8220;Longitude&#8221;:&#8221;0.00000&#8243;,<br />
   &#8220;Latitude&#8221;:&#8221;0.00000&#8243;,<br />
   &#8220;Velocity&#8221;:&#8221;0&#8243;,<br />
   &#8220;Angle&#8221;:&#8221;0&#8243;,<br />
   &#8220;LocateStatus&#8221;:&#8221;NoLocate&#8221;,<br />
   &#8220;StatusA&#8221;:&#8221;OFF&#8221;,<br />
   &#8220;StatusB&#8221;:&#8221;OFF&#8221;,<br />
   &#8220;StatusC&#8221;:&#8221;OFF&#8221;,<br />
   &#8220;StatusD&#8221;:&#8221;OFF&#8221;,<br />
   &#8220;TurnStatus&#8221;:&#8221;0&#8243;,<br />
   &#8220;AccStatus&#8221;:&#8221;OFF&#8221;,<br />
   &#8220;Temperature&#8221;:&#8221;0&#8243;,<br />
   &#8220;Temperature2&#8243;:&#8221;&#8221;,<br />
   &#8220;Temperature3&#8243;:&#8221;&#8221;,<br />
   &#8220;Temperature4&#8243;:&#8221;&#8221;,<br />
   &#8220;Oil&#8221;:&#8221;0&#8243;,<br />
   &#8220;Oil2&#8243;:&#8221;0&#8221;,<br />
   &#8220;LevelNum&#8221;:&#8221;12.13&#8243;,<br />
   &#8220;OilIn&#8221;:&#8221;0&#8243;,<br />
   &#8220;OilOut&#8221;:&#8221;0&#8243;,<br />
   &#8220;Miles&#8221;:&#8221;7611669&#8243;,<br />
   &#8220;ParkingSpan&#8221;:&#8221;1.11:54:59&#8243;,<br />
   &#8220;TodayMile&#8221;:&#8221;61321&#8243;<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mohamed Hesham		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-168785</link>

		<dc:creator><![CDATA[Mohamed Hesham]]></dc:creator>
		<pubDate>Wed, 17 Oct 2018 19:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-168785</guid>

					<description><![CDATA[Thank you for this great tutorial.
I have a small issue after running the code.
When I open the telnet client and try to enter only one litter it response instantly even before I click enter
it responses after pressing any key not only enter
I thought the problem was in the code but I pasted your code in my project and tried it but the same problem.
I hope you help me.
note: I was running the script from the browser not the terminal.]]></description>
			<content:encoded><![CDATA[<p>Thank you for this great tutorial.<br />
I have a small issue after running the code.<br />
When I open the telnet client and try to enter only one litter it response instantly even before I click enter<br />
it responses after pressing any key not only enter<br />
I thought the problem was in the code but I pasted your code in my project and tried it but the same problem.<br />
I hope you help me.<br />
note: I was running the script from the browser not the terminal.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Franklin		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-167067</link>

		<dc:creator><![CDATA[Franklin]]></dc:creator>
		<pubDate>Sun, 16 Sep 2018 21:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-167067</guid>

					<description><![CDATA[Warning: socket_bind(): unable to bind address [99]: Cannot assign requested address in /storage/ssd3/427/7074427/public_html/app03/Chat.php on line 17

CAN&#039;T BIND SOCKET!]]></description>
			<content:encoded><![CDATA[<p>Warning: socket_bind(): unable to bind address [99]: Cannot assign requested address in /storage/ssd3/427/7074427/public_html/app03/Chat.php on line 17</p>
<p>CAN&#8217;T BIND SOCKET!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shailesh		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-165149</link>

		<dc:creator><![CDATA[Shailesh]]></dc:creator>
		<pubDate>Wed, 25 Jul 2018 03:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-165149</guid>

					<description><![CDATA[Hii Sir, how can I start a socket server on a host server.I am using shared server]]></description>
			<content:encoded><![CDATA[<p>Hii Sir, how can I start a socket server on a host server.I am using shared server</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Abdul Sami		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-155394</link>

		<dc:creator><![CDATA[Abdul Sami]]></dc:creator>
		<pubDate>Thu, 15 Feb 2018 19:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-155394</guid>

					<description><![CDATA[Dear you have write the Client side socket script on the start. As we know that the PHP is the server scripting language so how after loading on to the client server it will run to connect to the server script on the server side.
Regards]]></description>
			<content:encoded><![CDATA[<p>Dear you have write the Client side socket script on the start. As we know that the PHP is the server scripting language so how after loading on to the client server it will run to connect to the server script on the server side.<br />
Regards</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rasheed		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-127633</link>

		<dc:creator><![CDATA[rasheed]]></dc:creator>
		<pubDate>Tue, 22 Aug 2017 07:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-127633</guid>

					<description><![CDATA[Hi. Please is it possible to get data from a socket connected to another client without connecting to it ?]]></description>
			<content:encoded><![CDATA[<p>Hi. Please is it possible to get data from a socket connected to another client without connecting to it ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rajesh kumar		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-119830</link>

		<dc:creator><![CDATA[Rajesh kumar]]></dc:creator>
		<pubDate>Mon, 29 May 2017 06:06:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-119830</guid>

					<description><![CDATA[very -2 good]]></description>
			<content:encoded><![CDATA[<p>very -2 good</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-117565</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Tue, 09 May 2017 18:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-117565</guid>

					<description><![CDATA[What about using SSL in sockets?]]></description>
			<content:encoded><![CDATA[<p>What about using SSL in sockets?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Malam		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-107107</link>

		<dc:creator><![CDATA[Malam]]></dc:creator>
		<pubDate>Sat, 25 Feb 2017 21:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-107107</guid>

					<description><![CDATA[how can you write a socket to accept your own crafted command?]]></description>
			<content:encoded><![CDATA[<p>how can you write a socket to accept your own crafted command?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: rohan		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-103804</link>

		<dc:creator><![CDATA[rohan]]></dc:creator>
		<pubDate>Fri, 27 Jan 2017 10:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-103804</guid>

					<description><![CDATA[In one of previous example u send data and receive, With the similar code i am sending data twice but only first time it is getting sent. please check-http://stackoverflow.com/questions/41891550/tcp-server-not-accepting-second-socket-send]]></description>
			<content:encoded><![CDATA[<p>In one of previous example u send data and receive, With the similar code i am sending data twice but only first time it is getting sent. please check-http://stackoverflow.com/questions/41891550/tcp-server-not-accepting-second-socket-send</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kolai		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-102215</link>

		<dc:creator><![CDATA[kolai]]></dc:creator>
		<pubDate>Wed, 11 Jan 2017 15:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-102215</guid>

					<description><![CDATA[thank you for this tutorial. its very easy to understand. i will try to create a simple chat using this concept . :)]]></description>
			<content:encoded><![CDATA[<p>thank you for this tutorial. its very easy to understand. i will try to create a simple chat using this concept . :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Adeel Akram		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-100899</link>

		<dc:creator><![CDATA[Adeel Akram]]></dc:creator>
		<pubDate>Thu, 22 Dec 2016 08:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-100899</guid>

					<description><![CDATA[Hi Silver Moon , 
You wrote it in very proper way, I got all the concepts you delivered here.
Keep up the good work.
Thank you]]></description>
			<content:encoded><![CDATA[<p>Hi Silver Moon ,<br />
You wrote it in very proper way, I got all the concepts you delivered here.<br />
Keep up the good work.<br />
Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: david		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-93540</link>

		<dc:creator><![CDATA[david]]></dc:creator>
		<pubDate>Mon, 12 Sep 2016 09:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-93540</guid>

					<description><![CDATA[Very nice tutorial]]></description>
			<content:encoded><![CDATA[<p>Very nice tutorial</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jason		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-92925</link>

		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Mon, 05 Sep 2016 15:11:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-92925</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-92923&quot;&gt;Jason&lt;/a&gt;.

Don&#039;t mind my comment I sent earlier , forgot to enable sockets in php .....]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-92923">Jason</a>.</p>
<p>Don&#8217;t mind my comment I sent earlier , forgot to enable sockets in php &#8230;..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jason		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-92923</link>

		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Mon, 05 Sep 2016 15:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-92923</guid>

					<description><![CDATA[Fatal error: Uncaught Error: Call to undefined function socket_create() in E:\Web\Xampp\htdocs\index.php:2 Stack trace: #0 {main} thrown in E:\Web\Xampp\htdocs\index.php on line 2

Obviously, sockets don&#039;t exist anymore xD]]></description>
			<content:encoded><![CDATA[<p>Fatal error: Uncaught Error: Call to undefined function socket_create() in E:\Web\Xampp\htdocs\index.php:2 Stack trace: #0 {main} thrown in E:\Web\Xampp\htdocs\index.php on line 2</p>
<p>Obviously, sockets don&#8217;t exist anymore xD</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ashish		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-2/#comment-92588</link>

		<dc:creator><![CDATA[Ashish]]></dc:creator>
		<pubDate>Wed, 31 Aug 2016 17:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-92588</guid>

					<description><![CDATA[Sir, 
I have some questions regarding GPS device connection. I want to know how to receive data from gps device to my local host server like wamp.

Plz help me i need it urgently.


I will be thankful to you.]]></description>
			<content:encoded><![CDATA[<p>Sir,<br />
I have some questions regarding GPS device connection. I want to know how to receive data from gps device to my local host server like wamp.</p>
<p>Plz help me i need it urgently.</p>
<p>I will be thankful to you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Monica		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-1/#comment-91968</link>

		<dc:creator><![CDATA[Monica]]></dc:creator>
		<pubDate>Sun, 21 Aug 2016 07:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-91968</guid>

					<description><![CDATA[Cool, really really helpful for a beginner in PHP!]]></description>
			<content:encoded><![CDATA[<p>Cool, really really helpful for a beginner in PHP!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Can		</title>
		<link>https://www.binarytides.com/php-socket-programming-tutorial/comment-page-1/#comment-89900</link>

		<dc:creator><![CDATA[Can]]></dc:creator>
		<pubDate>Wed, 27 Jul 2016 08:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=2105#comment-89900</guid>

					<description><![CDATA[Thank you, very good tutorial ;)]]></description>
			<content:encoded><![CDATA[<p>Thank you, very good tutorial ;)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
