Primesc urmatoarea eroare : Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in public_html/installer/index.php on line 27 ma poate ajuta cineva <?php @set_time_limit( 0 ); define( "DS", DIRECTORY_SEPARATOR ); define( "BaseUrl", dirname( dirname( __FILE__ ) ) ); if ( $_SERVER['SCRIPT_NAME'] != "" ); { $add = $_SERVER['SCRIPT_NAME']; $parts = explode( "/", $add ); array_pop( $parts ); array_pop( $parts ); $origadd = implode( "/", $parts ); } $site_name = "http://".$_SERVER['HTTP_HOST']; $site_name = trim( $site_name, "/" ); $site_name = $site_name.$origadd."/"; $admin_site_name = $site_name."manager/"; include_once( BaseUrl.DS."includes".DS."db_inc.php" ); if ( defined( "INSTALLED" ) ) { header( "location:".$site_name ); exit( ); } define( "IS_ENV_PRODUCTION", true ); define( "DS", DIRECTORY_SEPARATOR ); error_reporting( E_ALL | E_STRICT ); ini_set( "display_errors", !IS_ENV_PRODUCTION ); if ( isset( "_POST" ) && $_POST['submit'] == "submit" ) { $db_host = trim( $_POST['host'] ); $db_name = trim( $_POST['database_name'] ); $db_pass = trim( $_POST['database_password'] ); $db_user = trim( $_POST['database_user'] ); $flag = 0; exit( "Database connection error: Please check the host name, user name and password you provided" ); if ( TRUE ) { if ( mysql_select_db( $db_name, $con ) ) { $message .= "Successfully connected to database<br>"; $flag = 1; } else { $message .= "Database connection error: Please check the database name you provided<br>"; } } else { $message .= "Database connection error: Please check the host name, user name and password you provided<br>"; } if ( $flag == 1 ) { $fp = fopen( BaseUrl.DS."includes".DS."db_inc.php", "w" ); $string = "<?php"; $string .= "\n"; $string .= "error_reporting(E_ALL | E_STRICT);\n"; $string .= "ini_set('display_errors', 0);\n"; $string .= "define('DS',DIRECTORY_SEPARATOR);\n"; $string .= "\$DB_HOST="."'{$db_host}';\n"; $string .= "\$DB_USER="."'{$db_user}';\n"; $string .= "\$DB_PASS="."'{$db_pass}';\n"; $string .= "\$DB_NAME="."'{$db_name}';\n"; $string .= "\$siteName="."'{$site_name}';\n"; $string .= "\$AdminSiteName="."'{$admin_site_name}';\n"; $string .= "\$basefilepath=".( "dirname(dirname(__FILE__)).DS;\n" ); $string .= "define('INSTALLED','1');\n"; $string .= "?>"; if ( fwrite( $fp, $string ) ) { $message .= "configuration file successfully created.<br>"; } else { echo "unable to write to config file. Please check the file permission of includes/db_inc.php<br>"; } $file_content = file( BaseUrl.DS."installer".DS."filecash.sql" ); $query = ""; $sql = explode( ";", file_get_contents( BaseUrl.DS."installer".DS."filecash.sql" ) ); foreach ( $sql as $query ) { mysql_query( $query ); } $message .= "Database tables successfully created.<br>"; $message .= "Please remove the install folder. After you are done with removing the folder, please click <a href='{$site_name}'>here</a> to go to home page"; } echo $message; } else { echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<title>Untitled Document</title>\n</head>\n\n<body>\n<form method=\"post\" action=\"\">\n<table border=\"1\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\n\t\n\t<tr>\n \t<th colspan"; echo "=\"2\">Database Info</th>\n </tr>\n \n \n <tr>\n \t<td>Host:</td>\n <td><input type=\"text\" name=\"host\" value=\""; echo $_POST['host']; echo "\" /></td>\n </tr>\n \n <tr>\n \t<td>Database Name:</td>\n <td><input type=\"text\" name=\"database_name\" value=\""; echo $_POST['database_name']; echo "\" /><br />\n <p>Please create the database first if you have not created it already.</p>\n </td>\n </tr>\n \n <tr>\n \t<td>Database User:</td>\n <td><input type=\"text\" name=\"database_user\" value=\""; echo $_POST['database_user']; echo "\" /></td>\n </tr>\n \n <tr>\n \t<td>Database Password:</td>\n <td><input type=\"text\" name=\"database_password\" value=\""; echo $_POST['database_password']; echo "\" /></td>\n </tr> \n \n <tr>\n \t<td></td>\n <td><input type=\"submit\" name=\"submit\" value=\"submit\" /></td>\n </tr> \n \n \n</table> \n</form>\n</body>\n</html>\n"; } ?>