On 10/13/11 10:06, "David Savage" <dsav...@cytelcom.com> wrote:

>php -l voip_cdrs.php
>PHP Parse error:  parse error, unexpected T_STRING in
>/usr/local/cytrex/voip_cdrs.php on line 1050
>Errors parsing voip_cdrs.php
>                     $alias_sql_stmt="SELECT ani FROM ldrates WHERE
>ani='$termnum10'";    // <-----this is line 1050
>Could you please tell me what's wrong with the line 1050 ?   I've been
>pulling my hair out (figuratively speaking) trying to understand why the
>compiler sees this line as a problem.  Thanks for whatever help you can

My suspicion is that there's is an unmatched curly brace earlier in the
file. With this type of error, you'll generally get a report of a bad line
further down the file--sometimes way down--because the parser can't
recognize until it hits the later point that something is wrong. Try
double-checking that the {Š} blocks prior to line 1050 properly balance,
and you'll probably find there's an extra one, or that one is missing, etc.

If nothing else, just start stripping code from the file until you find
the line that's actually at fault. If you do this in a binary search
fashion, it won't take more than a few minutes.

Robert E. Williams, Jr.
Associate Vice President of Software Development
Newtek Businesss Services, Inc. -- The Small Business Authority

Notice: This communication, including attachments, may contain information that 
is confidential. It constitutes non-public information intended to be conveyed 
only to the designated recipient(s). If the reader or recipient of this 
communication is not the intended recipient, an employee or agent of the 
intended recipient who is responsible for delivering it to the intended 
recipient, or if you believe that you have received this communication in 
error, please notify the sender immediately by return e-mail and promptly 
delete this e-mail, including attachments without reading or saving them in any 
manner. The unauthorized use, dissemination, distribution, or reproduction of 
this e-mail, including attachments, is prohibited and may be unlawful. If you 
have received this email in error, please notify us immediately by e-mail or 
telephone and delete the e-mail and the attachments (if any).

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to