djtabish
Posts: 16
|
| Posted: 02/01/2007, 11:38 PM |
|
Hello,
I've just upgraded to CodeCharge Studio 3.1.0.2 and am creating a new project for a PHP5/MySQL site. Had a bit of trouble creating the initial connection, but it mysteriously self corrected and I'm connecting to the MySQL database just fine from the PC. However, when I upload a newly created "blank" page to the server, along with the common files, I get the error message:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ccwwi/public_html/CCWWI_Dealers/Common.php on line 90
Lines 87 through 93 are:
class clsDBccwwi_connection extends DB_MySQL
{
public $DateFormat;
public $BooleanFormat;
public $LastSQL;
public $Errors;
Commenting out line 90 just causes the error to report line 91 as the error. All of the code is generated by CodeCharge so has anyone else encountered this? Did you find out what the problem actually was? I am not familiar with CodeCharge Studio's output so I've spent hours looking for a needle in a haystack!
Thanks,
Donna
|
 |
 |
AlexR
Posts: 8
|
| Posted: 02/02/2007, 2:13 AM |
|
It seems like you have PHP4 on your server, it doesn't have access modifiers (like public). Try switching PHP5 to PHP4 in your project settings and republish it to the server.
|
 |
 |
djtabish
Posts: 16
|
| Posted: 02/02/2007, 9:26 AM |
|
Oh, sure, go for the easy answer! 
That was the problem in deed. I was under the impression that the host had upgraded to 5 and a syntax error wasn't an obvious clue to me so I would have gone in circles for a while, I suspect. Thanks so much for the quick insight!
Donna
|
 |
 |
|