vividona Posted November 2, 2008 Share Posted November 2, 2008 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. Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/ Share on other sites More sharing options...
JasonLewis Posted November 2, 2008 Share Posted November 2, 2008 Your sure there is no error in your code, yet it gives you an error... Please post line 19 of index.php plus about 10 lines above and 10 lines below. Or just post index.php, as long as its not to big. Maybe there is an error there... Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/#findComment-680408 Share on other sites More sharing options...
vividona Posted November 2, 2008 Author Share Posted November 2, 2008 plz check it in attachements [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/#findComment-680415 Share on other sites More sharing options...
dezkit Posted November 2, 2008 Share Posted November 2, 2008 $classname = "BHL_login"; $path = "classes/{$classname}.php"; try{ #line 19 if ( ! file_exists( $path ) ) { throw new Exception( "No such file as {$path}" ); } What the hell is "try{" supposed to be? A function? Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/#findComment-680453 Share on other sites More sharing options...
PFMaBiSmAd Posted November 2, 2008 Share Posted November 2, 2008 So, what version of php is your online server? Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/#findComment-680460 Share on other sites More sharing options...
vividona Posted November 2, 2008 Author Share Posted November 2, 2008 Oooh My God my PHP verion is 4.4.8 so it is not works Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/#findComment-680462 Share on other sites More sharing options...
PFMaBiSmAd Posted November 2, 2008 Share Posted November 2, 2008 Your web host should have a method to switch to php5, either through your control panel or by putting a command in a .htaccess file. Link to comment https://forums.phpfreaks.com/topic/131051-my-simple-script-refused-to-installed/#findComment-680463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.