thomas9999
asked on
PHP meta tags reader
Hi ,
I need a script in php which can read meta tage of a URL submited by user in text box on my web page then print them seprately to TITLE Description and Keywords in the shape of a web form ..please my english is not good...You can see example here http://directory.r-tt.com/Submit_URL/ i need the smillar script
I need a script in php which can read meta tage of a URL submited by user in text box on my web page then print them seprately to TITLE Description and Keywords in the shape of a web form ..please my english is not good...You can see example here http://directory.r-tt.com/Submit_URL/ i need the smillar script
sorry I just checked out the site you where talking about
the way this would be done is via
fopen(URL)
read the contents in then parse the meta tag info
check out
http://php.net/manual/en/function.fopen.php
the way this would be done is via
fopen(URL)
read the contents in then parse the meta tag info
check out
http://php.net/manual/en/function.fopen.php
$url='https://www.experts-exchange.com/questions/21828969/PHP-meta-tags-reader.html;
$tags = get_meta_tags($url);
echo "<pre>";
print_r($tags); //$tags["keywords"];
echo "</pre>";
$tags = get_meta_tags($url);
echo "<pre>";
print_r($tags); //$tags["keywords"];
echo "</pre>";
ASKER
Hello tolgaong..
your example work but its only print the result i need the same thing as is on http://directory.r-tt.com/Submit_URL/ ... Please all paste the script in PHP if u can thanksss
your example work but its only print the result i need the same thing as is on http://directory.r-tt.com/Submit_URL/ ... Please all paste the script in PHP if u can thanksss
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks tolgaong
Its working ..
Its working ..
will show you what information is available to your script in your particular version of php under its particular environment
the reuslts will be available via global arrays ie $_SERVER etc
that way you can find what you can get rather than what everyone else can get on thier srever that may not be available to you