Location: PHPKode > projects > PHP Newsgroup Reader > file_save.inc
<?
                           if ( !$file_exist )
                                  fclose($file_save);
                           $file_path = "file/".$server."/".$file_name[$num_file];
                           print("<TABLE border=1 align=center><TR><TD><a href=$file_path>".$file_name[$num_file]." (".round(filesize($file_path)/1024, 2)."KB)</a></TD></TR></TABLE><BR>");
                           $tmp = strtolower(substr($file_name[$num_file],strlen($file_name[$num_file])-4));
                           if( $tmp==".jpg"||$tmp==".gif"||$tmp==".bmp"||$tmp==".png"||$tmp==".jpeg" )
                                  print("<p align=center><image src=$file_path alt=$file_name[$num_file] </p>");
//                           print("<p align=left></p>");
?>
Return current item: PHP Newsgroup Reader