The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to get all of the page(meta, images..) using JS
Hello. Anybody know how to get all of the page using JS ? For example.. we have a link GOOGLE.com how can I get title tag.. for example ?
Make it using only PHP.
$html = file_get_contents("http://www.example.com"); $pos1 = strpos($html,"")+strlen(""); $pos2 = strpos($html,"")+strlen(""); $ttl = substr($html,$pos1,$pos2); echo $ttl; ?>