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 311 and here is the code for the config file: <?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"; ?> PHP: Many thanx in advance.
This is the line 311: \$cfg['FRaqars_db_Host'] = "$n_servr"; // your database hostname Note: i didnt get any problem when i installed the script on webserver, i don know why this happen on local WAMP server?
Could be the line above it maybe or it could be because wamp is on windows and your webserver is linux.
yeh the wamp on windows and the webserver is linux...I attached the full install file cause the text exceed the limit kindly take a look
Remove these lines from the file /** * معلومات قاعدة البيانات وروابط الموقع */ If that doesn't work I'm not really sure.
Unless it's a typo here... this: \$cfg['FRaqars_db_Host'] = "$n_servr"; // your database hostname needs to be: \\$cfg['FRaqars_db_Host'] = "$n_servr"; // your database hostname and I forgot on the wamp setup and the config but usually in php it's like this: // to comment something out
Doesn't work buddy i get the script from somebody it was working properly on my lenux web-server and on appache local-server as well without any problem, but i need to install the script on WAMP server and it's wont working there and always give me Parse error: syntax error, unexpected T_VARIABLE on line 311 i don't know why ??? please advice