ciber Posted July 29, 2010 Share Posted July 29, 2010 I am currently using php to call images - but I was wondering, is there a way to 'embed' the images title into the header fields? so that instead of saying "xyz.jpg (JPG Image, 100x100 Pixels)" it says "This is an Image Heading" Quote Link to comment Share on other sites More sharing options...
adi123 Posted August 14, 2010 Share Posted August 14, 2010 If you are calling the images from a folder at random you can try this. <? $files = glob("images/*.*"); for ($i=1; $i<count($files); $i++) { $num = $files[$i]; print $num."<br>"; echo '<img src="'.$num.'" alt="random image" />'."<br><br>"; } ?> Quote Link to comment Share on other sites More sharing options...
ciber Posted August 21, 2010 Author Share Posted August 21, 2010 that is accessing an image by means of html ... I am using gd library for image manipulation, and want to know if there is a way to modify the header to include a title. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.