Home  |  Linux  | Mysql  | PHP  | XML
From:madunix Date:Thu Mar 18 22:55:11 2010
Subject:Re: web sniffer
okay ..it works now i use
<?php
$data=file_get_contents("http://www.my.com");
echo $data;
?>

On Fri, Mar 19, 2010 at 12:32 AM, Adam Richardson <simpleshot@gmail.com> wrote:
> On Thu, Mar 18, 2010 at 6:08 PM, Ashley Sheridan <ash@ashleysheridan.co.uk>
> wrote:
>>
>> On Fri, 2010-03-19 at 00:11 +0200, madunix wrote:
>> > trying http://us3.php.net/manual/en/function.fsockopen.php
>> > do you a piece of code that  read parts  pages.
>> >
>> >
>> > On Fri, Mar 19, 2010 at 12:00 AM, Ashley Sheridan
>> > <ash@ashleysheridan.co.uk> wrote:
>> >
>> >
>> >         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
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > --
>> > If there is a way, I will find one...***
>> > If there is none, I will make one..."***
>> > **************** madunix  ******************
>> >
>> >
>>
>> I think you're over-complicating things by using fsockopen(). Try one of
>> the functions I mentioned in my last email
>>
>> Thanks,
>> Ash
>> http://www.ashleysheridan.co.uk
>>
>>
>
> I agree with Ashley, use one of the other options and then parse the
> response to get the part of the page you'd like to work with.
>
> --
> Nephtali:  PHP web framework that functions beautifully
> http://nephtaliproject.com
>



--
If there is a way, I will find one...***
If there is none, I will make one..."***
**************** madunix ******************
Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP] DOMElement: td vs. th
Re: [PHP] DOMElement: td vs. th
Re: [PHP] Spreadsheet_Excel_Reader problem
LMPX.COM :: Linux, Mysql, Php, Xml
Re: [PHP] Robust PDF editing on the fly



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants