Click to See Complete Forum and Search --> : Parse Error


C4Traffic
01-06-2006, 07:39 PM
Could someone please help me everyone that surfs my site gets this error

Parse error: parse error, unexpected T_LNUMBER in /home/timflick/public_html/templates/config_bar.php on line 10




<?php

//number of page views before members get bonus from link on surf bar set to 0 disabled.
$contex = '50';

//amount of credits members get from bonus link on surf bar.
$contey = '20;

//number of page views before anti-cheat link shows set to 0 disabled.
$antich = '0';

//amount of credits member gets when anti-cheat link shows.
$antiche = '0.1';

?>

balloonbuffoon
01-06-2006, 07:48 PM
You didn't close your quote:
$contey = '20';
The thing that throws you off about parse errors is the error is usually located on the previous line (that's filled) rather than the line it says its on.

--Steve

C4Traffic
01-06-2006, 07:50 PM
Thanks Steve

balloonbuffoon
01-06-2006, 08:01 PM
No problem!

russell
01-07-2006, 12:13 AM
you should turn off error reporting on your live site. it's a security risk. the errors give hackers valuable information. leave error reporting on, on your development server of course. while i'm on the subject, make sure register globals is off too...