Simple DOM Helper - 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: Simple DOM Helper (/showthread.php?tid=20681) |
Simple DOM Helper - El Forum - 07-17-2009 [eluser]K.Brown[/eluser] I'm trying to use the simple DOM helper, but I'm having some trouble. I'm new to CI and PHP. This seems to be an error due to my server setup... Code: <?php Quote:A PHP Error was encountered What can I do to fix this? Simple DOM Helper - El Forum - 07-17-2009 [eluser]bobbybaboon[/eluser] I had this same problem on Media Temple. What I did to solve it was to load the page using cURL and save it as a variable and then use the str_get_html function to parse the saved variable. I don't know if this is the best solution, but it worked. If you want more a code example I could post it tonight when I'm home from work. Simple DOM Helper - El Forum - 07-17-2009 [eluser]K.Brown[/eluser] An example would be great! I'm only familiar with the echo function...lol. Simple DOM Helper - El Forum - 07-19-2009 [eluser]bobbybaboon[/eluser] Sorry for the long delay! Here's how I'm using cUrl and SimpleDomHelper together: Code: function html_example() { Hope this helps! If anyone has any suggestions for improvement, please let me know. Simple DOM Helper - El Forum - 07-19-2009 [eluser]K.Brown[/eluser] Awesome! Thanks a lot! You've saved me hours! |