Last active
August 29, 2015 14:18
-
-
Save felipsmartins/b84e9e07bd2dfff6e8a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include ('simple_html_dom.php'); | |
$html = file_get_html('http://172.16.1.15/web/guest/en/websys/status/getUnificationCounter.cgi'); | |
$found = $html->find(".staticProp", 1); # retorna um objeto não iterável ou NULL | |
if (!$found) { | |
exit("Nenhum elemento encontrado!"); | |
} | |
$ricoh_sjb = str_replace('Total:','', $found_element->plaintext); | |
print $ricoh_sjb; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment