please help to convert php to c#

Posted by Konfuciy under C# on 6/25/2015 | Points: 10 | Views : 450 | Status : [Member] | Replies : 2
please help to convert php to c#

the code is:

<?php
function Synomize($Text,$Flag=2500,$Host="127.0.0.1")
if(!$Flag)
$Flag=0 $sock = fsockopen ($Host, 4396, $errno, $errstr);
echo("$errno($errstr)");
else
{
fputs ($sock, "20010,0,$Flag,$Text");
$result=fread ($sock,1000000);
fclose($sock);
return $result;
}
}
?>


function Synomize should call the other windows program, that have win api, and should return synonymized text




Responses

Posted by: A2H on: 6/25/2015 [Member] [MVP] Silver | Points: 25

Up
0
Down
You can try using the convert provided by microsoft to convert the code
http://www.asp.net/downloads/archived-v11/migration-assistants/php-to-aspnet

Thanks,
A2H
My Blog

Konfuciy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Konfuciy on: 6/29/2015 [Member] Starter | Points: 25

Up
0
Down
thats not what i need(

Konfuciy, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response