getting values from www
From: Klapek (klapek_at_ids.pl)
Date: 04/25/04
- Next message: Wally: "Re: Open two URLs or force 2nd URL to open in code?"
- Previous message: altergothen: "What is a constructor?"
- Next in thread: Paul Delannoy: "Re: getting values from www"
- Reply: Paul Delannoy: "Re: getting values from www"
- Reply: Lee A. Wentzel: "Re: getting values from www"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Apr 2004 22:37:12 +0200
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: Wally: "Re: Open two URLs or force 2nd URL to open in code?"
- Previous message: altergothen: "What is a constructor?"
- Next in thread: Paul Delannoy: "Re: getting values from www"
- Reply: Paul Delannoy: "Re: getting values from www"
- Reply: Lee A. Wentzel: "Re: getting values from www"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|