Posted by Ramon on 10/25/05 04:16
I think if you go to http://www.php.net/documentation
You will find that in the documentation there is an entire section
dedicated to Filesystem. With many different functions that you may find
useful: eg. fread, fopep anbd many more.
typingcat@gmail.com wrote:
> Is it possible to read another web page in PHP?
> If is ASP.NET, the code would be
> ------------
> WebRequest req=WebRequest.Create("http://www.microsoft.com");
> WebResponse res=req.GetResponse();
> StreamReader sr = new StreamReader(res.GetResponseStream());
> String Output=sr.ReadToEnd();
> Response.Write("The content is : " + Output);
> --------
>
> Would you please tell me the PHP equivalant of this code? Thank you.
>
Navigation:
[Reply to this message]
|