Hi, I am just starting with php and i have been trying to get these two pieces of code to act right. Like they are shown everything works just fine. What i need this to do is find a certain html code on a page then write to the next line more html.
the goal is to pull the img file names from a folder then print code for each img so it will display on that page. I know it seems a bit redundant but i do have a perpose, lol. Help with this little project i would be much thankful for.
<?php
$files = glob("1/*.*");
for ($i=1; $i<count($files); $i++)
{
$image = $files[$i];
print $image ."<br />";
echo '<div><img u="image" src="'.$image .'" width="720px" height="480px" alt="Actual Size" /></div>'."<br /><br />";
echo '<div><img u="thumb" src="'.$image .'" width="99px" height="66px" alt="Thumb" /></div>'."<br /><br />";
}
{
$file = fopen("test.html","w");
echo fwrite($file,"Hello World. Testing!".$i."<br>\r\n");
fclose($file);
}
?>