Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE

Mobile
feeds
Welcome Login | Register

Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE
  Forums Index
      » PHP Forums
        » » Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE



Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE
Post Description:
Post Tags: parse, error, parse, error, unexpected, t, lnumber, expecting, t, variable, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 334 Times Since Mon Feb 25, 2008 12:26 pm Posted By hostman with 1 replies
Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE
today i was getting this error in my php script and i could not figure out why i was getting it.

this is what i had in the code:

				for($i =0; $i < count($img); $i++) {
					if($img[$l] == $_FILES['uploaded']['name']){
						$_FILES['uploaded']['name'] = false;
					}
				}


can you catch the error. i know where it is.. this is how it should look like

				for($i =0; $i < count($img); $i++) {
					if($img[$i] == $_FILES['uploaded']['name']){
						$_FILES['uploaded']['name'] = false;
					}
				}

can you guess where the error is?




Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE




:: 1 :: Reply #43534 Reply By tony On Thu Feb 28, 2008 6:26 pm
i usually get this errror when i miss something

for example the other day i had this:

if($strlen($tring) > 45) {

well as you can see, i need to add another ) in my code, so that's why i was getting this errorl