I am fairly new to PHP and I am trying to learn full speed. Recently I ran into a situation where I could not use an asp.net file and had to convert to PHP. I am really at no level to be able to convert this file.
Any help very appreciated, you will help me a lot :)
<% @Page Language="C#" debug = true%>
<% @Import Namespace="System.Net.Sockets" %>
<% @Import Namespace="System.Text" %>
<% @Import Namespace="System.IO" %>
TcpClient tcpc = new TcpClient();
String strDomain = Request.QueryString["domain"] + "\r\n";
Byte arrDomain = Encoding.ASCII.GetBytes(strDomain.ToCharArray());
Stream s = tcpc.GetStream();
s.Write(arrDomain, 0, strDomain.Length);
StreamReader sr = new StreamReader(tcpc.GetStream(), Encoding.ASCII);
string strLine = null;
while (null != (strLine = sr.ReadLine()))
Response.Write(strLine + "<br>");
Thank you again, so very much.