Jump to content

Need help converting to Coldfusion


djoxer

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.