faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 6 people (83%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

Can I use PHP to write a search script which searches through meta tags in html pages and if so how?

Nov 28th, 2000 23:54
Pavel Prishivalko, Dave Martindale,


1. PHP can handle HTTP/FTP connection like local f/s:
$fp = fopen("http://host/page.html"); // and you've got the file
pointer, then fread() and so on...
2. For meta tags filtering you can use regexp or look at this:
http://www.php.net/manual/function.get-meta-tags.php
Good luck :)