Yep! I agree it's probably an open bracket.
Here is a little program I use to beautyify my programs and find open 
brackets.

HTH dan..
----------------------- beauty.php -----------------------
/* ----------------------------------------- *\
** Beauty: cleans up source PHP code and
** indent nesting
\* ----------------------------------------- */
$file_name = "???.php";                 // gimme your program name
$data =  file("c:/???/$file_name");     // gimme your in area
$fp   = fopen("c:/???/$file_name",'w'); // gimme your out area

$sho_nst = "N";                         // [Y]es to show levels
$cmt = 0;                               // start comment count
$nst = 0;                               // start nesting count
$i   = 0;                               // count for input array

while (isset($data[$i])) {              // while going through data
if (strstr($data[$i],"/*")) $cmt++;     // tab count if comments start
if (strstr($data[$i],"*/")) $cmt--;     // tab count if comments end

if (($cmt < 1) && (strstr($data[$i],"{")))  $nst++; // count nesting
$x = '';                                // init the output file line
for ($j = 0; $j < $nst; $j++) {         // according to nestings
    $x .= "\t";                         //    put tabs on
} 
                                // end for
$y = ltrim($data[$i]);
if (empty($y)) $y = "\n";
$out = $x . $y;         // now strip leading junk and put tabs on
if (($cmt < 1) && (strstr($data[$i],"}")))  $nst--;// un count nesting
if ($sho_nst == 'Y') $out = $i . "|" . $cmt . "|" . $nst . "|" . "$out";

fwrite ($fp, $out);                     // put it to the output file

echo "$i | $cmt | $nst | $out <BR>";    // lemme see it in the browser
$i++; 
                                // bump count for input array
} 
                                // end while
fclose($fp); 
                        // close the output file

----------------------------- end beauty ----------------------------


Ben Turner wrote:

> Parse error: parse error in /var/www/docs/tacklebox/404handler.php on line 47
> 
> I am receiving this error on my page but the problem is that line 47 is the ?> and 
>last line of the page.  Is their something Im missing here??  
> 
> Thanks,
> Ben
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to