Re: getting values from www

From: Lee A. Wentzel (lawentzel_at_charter.net)
Date: 04/26/04


Date: Mon, 26 Apr 2004 10:54:23 -0400

This looks like you are trying to create something to steal someone elses
code. If that's the case, you probably wont find anyone to help you. If
you are using internet explorer and you just want to copy the page to your
hard drive, bring up the page, and click on File and Save As. If you are
trying to strip the data from the site... good luck.

"Klapek" <klapek@ids.pl> wrote in message
news:c6ejbk$m71$1@nemesis.news.tpi.pl...
> Hello i've problem with a little script.I need a script which will get
some
> interesting me infos from WWW. for example i have URL like
> http://gielda.onet.pl/notowania.html and i have source like this:
> ------------------------------------------------------
> <html>
> <body>
> <?php
>
> function URLopen($url)
>
> {
> //Fake the browser type
> ini_set('http_user_agent','MSIE 4\.0b2;');
>
> $fp = fopen("$url",'rb');
> $result = fread($fp,81920);
> return $result;
>
> }
> $wynik=URLopen("http://gielda/onet.pl/notowania.html");
> $txt = strip_tags ($wynik);
>
> echo $txt;
>
> $plik = fopen("plik.txt","w");
> fwrite ($plik,$txt);
> fclose($plik);
> ?>
> </body>
> </html>
> ----------------------------------------------------------
> that works but not like i want cause in plik.txt file i have complete page
> but i need only some information about shares statements. Can i get only
> this information? How can i do it?i have one problem more , function
> strip_tags() translates source and when i'm checking the file "plik.txt" i
> can see it: &nbsp <- what is this? can i get informaton without it?
> Greetings
> Kamil Warzecha
>
> P.s Sorry but my english is terrible, i hope all what i wrote is
> understanding :)
>
>



Relevant Pages

  • Re: getting values from www
    ... This looks like you are trying to create something to steal someone elses ... you probably wont find anyone to help you. ... > interesting me infos from WWW. for example i have URL like ... > echo $txt; ...
    (comp.lang.php)
  • Re: hmm... rand
    ... I can echo that timereturns current time and thus wont ... your computer clock never changes... ... a mersenne twister is top notch stuff for roguelikes and can be ...
    (rec.games.roguelike.development)
  • Re: getting values from www
    ... > This looks like you are trying to create something to steal someone elses ... you can use this infos:) i made some ... > trying to strip the data from the site... ...
    (alt.php)
  • Re: getting values from www
    ... > This looks like you are trying to create something to steal someone elses ... you can use this infos:) i made some ... > trying to strip the data from the site... ...
    (comp.lang.php)
  • Re: The tobacco isle
    ... Hope your ok Echo! ... at least you know you wont be missing the ability to ...
    (alt.support.stop-smoking)