I know that through PERL I can grab a portion of another web page (stream flow data in this case), and I am fairly certain I have seen it done with PHP, but cannot find it in here. Can anyone offer some insight into this?
$file="http://somewebserver.xyz.com/somefile.html"; $fp=fopen($file,"r"); $thewholething=fread($fp,10000000);
I think that's it.
I grab my webpages like this:
$page = join( '', file("http://mypage.com"));
OK, this will make me sound like the novice I am, but how would I then extract the piece that I want? I don't want the entire page...
You now need to use regular expressions to extract the data.
For a quick overview of the regex commands in PHP, go to:
http://www.php.net/manual/ref.regex.php
and for an explanation of posix regular expression syntax, type man 7 regex on most any Linux box, or go here:
http://www.delorie.com/gnu/docs/rx/rx_toc.html
Thanks a million.
There is a complete script, instructions, and even a tutorial on how to grab data from other web sites at: http://www.4cm.com/
Give it a shot.