I am currently trying to install my script on WAMP server but i have faced the following error:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in C:\wamp\www\inv2\install\index.php on line 313
and here is the code for the config file:
[php]$varbl_content = <<< HTM
<?php /** * معلومات قاعدة البيانات وروابط الموقع */ \$cfg['FRaqars_db_Host'] = "$n_servr"; // your database hostname \$cfg['FRaqars_db_User'] = "$u_db"; // your database username \$cfg['FRaqars_db_Pass'] = "$ps_db"; // your database password \$cfg['FRaqars_db_Name'] = "$n_db"; // your database name \$sitePATH="$s_path"; \$siteURL="$s_url"; \$CoockeSite = "$s_url"; \$ADMINFOLDER="$setup_admin_folder"; \$ADMINHOMEPG="index.php"; ?>HTM;
if (file_writer($CONFIG_FILE,$varbl_content)) {
if (file_exists ($CONFIG_FILE) && is_writeable($CONFIG_FILE)){
chmod ($CONFIG_FILE, 0666);
}
include("$CONFIG_FILE");
[/php]
plz advice