Log in

View Full Version : my simple script refused to installed



vividona
11-02-2008, 05:26 AM
last week I made small funny article script

it worked in apache very good without errors.

but when I uploaded it in my hosting server it gave me error


Parse error: syntax error, unexpected '{' in /hsphere/local/home/vivid200/albahala.org/bhl/index.php on line 19

and refused to install.

I am sure there is no error in my codes. It works in my apache very smoothly.

also I uploaded it in a free hosting website.
and install.php worked nicely but refused to register me as member.

it gave me this error in registration form (You missed to fill some fields.).

also in Globat Server gave me blank page without error msg.

Nile
11-02-2008, 05:28 AM
I'd need to see your code but to me it looks like your missing a ')' in a while, for or if statement before your '{'.

vividona
11-02-2008, 05:53 AM
I'd need to see your code but to me it looks like your missing a ')' in a while, for or if statement before your '{'.

no, all my codes are correct

plz check attachements

Note:

if you need to check it in apache you have to save a copy for install.php bcz it is deleted automatically when installation finish.

change database information in (classes/BHL_DB) in :


public function __construct($BHL_DB_HOST="localhost", $BHL_DB_USER="root", $BHL_DB_PASS="", $BHL_DB_NAME="bhl"){
$this->BHL_DB_HOST = $BHL_HOST;
$this->BHL_DB_USER = $BHL_USER;
$this->BHL_DB_PASS = $BHL_PASS;
$this->BHL_DB_NAME = $BHL_NAME;
$this->DB_CONN($BHL_DB_HOST, $BHL_DB_USER, $BHL_DB_PASS, $BHL_DB_NAME);
$this->setHost($BHL_DB_HOST);
$this->setUser($BHL_DB_USER);
$this->setPass($BHL_DB_PASS);
$this->setDbName($BHL_DB_NAME);

}

vividona
11-02-2008, 06:07 AM
plz check attachments.

it is without pictures and without admin files bcz attachments size so narrow

vividona
11-02-2008, 08:06 AM
Oooh my God

my PHP version is 4.4.8

so it is not works