killthesilencex
New member
error upon accessing localhost: Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\includes\config.php on line 32
Thanks
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
||
# http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
||
# PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/
/*-------------------------------------------------------*\
|****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
|
If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/
//****** MASTER DATABASE SETTINGS ******
//
These are the settings required to connect to your Database.
$conn['main']['prefix'] = "cms_";
$conn['main']['server'] = "mysql"; //mysql, pgsql, sqlite, or mssql
$conn['main']['host'] = "localhost"; //filename for SQLite
$conn['main']['port'] = "3306";
$conn['main']['username'] = "root";
$conn['main']['password'] = "password";
$conn['main']['database'] = "holodb";
//****** HOTEL DATABASE SETTINGS ******
// EXPERIMENTAL!! Only turn this on if you know what to do. Please submit all
// bugs and your fix for them (if possible) to http://code.google.com/p/phpretro
//These are the settings required to connect to your hotel database Database.
$conn['server']['enabled'] = false;
$conn['server']['server'] = "mysql"; //mysql, pgsql, sqlite, or mssql
$conn['server']['host'] = "localhost"; //filename for SQLite
$conn['server']['port'] = "3306";
$conn['server']['username'] = "root";
$conn['server']['password'] = "password";
$conn['server']['database'] = "holodb";
?>
That is fixed now, however two other errors appear:
Warning: Unterminated comment starting line 2 in C:\xampp\htdocs\includes\config.php on line 2
Fatal error: Class name must be a valid object or a string in C:\xampp\htdocs\includes\core.php on line 30
I have fixed these errors, thank-you to both of you! Much appreciated
Thanks
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
||
# http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
||
# PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/
/*-------------------------------------------------------*\
|****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
|
If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/
//****** MASTER DATABASE SETTINGS ******
//
These are the settings required to connect to your Database.
$conn['main']['prefix'] = "cms_";
$conn['main']['server'] = "mysql"; //mysql, pgsql, sqlite, or mssql
$conn['main']['host'] = "localhost"; //filename for SQLite
$conn['main']['port'] = "3306";
$conn['main']['username'] = "root";
$conn['main']['password'] = "password";
$conn['main']['database'] = "holodb";
//****** HOTEL DATABASE SETTINGS ******
// EXPERIMENTAL!! Only turn this on if you know what to do. Please submit all
// bugs and your fix for them (if possible) to http://code.google.com/p/phpretro
//These are the settings required to connect to your hotel database Database.
$conn['server']['enabled'] = false;
$conn['server']['server'] = "mysql"; //mysql, pgsql, sqlite, or mssql
$conn['server']['host'] = "localhost"; //filename for SQLite
$conn['server']['port'] = "3306";
$conn['server']['username'] = "root";
$conn['server']['password'] = "password";
$conn['server']['database'] = "holodb";
?>
That is fixed now, however two other errors appear:
Warning: Unterminated comment starting line 2 in C:\xampp\htdocs\includes\config.php on line 2
Fatal error: Class name must be a valid object or a string in C:\xampp\htdocs\includes\core.php on line 30
I have fixed these errors, thank-you to both of you! Much appreciated