Ahhh, i figured out what it means, Integrated Developer Environment or somtehing. Yah, im using one, DzSoft PHP Editor, it hasnt caught anything though, I'm pretty sure my quotes are all right because it keeps track of those.
<?
$number = 0 ;// counter starting at 0
$nrow = 4 ;// amount of thumbnails per row
$dir = "." ;
if (is_dir($dir)){
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) != false) {
if ( preg_match( '/\.jpg$/', $file) ){
if ((preg_match( '/\_sm.jpg$/', $file)) != true){
$jpegname = str_replace(".jpg", "", $file);
if ((is_file($jpegname."_sm.jpg"))== false){
// $size = getimagesize($jpeg)
/*hanks to [url]http://www.onlinetools.org/articles/creating_thumbnails_all.php#The%20logic%20of%20batch%20processing%20thumbnails[/url] for resize dimensions code */
$old_x=imageSX($file);
$old_y=imageSY($file);
if ($old_x > $old_y) {
$thumb_w=$new_w;
$thumb_h=$old_y*($new_h/$old_x);
}
if ($old_x < $old_y) {
$thumb_w=$old_x*($new_w/$old_y);
$thumb_h=$new_h;
}
if ($old_x == $old_y) {
$thumb_w=$new_w;
$thumb_h=$new_h;
}
$dst_img=ImageCreate($thumb_w,$thumb_h);
imagecopyresized($dst_img,$src_img,0,0,0,0,$thumb_w,$thumb_h,$old_x,$old_y);
imagejpeg($dst_img,$file."_sm.jpg");
}
echo "<a href=\"$bpic\"><img src=\"$file\"></A>" ;
if ($number == $nrow) { //if the max # of pics, then <BR>
echo "<br>";
$number = 0 ;
}
else {
$number++ ;
}
}
}
}
}
// $domain = stristr($email, 'e');
// $spic = "_sm" ;
// $bpic = str_replace($spic, "", "$file") ;
?>
Im so lost 😕 , this is my longest script every, yah im new at this, but i learned so much through this script, im not giving up on it yet =)