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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -