Is there a C# to php translator (capable of dealing with byte operations, TCPSockets)?
your language to another language is never extremely hard to achieve, assuming that both are Turing-complete. The real problem comes from your framework to another framework. The .NET Framework is much more capable than the PHP library. For instance, if your C# application uses threads, your PHP port is doomed.
So, no, there is no C# to PHP translator available, except real people. At least, as far as I know.
There are, however, TCP sockets in PHP, available through fsockopen
or the socket
extension. For byte operations, they work the same in PHP and C#.
Whilst I wouldn't deem it wise to attempt this, in the interest of answering your question I'd like to nevertheless direct you to this question. You might also find use in this site too. Good luck :)