help me!
i think parsing a webpage then insert contents into wordpress wp_post table.
but, when i require('wp-load.php'); it throw Fatal error: Call to a member function find() on a non-object in C:\wamp\www\simple_html_dom.php on line 879.
when i disable //require('wp-load.php'); it throw Fatal error: Call to undefined function wp_insert_post() in C:\wamp\www\testinclud.php on line 22
the wp_insert_post($post); can not to run, why?
[Code moderated as per the Forum Rules. Please use the pastebin]