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" Link to comment https://forums.phpfreaks.com/topic/209274-header-for-images/ 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>"; } ?> Link to comment https://forums.phpfreaks.com/topic/209274-header-for-images/#findComment-1099178 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. Link to comment https://forums.phpfreaks.com/topic/209274-header-for-images/#findComment-1102101 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.