Jump to content

How To Add Jpg,gif,png To My Thumbnails


Joey46

Recommended Posts

? What format are they in now, and how are you generating them?
This is my PHP code<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" ("content-type:image/png");.imagepng(),><title>Index.php</title></head><body><?echo '<ul class="hoverbox">';$max_num = 15;$j=0;$narray = array();$dir = "Thumbs/"; if (is_dir($dir)) { $dh= @opendir($dir) or die("Unable to open $path please notify the administrator. Thank you."); while (($file = readdir($dh)) !== false) { if(($file != '.') && ($file != '..') && (stristr($file,'jpg'))){ if ($ext == "JPEG") if ($ext == "gif") if ($ext == "png") { $narray[]=$file; $n++; } }if ($n < $max_num) { $max_num = $n; }shuffle( $narray); while ( $j <= $max_num-1) { echo "\t" . '<li><a href="' . $dir . $narray[$j] . '" alt="full-size"><img src="' . $dir . $narray[$j] . '" alt="' . $dir . $narray[$j] . '" > </a></li> ' . "\n\r\t"; $j++; }} else { echo 'There is a problem with the directories. Please Notify the Administrator. Thank You.';} echo '</ul>';?></body></html>but for some reason it is now placing all images in a temporary folder instead of on my gallery pageAnd please can i thank you in adavnce for your assisstance
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...