I'm trying to import a league table then strip out the useless stuff that I dont ie. page tags, and title tags etc. Then display it in a neat table, on my page.
Which imports the page nicely, however I'm not sure how to get rid of the stuff that I dont need. Could I save it to a file, and then use regular expressions to search through and cut out the tags and info that I dont want. Is this possible, and if so is there a better way of doing this?
I would attempt to use strip_tags to see if that removes most of the useless stuff (might cut text too :/). If not, you would need to determine where the data is located, and probably use an SGML parser to figure out what you want.
thank you, but if I wanted to search through the arrays and to cut out the text like links, that i didnt want, could I use preg_matches to match the links and then delete them. Or is there a #nother way, as this might interfer with the data that im trying to import.
When I run the below code I seem to get this error: Fatal error: Call to undefined function: curl_init() in H:\xampp\htdocs\www\1uwafc\busa\index.php on line 26.
What does this mean?
Originally Posted by Huevoos
well if you just want to output de data here is a very simple script that allows you to do so.
Bookmarks