rendered paste body<?php //html page source for: http://webdesign.about.com/dynamichtml/a/aadhtmlatts.htm $txt_file = "about.com.event.attributes.txt"; set_time_limit(500); require_once("hserv.php"); $h = fopen($txt_file,"r"); $d = fread($h,filesize($txt_file)); fclose($h); $d = preg_replace("/\n/","",$d); preg_match_all("/<p><b>(.*?)<\/b><br>((.*?)<p>(.*?))<b>/i",$d,$r); $attribute = array(); $definition = array(); foreach($r[2] as $key=>$def){ $def = preg_replace("/<.*?\/?>/i","",$def); array_push($definition,trim($def)); } foreach($r[1] as $key=>$attr){ array_push($attribute,trim($attr)); echo $key ." => ". $attr ."<br />\n".$definition[$key]."<br /><br />\n"; } $attribute = array_unique($attribute); $definition = array_unique($definition);?>