apache - PHP: /public_html/index.php NOT working, and Bluehost support has no idea why -


my problem this: website cannot access index.php script file. not access default. not access if type explicitly. can, however, access login.php script file contained in different directory. here contents of .htaccess file

# use php5.4 default addhandler application/x-httpd-php54 .php 

here first 11 lines of /public_html/index.php script file:

<? session_start(); echo 'index start'; exit; include $_server['document_root'] . 'library/library.php'; if($_session['logged_in'] === 'true'){ //nothing.... }else{ $_session['logged_in'] = 'false' } 

the support personnel @ bluehost said there error on line 11 }. (forgive me, forgot copy error exactly.)

i'm not complete novice @ php. understand exit; on line 4 should prevent error happening. @ complete loss.

<? session_start(); echo 'index start'; exit; include $_server['document_root'] . 'library/library.php'; if($_session['logged_in'] === 'true'){   //nothing.... }else{   $_session['logged_in'] = 'false'; } 

notice ; in else condition.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -