Im sorry guys but I sill dont get it
I jus get errors and I have no idea of how I go about adaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/");
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImageaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("e;$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=80 border=0></a></TD>"e;);
}
if ($cols > 2) {
print('</tr>');
I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("e;$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file ne could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;jas and I have no idea of how I go about adaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("e;$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alI sill dont get it
I jus get errors and I have no idea of how I go about adaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("e;$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=80 border=0>&amI sill dont get it
I jus get errors and I have no idea of how I go about adaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("e;$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=80 border=0></a></TD>"e.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/");
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("$id/$file"); // gets filetime
$times=array("$time"=>"$id/$file"); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("$id/$file")){
list($width, $height)=getimagesize("$id/$file");
if($height<$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"><img src=$id/$file alt=$file width=120 border=0></a></TD>");
}
if($height>=$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',e could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/"e;);
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"e;); // gets filetime
$times=array("e;$time"e;=>"e;$id/$file"e;); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\&q
I jus get errors and I have no idea of how I go about adaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/");
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("e;$id/$file"); // gets filetime
$times=array("$time"=>"$id/$file"); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("e;$id/$file"e;)){
list($width, $height)=getimagesize("e;$id/$file"e;);
if($height<$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=120 border=0></a></TD>"e;);
}
if($height>=$width){
print("e;<TD><A href=\"e;javascript:largeImage('$id/$file'<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/");
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("$id/$file"); // gets filetime
$times=array("$time"=>"$id/$file"); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("$id/$file")){
list($width, $height)=getimagesize("$id/$file");
if($height<$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"><img src=$id/$file alt=$file width=120 border=0></a></TD>");
}
if($height>=$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"e;><img src=$id/$file alt=$file width=80 border=0></a></TD>");
}
if ($cols > 2) {
print('</tr>');
$cols = 0;
}else{
$cols++;
}}
}}
print('</table>');
?>
AndyI have no idea of how I go about adaptin the php.net sample code. If someone could tell me I would be very greatful. I have the thing so it shows the files but it doesnt sort them. I think I have put each file into its own array, how do I prevent this.
Code: Select all
<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/");
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("$id/$file"); // gets filetime
$times=array("$time"=>"$id/$file"); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("$id/$file")){
list($width, $height)=getimagesize("$id/$file");
if($height<$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"><img src=$id/$file alt=$file width=120 border=0></a></TD>");
}
if($height>=$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"><img src=$id/$file alt=$file width=80 border=0></a></TD>");
}
if ($cols > 2) {
print('</tr>');
$cols = 0;
}else{
$cols++;
}}
}}
print('</table>');
?>
Andy<?print('<TABLE cellpadding=0 cellspacing=4 border=0 width=760>');
$dir = opendir("$id/");
$cols = 0;
while ($file = readdir($dir)) { //first while
$time=filemtime("$id/$file"); // gets filetime
$times=array("$time"=>"$id/$file"); //puts into an array
asort($times); //sorts array
reset($times); // resets array
while (list($key, $val) = each($times)) { //lists the array
if (!$cols){ print('<tr>');} //from here it works fine
if(is_file("$id/$file")){
list($width, $height)=getimagesize("$id/$file");
if($height<$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"><img src=$id/$file alt=$file width=120 border=0></a></TD>");
}
if($height>=$width){
print("<TD><A href=\"javascript:largeImage('$id/$file','',$width,$height)\"><img src=$id/$file alt=$file width=80 border=0></a></TD>");
}
if ($cols > 2) {
print('</tr>');
$cols = 0;
}else{
$cols++;
}}
}}
print('</table>');
?>
Andy