hmaster10 Posted November 19, 2006 Posted November 19, 2006 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?
WBHoenig Posted November 20, 2006 Posted November 20, 2006 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.
hmaster10 Posted November 20, 2006 Author Posted November 20, 2006 Is it possible if you can point me to some tutorials or information that I can read on about this?
WBHoenig Posted November 23, 2006 Posted November 23, 2006 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.
Nad Posted December 30, 2006 Posted December 30, 2006 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!
dAbReAkA Posted January 5, 2007 Posted January 5, 2007 (edited) 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, 2007 by dAbReAkA
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now