PHP - Parse error:unexpected T_STRING;

software development

#1

I get a [color=#0000CC]Parse error: parse error, unexpected T_STRING in /home/.lake/my_id_name_here/elainenimo.com/test/index.php on line 37
[/color]

Is there something wrong with my paths in the includes or is this a bigger issue with the server? Do I need to be messing with the .htaccess?

I tried puttingthis for the include path & stil didn’t work:
include ([color=#CC6600]’$_SERVER[‘DOCUMENT_ROOT’][/color]/test/home.php’);

This is the code that resulted in that error message:

<?php $id = $_GET['page']; switch ($id) { case "about": include('/test/about.php'); Ê Ê Ê break; case "contact": include('/test/contact.php'); Ê Ê Ê break; default: include('/test/home.php'); } ?>

Thanks.
Let me know.


#2

Could you post the contents of about.php?

WebID: idorosen Donate.


#3

I got it to work the next day. But thank you…

I made some changes on another version of index page [index4.php]:

Home

About

Contact

<?php $id = $HTTP_GET_VARS['id']; $extension = "php"; if ( !$id || $id == "" ) { include "home.php"; } else if ( file_exists( "$id.$extension" ) ) { include "$id.$extension"; } else { include "/nomore.php"; } ?>