CodeIgniter Forums
Collecting NonForm Data from a page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Collecting NonForm Data from a page (/showthread.php?tid=25459)



Collecting NonForm Data from a page - El Forum - 12-12-2009

[eluser]JoeLongstreet[/eluser]
I'm new to CodeIgniter and PHP in general, but I was looking for a way to collect information from a page that's not in a form field. All the tutorials I've seen collect information from input/textarea with a button press.

I've seen some helpers that use screen scraping. Is this the best option?

Any pointers or tutorial suggestions would be much appreciated.

Thanks,

Joe


Collecting NonForm Data from a page - El Forum - 12-12-2009

[eluser]bretticus[/eluser]
Not a CI question so much I suppose. Screen-scraping is none too popular either but, sometimes ya gotta scrape. Smile However, use an API when possible. Screen-scraping can break as easily as the content is changed at the source.

There are lots of ways to do this. See File System Functions in the PHP Manual.

For a free library that will let you easily grab the pieces you need...

Simple HTML DOM


Collecting NonForm Data from a page - El Forum - 12-14-2009

[eluser]JoeLongstreet[/eluser]
Thanks, the Simple HTML DOM link looks like what I need.