2858
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
54
This Month
260
This Year
310

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
"We're tight-fisted with property and money, yet think too little of wasting time, the one thing about which we should all be the toughest misers.”
Seneca
Random CSS Property

mask-border-outset

The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box.
mask-border-outset css reference