Re: getting values from www
From: Lee A. Wentzel (lawentzel_at_charter.net)
Date: 04/26/04
- Next message: Brian: "Re: Bad word filer"
- Previous message: purmar: "Re: missing first chareacter after ""
- In reply to: Klapek: "getting values from www"
- Next in thread: klapek: "Re: getting values from www"
- Reply: klapek: "Re: getting values from www"
- Reply: Lucas: "Re: getting values from www"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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:   <- 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 :)
>
>
- Next message: Brian: "Re: Bad word filer"
- Previous message: purmar: "Re: missing first chareacter after ""
- In reply to: Klapek: "getting values from www"
- Next in thread: klapek: "Re: getting values from www"
- Reply: klapek: "Re: getting values from www"
- Reply: Lucas: "Re: getting values from www"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|