note 113794 added to function.get-meta-tags

From: Date: Tue, 03 Dec 2013 06:24:47 +0000
Subject: note 113794 added to function.get-meta-tags
Groups: php.notes 
Request: Send a blank email to php-notes+get-197727@lists.php.net to get a copy of this message
hy this code makes you eligble to enter url of site and extract it meta tags, enjoy coding:-} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php // Assuming the above tags are at www.example.com $meta=$_POST['meta']; $tags = get_meta_tags($meta); // Notice how the keys are all lowercase now, and // how . was replaced by _ in the key. // name // php documentation // a php manual // 49.33;-86.59 ?> <form action="extract-meta.php" method="post"> <table width="50%" border="2" align="center" cellspacing="5"> <tr> <td width="17%">Author name</td> <td width="83%"><?php echo $tags['author'] ?></td> </tr> <tr> <td>Keywords</td> <td><?php echo $tags['keywords'] ?></td> </tr> <tr> <td>Description</td> <td><?php echo $tags['description'] ?></td> </tr> <tr> <td>Geo position</td> <td><?php echo $tags['geo_position'] ?></td> </tr> <tr> <td><input name="submit" type="submit" value="Search" /></td> <td><input name="meta" type="text" size="50" /> <input name="meta2" type="text" value="<?php echo $meta ?>" size="50" /></td> </tr> </table> </form> </body> </html> ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.get-meta-tags.php Edit -- https://master.php.net/note/edit/113794 Del: integrated -- https://master.php.net/note/delete/113794/integrated Del: useless -- https://master.php.net/note/delete/113794/useless Del: bad code -- https://master.php.net/note/delete/113794/bad+code Del: spam -- https://master.php.net/note/delete/113794/spam Del: non-english -- https://master.php.net/note/delete/113794/non-english Del: in docs -- https://master.php.net/note/delete/113794/in+docs Del: other reasons-- https://master.php.net/note/delete/113794 Reject -- https://master.php.net/note/reject/113794 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197727) next »