getting values from www

From: Klapek (klapek_at_ids.pl)
Date: 04/25/04


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: &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

  • getting values from www
    ... 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 ... strip_tagstranslates source and when i'm checking the file "plik.txt" i ... Kamil Warzecha ...
    (comp.lang.php)
  • Re: Label for imported Outlook holidays
    ... More infos: I was able to open the .oft via Tools, Forms, choose ... is unknown". ... Should I update the script as these commands/variables ...
    (microsoft.public.outlook)
  • Re: gcc for M16C/M32C
    ... script to include "libgloss"? ... I read crossgcc FAQ and i did'nt see any ... infos about this topic. ...
    (comp.arch.embedded)