djoxer Posted June 19, 2007 Share Posted June 19, 2007 Hello all, I'm a Coldfusion developer and I'm trying to convert some PHP code to Coldfusion. I'm having trouble diciphering some of the code. Here is the code below: if ($line!="*\r\n") { $orig=trim($line); $line=str_replace("PICT","TN/PICT",$line); $line=str_replace("dcp","TN/dcp",$line); $line=str_replace("DCP","TN/DCP",$line); $line=str_replace("pyramide","TN/pyramide",$line); $line=str_replace("quai","TN/quai",$line); $line=str_replace("Negative","TN/Negative",$line); if (($line_num%2)==0) { ?> <img class="thumb" onclick="javascript:popTof('<?=$orig; ?>');" src="<?=$line; ?>" <? } else { ?> alt="<?=$line; ?>"><? } } These lines are especially troubling: if ($line!="*\r\n") if (($line_num%2)==0) Any help diciphering these would be greatly appreciated. Thanks. Link to comment https://forums.phpfreaks.com/topic/56138-need-help-converting-to-coldfusion/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.