Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 1.77 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. trying to define an, Undefined Variable error
  2. while (!feof($f)) {
  3.                     $s = chop(fgets($f,4096));
  4.                         if ($s == '') continue;
  5.                         if (substr($s,0,5) == '<!--[') {
  6.                                 if ($nx != '') $this->templ[] = $nx;
  7.                                 $this->templ[] = $s;
  8.                                 $nx = '';
  9.                                 }
  10.                         elseif (substr($s,0,5) == '<?php') {
  11.                                 if ($nx != '') $this->templ[] = $nx;
  12.                                 $nx = $s;
  13.                                 }
  14.                         else
  15. ////// LINE 55                  $nx .= ($nx != '' ? "n" : '').$s;
  16.  
  17.                         if (substr($nx,-2) == '?>') {
  18.                                 $this->templ[] = $nx;
  19.                                 $nx = '';
  20.                                 }
  21.                         }
  22.        
  23. $nx = '';
  24.                 while (!feof($f)) {
  25.                 $s = chop(fgets($f,4096));
  26.                     if ($s == '') continue;
  27.                     if (substr($s,0,5) == '<!--[') {
  28.                             if ($nx != '') $this->templ[] = $nx;
  29.                             $this->templ[] = $s;
  30.                             $nx = '';
  31.                             }
  32.                     elseif (substr($s,0,5) == '<?php') {
  33.                             if ($nx != '') $this->templ[] = $nx;
  34.                             $nx = $s;
  35.                             }
  36.                     else
  37.                             $nx .= ($nx != '' ? "n" : '').$s;
  38.  
  39.                     if (substr($nx,-2) == '?>') {
  40.                             $this->templ[] = $nx;
  41.                             $nx = '';
  42.                             }
  43.                     }
  44.        
  45. $s = chop(fgets($f,4096));
  46. $nx = '';