Page 2 of 2 First 12
  • Jump to page:
    #16
  1. Wiser? Not exactly.
    Devshed God 2nd Plane (6000 - 6499 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    6,274
    Rep Power
    4193
    Which one was it that they used, out of the 2, in the olden days ?
    Neither, it's always been <meta name="keywords" content="blah">. Same for description.
    Recycle your old CD's



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  2. #17
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by kicken
    Neither, it's always been <meta name="keywords" content="blah">. Same for description.
    Ok then. Maybe, I forgot things. Been nearly 20 yrs since I dumped the meta tags.
    Now, let us get to work.
    On my original post, part of the code looked like this which I did not fully understand as I copied it from somewhere:
    PHP Code:
    // Gets Webpage Description 
     
    $b =$main_url
     @
    $url parse_url$b ); 
     @
    $tags get_meta_tags($url['scheme'].'://'.$url['host'] ); 
     
    $description $tags['description']; 
    Now, if our meta tags look like this:
    <meta name="keywords" content="wood, furniture, garden, garden-table, etc.">
    <meta name="description" content="Official dealer of wooden garden furniture.">


    Then I guess, this:
    @$tags = get_meta_tags($url['scheme'].'://'.$url['host'] );
    will grab both:
    "wood, furniture, garden, garden-table, etc."
    "Official dealer of wooden garden furniture."


    But only this:
    "Official dealer of wooden garden furniture."
    will get dumped to this:
    $description = $tags['description'];
    Correct ?

    But, what will happen to the other ? Remain in the ram ?
    "wood, furniture, garden, garden-table, etc."
    Correct or not ?

    I need some more explanation here.


    Anyway, I'm guessing, to extract the keywords by their own separate from the description, I must create another variable. Such as:
    $meta_keywords = $tags['keywords'];
    Right or wrong ?

    Saying all this. I need an explanation on this:
    @$tags = get_meta_tags($url['scheme'].'://'.$url['host'] );

    What does the ($url['scheme'] mean ? Scheme ? What scheme ? http, https, ftp, gopher, etc. ? (Mind you. Don't know what the heck a 'gopher' is. Yes, Sepodati, laugh! Lol!).

    And exactly $url['host'] ) means what here ?

    A lot of questions. Hey ? I do not want to do guess work any more and so might aswell squeeze as much juice as I can from you guys when you're in the mood and learn as much as I can.
    I'll squeeze Sepodati very soon. Right Sepo ?

    Cheers!
    Last edited by UniqueIdeaMan; May 26th, 2018 at 04:02 PM.
  4. #18
  5. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Caro, Michigan
    Posts
    14,961
    Rep Power
    4575
    If <meta name="description" goes into $tags['description'], take a wild ****ing guess where name='keywords' goes, genius.
    -- Cigars, whiskey and wild, wild women. --
  6. #19
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2017
    Posts
    845
    Rep Power
    0
    Originally Posted by Sepodati
    If <meta name="description" goes into $tags['description'], take a wild ****ing guess where name='keywords' goes, genius.
    No need to wild guess. Remember, I said it goes into:

    $tags['keywords']

    and then asked if I was right or not.
Page 2 of 2 First 12
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo