|
Hello php gurus, Can someone convert this to ColdFusion please? <?php // In my system, a function is called that
returns the file names of images in a certain format // in an array. All images that are in the
sample array below are known to exist, etc. and this // matches the structure of the return value
from the function... (this assumes that the function // did return an array with at least one
element) // this is an example of what would be used $images=array( 'test.jpg', 'test.png', 'test.gif' ); $num_images=count($images); // loop through and display all current images echo '<table cellpadding="2"
cellspacing="0" border="0">',"\n"; foreach($images as $num=>$file){ $img_src=$CFG['paths']['user_images'].'/'.$file;
$size=getimagesize($CFG['paths']['sys_path'].$img_src); echo '<tr'; if($num%2) echo ' style="background-color:
#dfdfdf"'; echo '><td><img
src=""
',$size[3],' alt="" /></td>', '<td valign="top"><a
href=""
Image</a></td></tr>'; } ?> Thanks in advance, Ron Mast Webmaster Truth Hardware Ph: 507-444-4748 Fx: 507-444-5361 _______________________________ This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. |
- for php gurus Ron Mast
- RE: for php gurus Lewis, David
- RE: for php gurus Ron Mast
