Re: [PHP] web sniffer

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <1268949612.2206.55.camel@localhost>
On Fri, 2010-03-19 at 00:03 +0200, madunix wrote:

> I've been trying to read the contents from a particular URL into a
> string in PHP, and can't get it to work.  any help.
> 
> Thanks
> 
> -- 
> If there is a way, I will find one...***
> If there is none, I will make one..."***
> **************** madunix  ******************
> 


How have you been trying to do it so far?

There are a couple of ways. file_get_contents() and fopen() will work on
URL's if the right ports are open.

Most usually though cURL is used for this sort of thing.

Thanks,
Ash
http://www.ashleysheridan.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.