FW: parse error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

________________________________

From: David Savage
Sent: Thu 10/13/2011 11:09 AM
To: php-general-digest-owner@xxxxxxxxxxxxx
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 php.net.  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
To: ha-phpug@xxxxxxxxxx
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 php.net 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 environment:
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) {
                        $start_from_which_offset=1;
                     }
                     if   ($destlen==10) {
                        $start_from_which_offset=0;
                     }
                     $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";
                            continue;
                        }
                     } 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.
 
 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux