November 19, 200619 yr Is it possible to make a PHP script that enables the user to acquire information from a given website, like values inside a table and save it in a text file?
November 20, 200619 yr I can think of a possibility, but the problem is that HTML has gotten so varied that getting data out of HTML would take a lot of time and effort.
November 20, 200619 yr Author Is it possible if you can point me to some tutorials or information that I can read on about this?
November 23, 200619 yr I don't know of any tutorials; I was just brainstorming a bit and kinda-sorta thought of a possibility. I haven't tried it, though, and haven't come up with any real code to back it.
December 30, 200619 yr You could use fwrite - http://uk2.php.net/fwriteIt basically takes values (usually from a form) and saves them to a text file. Just remember to chmodd the file to 777!
January 5, 200719 yr just like WBHoenig said, it's possible..u can get the content of the site with<? $f=file('http://google.com/'); for ($i=0; $i<count($f); $i++) $content.=$f[$i]; ?>then u just need some regular expressions and stuff like that to get the info from the tables.. i've done a similar thing for a torrent tracker system which gets each torrent's hash, uploader, size, name, category by having access to the html code only.. it's not impossible.. Edited January 5, 200719 yr by dAbReAkA
Create an account or sign in to comment