I am trying to fetch the title contents of some sample pages i have on my site. I have the following that bring thumnails up
<?
for($i=1;$i<51;$i++) {
?>
<p>
<?=$s?>====<?=$e?>====<?=$e?>
<img src="../downloads/templates/<?=$i?>/thumbshot.jpg" alt="" /></p>
<?
}
?>
I have added the following but it does return the correct values
[code]
$urloftag = fopen("…/downloads/templates/$i/index.html", “r”);
$start = “<title”;
$end = “”;
$s = strpos($start,$start);
$e = strpos($end,$end);
$pos = strlen($s,$e)
?>
[b]<?=$s?>====<?=$e?>[/b]
<? [b]fclose($urloftag);[/b] } ?>[/code]Does anybody have any suggestion on where I am going wrong.
Any input will be much appreciated