Page 1 of 1

PHP-error after transferring nuB-DB to a server

Posted: Mon Apr 18, 2011 2:06 pm
by bernhard
Hi
I created a database with nuBuilder on XAMPP. Everything was working fine. But now I transferred it on a server and get stuck.
After entering username and password I get this error message:

PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in D:\xxx\xxx\xxxx\xxx\productionnu2\common.php on line 372

Any ideas what could be missing on the server?
Unfortunately I only have access to my folder on this server.

thanks

Re: PHP-error after transferring nuB-DB to a server

Posted: Tue Apr 19, 2011 6:40 am
by admin
It might be an idea to run

Code: Select all

<?php

 phpinfo();

?>

in a php file to check your version and the server version.

the error you have suggests the server version can't handle the syntax of a class.

Code: Select all


class sqlString{

    public  $from         = '';
    public  $where        = '';

its not expecting the word public

Steven

.