| 
	
 | 
 Posted by Wescotte on 06/13/98 11:44 
The error message Parse error: syntax error, unexpected $end in FILE on 
line X is one I run into frequently and I know the cause is I missed an 
ending quote. 
 
Is there an easy way to determine where the inital " started? I find 
myself adding /* */ blocks or cutting/pasting sections of code out in 
order to find where the error occured. 
 
Wouldn't it it be nice if the warning message included the line in teh 
source where the initial quote  occured? 
 
for example say this is my code 
<? 
function Build_Query(....) 
code... 
 
$my_query = "SELECT BLAH FROM ; (line 15) 
 
more code... 
 
} (line 100) 
EOF 
 
and you got 
 
Parse error: syntax error, unexpected $end in MYFILE on line 100 
started on line 15 
 
Just a thought 
Eric
 
  
Navigation:
[Reply to this message] 
 |