Code: Select all
<xml>
<?php
$menuType=$_GET['selDir'];
$selYear=$_GET['selYear'];
$fileName="../images/$selYear/".$menuType."/".$menuType.".html";
$handle=fopen($fileName,"r");
$contents=fread($handle,filesize($fileName));
$wanted=preg_match_all('/<b>(.*)<\/b>/', $contents, $matches,PREG_SET_ORDER);
fclose($handle);
$i=0;
foreach($matches as $value){
echo ("$value[0]");
}
?>
</xml>Code: Select all
http://www.website.com/php/xml.php?selDir=VENICE&selYear=2005Code: Select all
http://www.website.com/2007/php/xml.php?selDir=VENICE&selYear=2005Code: Select all
<xml>
<b>Venetian Weekend</b>
</td>
<td align="center" width="33%">
<a href="Venice-Pages/Image1.html"><img height="160" alt="Venetian Weekend" width="240" src="Venice-Thumbnails/1.jpg"></a>
<br><b>Venetian Weekend</b>
</td>
<td align="center" width="33%">
<a href="Venice-Pages/Image2.html"><img height="160" alt="Venetian Weekend" width="240" src="Venice-Thumbnails/2.jpg"></a>
<br><b>Venetian Weekend</b>
</td>
</tr>
....etc