Simple DOM Helper |
[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?
[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.
[eluser]K.Brown[/eluser]
An example would be great! I'm only familiar with the echo function...lol.
[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.
|
Welcome Guest, Not a member yet? Register Sign In |