- Forums
- PHP
- Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE
This Page Contains information about Parse Error: Parse Error, Unexpected T_LNUMBER, Expecting T_VARIABLE By wallpaperama in category PHP with 2 Replies. [1104], Last Updated: Sat May 18, 2024
wallpaperama
Mon Feb 25, 2008
2 Comments
745 Visits
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?
if($img[$i <<<<<<<<< thats where the problem is. the first was a lower case 'l'
https://www.wallpaperama.com/forums/parse-error-parse-error-unexpected-t-lnumber-expecting-t-variable-t5805.html