Forums

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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33881
    scofield
    Member

    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 ?

    #84905
    scofield
    Member

    Make it using only PHP.


    $html = file_get_contents("http://www.example.com");
    $pos1 = strpos($html,"")+strlen("");<br /> $pos2 = strpos($html,"")+strlen("");
    $ttl = substr($html,$pos1,$pos2);
    echo $ttl;
    ?>
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.