parsing - Simple php dom parser doesn't work with local url -
does not work url. problem? error - php notice: trying property of non-object
<?php include ('config.php'); include('simple_html_2012.php'); echo file_get_html('http://www.localhost/test/test.html')->plaintext; ?>
if trying parse google.com, works.
echo file_get_html('http://localhost/test/test.html')->plaintext;
or
echo file_get_html('http://127.0.0.1/test/test.html')->plaintext;
Comments
Post a Comment