<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PHP to ASP.NET Migration Assistant Alpha</title><link>http://forums.asp.net/133.aspx</link><description>Use this forum to ask questions about the PHP to ASP.NET Migration Assistant.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Help in converting the php code</title><link>http://forums.asp.net/thread/1881584.aspx</link><pubDate>Wed, 29 Aug 2007 06:05:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1881584</guid><dc:creator>fazal.shaikh</dc:creator><author>fazal.shaikh</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1881584.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1881584</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;After implementing the previous code that I had used, I am facing a typical problem.&lt;/p&gt;&lt;p&gt;On the VS.NET I am able to run the application successfully.&lt;/p&gt;&lt;p&gt;When I run it on the Local server (localhost) it is giving me the following error &lt;/p&gt;&lt;p&gt;&amp;quot;&lt;i&gt;A connection attempt failed because the connected party did not properly 
respond after a period of time, or established connection failed because 
connected host has failed to respond&amp;quot;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;and when I am running it on the same machine but with IP address of the system or from the client machine, it is giving me same error.&lt;/p&gt;&lt;p&gt;can anyone help me out of this...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in Advance...&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help in converting the php code</title><link>http://forums.asp.net/thread/1826837.aspx</link><pubDate>Fri, 27 Jul 2007 09:31:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1826837</guid><dc:creator>fazal.shaikh</dc:creator><author>fazal.shaikh</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1826837.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1826837</wfw:commentRss><description>&lt;p&gt;thanks somnath,&lt;/p&gt;&lt;p&gt;but your link to the page helped me in urls without&amp;nbsp; querystrings. If I am passing any querystring parameter, then it gives an error saying &amp;quot;Cannot send a content-body with this verb-type.&amp;quot; But the other link I got from somewhere else, helped me. the code is.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strURL = &amp;quot;http://someIPAddress/login/chkauth.asp?login=userName&amp;amp;pwd=password&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objClient As New WebClient&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objLines = objClient.OpenRead(strURL)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objStreamReader As New StreamReader(objLines)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strLines = objStreamReader.ReadToEnd&lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://msdn2.microsoft.com/en-us/library/bay1b5dh.aspx&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks a lot.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Fazal...&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Help in converting the php code</title><link>http://forums.asp.net/thread/1826547.aspx</link><pubDate>Fri, 27 Jul 2007 06:00:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1826547</guid><dc:creator>somnathmali</dc:creator><author>somnathmali</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1826547.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1826547</wfw:commentRss><description>&lt;p&gt;Use WebRequest Class...&lt;/p&gt;
&lt;p&gt;&lt;span style="COLOR:blue;"&gt;using&lt;/span&gt; System.IO;&lt;br /&gt;&lt;span style="COLOR:blue;"&gt;using&lt;/span&gt; System.Net;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; WebRequest request = WebRequest.Create (&amp;quot;&lt;span style="COLOR:maroon;"&gt;&lt;a href="http://..../"&gt;http:&lt;span style="COLOR:green;"&gt;//.... &lt;/a&gt;&amp;quot;&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="COLOR:maroon;"&gt;&lt;/span&gt;&lt;font color="#800000"&gt;for details please check &lt;a href="http://msdn2.microsoft.com/en-us/library/debx8sh9.aspx"&gt;http://msdn2.microsoft.com/en-us/library/debx8sh9.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Help in converting the php code</title><link>http://forums.asp.net/thread/1826460.aspx</link><pubDate>Fri, 27 Jul 2007 04:36:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1826460</guid><dc:creator>fazal.shaikh</dc:creator><author>fazal.shaikh</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1826460.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1826460</wfw:commentRss><description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;I am having a problem in converting the following code&amp;nbsp; into asp.net.&lt;/p&gt;&lt;p&gt;$lines = file(&amp;quot;http://someIPAddress/login/chkauth.asp?login=$username&amp;amp;pwd=$password&amp;quot;);&lt;br /&gt;$filestr=&amp;quot;&amp;quot;;&lt;br /&gt;foreach ($lines as $line_num =&amp;gt; $line) {&lt;br /&gt;&amp;nbsp; $filestr=$filestr.htmlspecialchars($line);&lt;br /&gt;}&lt;br /&gt;$loginverify=0;&lt;br /&gt;$loginverify=preg_match(&amp;quot;/Invalid/&amp;quot;,$filestr);&lt;br /&gt;//preg_match is similar to the substr or instr function of string object.&lt;br /&gt;//above LOC is finding &amp;quot;Invalid&amp;quot; within $filestr variable.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;the above code is used for using the output generated by the page chkauth.asp.&lt;/p&gt;&lt;p&gt;I was able to make out the last method i.e. preg_match(). but help me with the file() method.&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;&amp;nbsp;Fazal&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>