please read the following chain of emails...I'm at my wits end.


From: David Savage
Sent: Thu 10/13/2011 11:09 AM
Subject: FW: parse error

How can I find the answer to the following php issue?  I am not sure how to 
post a question to the general digest from  The email address who I 
initially sent this email to, is not valid, and I cannot find any details on 
what the following PHP Parse error:  parse error refers to, in the context of 
the line that the error points to.


From: David Savage
Sent: Thu 10/13/2011 9:56 AM
Subject: parse error

I'm sorry....I need help with php v. 4.3.9 (cgi).  I don't know where else to 
turn.  I've looked on the web site for details on this particular 
error, but am unable to find any.
this is the version I use.
php -v
PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:03)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
I run the following command, and getting the following compile error on a linux 
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
here is a portion of the code that includes the line number mentioned:
                     if   ($destlen==11) {
                     if   ($destlen==10) {
                     $termnum10=substr($dest, $start_from_which_offset,10);
                     $alias_sql_stmt="SELECT ani FROM ldrates WHERE 
ani='$termnum10'";    // <-----this is line 1050
                     print "$alias_sql_stmt\n";
                     $alias_result = $db->sql_query($alias_sql_stmt);
                     if  ($alias_result==TRUE) {
                        if($db->sql_numrows($alias_result) > 0) {
                            print "Found alias...\n";
                     } else {
                        die("problem with sql: $alias_sql_stmt");

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 give.

Reply via email to