2837
1:11 am, December 20, 2021
 

extract meta attributes with simple html dom

pass in the url as import_url and it will search for the meta keywords tag and echo the result.

PHP

$import_url = $_GET['import_url'];
require_once("lib/simple_html_dom.php");
$html = file_get_html( $import_url );
$meta_keywords = $html->find( "meta[name=keywords]" );
echo $meta_keywords;

View Statistics
This Week
41
This Month
249
This Year
289

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
There is no way to happiness. Happiness is the way.
Unknown
Random CSS Property

border-image-repeat

The border-image-repeat CSS property defines how the edge regions of a source image are adjusted to fit the dimensions of an element's border image.
border-image-repeat css reference