<?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 XML Socket Server</title>
	<atom:link href="http://www.kilometer0.com/blog/code/php-xml-socket-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kilometer0.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 25 Aug 2010 19:19:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-35</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</dc:creator>
		<pubDate>Tue, 17 Aug 2010 00:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-35</guid>
		<description>Well I don&#039;t think you could get php session data, since the request doesn&#039;t happen over HTTP.  You could store the session values in some sort of storage like MySQL and then request it using an ID over the XML socket. 

I&#039;ve also created a PHP script that ran over HTTP and connected to the socket to send / receive messages, then came back.  If you built something like that then you could probably use the same session information and send it over the XML socket to whatever Flash listeners there were.</description>
		<content:encoded><![CDATA[<p>Well I don&#8217;t think you could get php session data, since the request doesn&#8217;t happen over HTTP.  You could store the session values in some sort of storage like MySQL and then request it using an ID over the XML socket. </p>
<p>I&#8217;ve also created a PHP script that ran over HTTP and connected to the socket to send / receive messages, then came back.  If you built something like that then you could probably use the same session information and send it over the XML socket to whatever Flash listeners there were.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/yahoo.png'/> rbrookstx</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-33</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/yahoo.png'/> rbrookstx</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-33</guid>
		<description>I&#039;m wondering if its possible for an XML socket server to read session data.  say I wanted to pass an affiliateid or something else stored in php session.</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering if its possible for an XML socket server to read session data.  say I wanted to pass an affiliateid or something else stored in php session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-30</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</dc:creator>
		<pubDate>Thu, 03 Jun 2010 01:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-30</guid>
		<description>There are only 2 ports that the policy can be retrieved from... port 843 (the default) and the same port as you are connecting on.  I think a slight modification might have to be made to the socketServer.php code to support this functionality (I don&#039;t remember if it has it by default).</description>
		<content:encoded><![CDATA[<p>There are only 2 ports that the policy can be retrieved from&#8230; port 843 (the default) and the same port as you are connecting on.  I think a slight modification might have to be made to the socketServer.php code to support this functionality (I don&#8217;t remember if it has it by default).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/google.png'/> pradhana.indra</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-29</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/google.png'/> pradhana.indra</dc:creator>
		<pubDate>Tue, 01 Jun 2010 09:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-29</guid>
		<description>Can policySocketServer.php binds on other port than 843?

If yes, what changes have to do?</description>
		<content:encoded><![CDATA[<p>Can policySocketServer.php binds on other port than 843?</p>
<p>If yes, what changes have to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-20</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</dc:creator>
		<pubDate>Sun, 28 Mar 2010 04:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-20</guid>
		<description>@greg.karz You must run both the policySocketServer.php and socketServer.php simultaneously from the command line. The policySocketServer.php binds on port 843 and serves the crossdomain.xml file.  The socketServer.php runs on a different port and handles the actual communication.

You must be root to bind on a port less than 1000 on a *nix machine usually.</description>
		<content:encoded><![CDATA[<p>@greg.karz You must run both the policySocketServer.php and socketServer.php simultaneously from the command line. The policySocketServer.php binds on port 843 and serves the crossdomain.xml file.  The socketServer.php runs on a different port and handles the actual communication.</p>
<p>You must be root to bind on a port less than 1000 on a *nix machine usually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-19</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Alexandru Petrescu</dc:creator>
		<pubDate>Sun, 28 Mar 2010 04:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-19</guid>
		<description>@Vincent:
You&#039;re going to have to try to be a bit more descriptive on what your problem is.  Currently the logger file just echo&#039;s out.  I usually just pipe the output of the script to a text file and just tail the log file.

For example:
php socketServer.php &gt; socket.log

Then in another window or session:
tail socket.log</description>
		<content:encoded><![CDATA[<p>@Vincent:<br />
You&#8217;re going to have to try to be a bit more descriptive on what your problem is.  Currently the logger file just echo&#8217;s out.  I usually just pipe the output of the script to a text file and just tail the log file.</p>
<p>For example:<br />
php socketServer.php > socket.log</p>
<p>Then in another window or session:<br />
tail socket.log</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Vincent Faux</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-16</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/facebook.png'/> Vincent Faux</dc:creator>
		<pubDate>Tue, 23 Mar 2010 22:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-16</guid>
		<description>I was having problem writing to a text file using the Logger.php class.
Any help on this would be greatly appreciated.</description>
		<content:encoded><![CDATA[<p>I was having problem writing to a text file using the Logger.php class.<br />
Any help on this would be greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/google.png'/> greg.karz</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-11</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/google.png'/> greg.karz</dc:creator>
		<pubDate>Sat, 27 Feb 2010 18:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-11</guid>
		<description>I found the problem: It&#039;s some flash socket security thing that was added in one of the 9. edition of flash player. It&#039;s something about needing a xml socket policy file to be sent to each user from port 843 or something like that but when I try to run a php socket server on that port it tells me &quot;Internal Server Error&quot;.</description>
		<content:encoded><![CDATA[<p>I found the problem: It&#8217;s some flash socket security thing that was added in one of the 9. edition of flash player. It&#8217;s something about needing a xml socket policy file to be sent to each user from port 843 or something like that but when I try to run a php socket server on that port it tells me &#8220;Internal Server Error&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/openid.png'/> Christian Moore</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-10</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/openid.png'/> Christian Moore</dc:creator>
		<pubDate>Wed, 24 Feb 2010 18:06:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-10</guid>
		<description>Greg this is great would love to help develop this more... I would have a very interested application :)

ping me</description>
		<content:encoded><![CDATA[<p>Greg this is great would love to help develop this more&#8230; I would have a very interested application <img src='http://www.kilometer0.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>ping me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/google.png'/> greg.karz</title>
		<link>http://www.kilometer0.com/blog/code/php-xml-socket-server/comment-page-1/#comment-9</link>
		<dc:creator><img src='http://www.kilometer0.com/blog/wp-content/plugins/rpx/images/google.png'/> greg.karz</dc:creator>
		<pubDate>Sun, 31 Jan 2010 12:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.kilometer0.com/blog/?page_id=71#comment-9</guid>
		<description>&quot;There’s no other way to have a socket server without running something on the command line.&quot;

Once I did it with out cli but after a while my flash wouldn&#039;t connect the code I used is here : http://www.functionblog.com/?p=67=1 but again it stopped working so I need a socket server that would work.
I downloaded php.exe but when I try to run it it says &quot;The program did not start because OCI.dll is missing from the computer. to solve the the problem try re-installing the program&quot; (this was in Hungarian and I translated it). I re-installed the program but the same thing happened.</description>
		<content:encoded><![CDATA[<p>&#8220;There’s no other way to have a socket server without running something on the command line.&#8221;</p>
<p>Once I did it with out cli but after a while my flash wouldn&#8217;t connect the code I used is here : <a href="http://www.functionblog.com/?p=67=1" rel="nofollow">http://www.functionblog.com/?p=67=1</a> but again it stopped working so I need a socket server that would work.<br />
I downloaded php.exe but when I try to run it it says &#8220;The program did not start because OCI.dll is missing from the computer. to solve the the problem try re-installing the program&#8221; (this was in Hungarian and I translated it). I re-installed the program but the same thing happened.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
