Thread: Meta-keyword

  1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Hi.. Please help!!

    Let's say I have a form, which allows a user to key in a website's url.
    How do I retrieve the meta-tags that are in the selected page? Is it possible?

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Rep Power
    $meta = get_meta_tags("http://url");

    Hope this helps!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Rep Power
    Almost there, just one more thing:
    This will list all meta tgas on a page or an error message if none are found

    //$url is the full http:// path of the page in question

    $meta = get_meta_tags($url, 1);
    $count = sizeof($meta);

    if ($count > 0) {
    print "<font size=4><b>Meta Tags for: </b>". $url ."</font><br><br>";
    while (list($key, $val) = each ($meta)) {
    print "<b>". $key .":</b> ". nl2br($val) ."<br><br>";
    else {
    print $url ." is not using any meta tags";

Similar Threads

  1. Openldap dbtype meta
    By dag-otto in forum LDAP Programming
    Replies: 1
    Last Post: May 4th, 2006, 09:36 AM
  2. Linking Problem in VC++6.0
    By sravan in forum C Programming
    Replies: 0
    Last Post: November 27th, 2003, 09:22 AM
  3. meta tag refresh with url
    By fch in forum HTML Programming
    Replies: 1
    Last Post: September 16th, 2003, 09:31 AM
  4. Question regarding keyword checkboxes in database design
    By spidersilk in forum PostgreSQL Help
    Replies: 1
    Last Post: June 7th, 2003, 03:29 AM
  5. Sending link keyword as input to search script
    By endl in forum Perl Programming
    Replies: 3
    Last Post: February 26th, 2002, 10:01 PM

IMN logo majestic logo threadwatch logo seochat tools logo