disoversecrets Posted July 6, 2008 Share Posted July 6, 2008 Hello ??? Have a problem with php script installation. Script url. http://www.interactivebookingsystems.com/Restaurant/install/install.php Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ibs/public_html/Restaurant/includes/config.php on line 41 Any help here would be so much appreciated Thanks Here is the config.php <?php /* $Id: config.php.new,v 1.0 2007-12-23 09:34:26-08 dad Exp dad $ */ // vim: expandtab sw=4 ts=4 sts=4: ######################################################################## ## Built2Go PHP Restaurant Review v1.0 ## ## ---------------------------------------------------------------- ## ## Copyright © Big Resources, Inc. All Rights Reserved. ## ## This software must be used in accordance with its licensing ## ## terms and conditions at: http://www.built2go.com/faq.php ## ## ## ## This file may not be redistributed in whole or significant part. ## ## ---------------- BUILT2GO IS NOT FREE SOFTWARE ----------------- ## ######################################################################## ########## ******** FULL PATH TO DIRECTORY ****** ############ ### On a few systems it may be necessary to input the full path to your install directory ### for the script to function normally. You can ignore this setting unless Built2go ### tells you to fill this in. Do not include a trailing slash! ### Example Unix: ### $config['Misc']['sitepath'] = '/home/users/public_html/site'; ### Example Win32: ### $config['Misc']['sitepath'] = 'c:\program files\apache group\apache\htdocs\site'; ################################################ $config['Misc']['sitepath'] = ''; // ****** DATABASE TYPE ****** // This is the type of the database server on which your Built2go database will be located. // Valid options are mysql and mysqli. Try to use mysqli if you are using PHP 5 and MySQL 4.1+ $config['Database']['dbtype'] = 'mysql'; // ****** DATABASE NAME ****** // This is the name of the database where your inforamtion will be located. // This must be created by your webhost. $config['Database']['dbname'] = "ibs_rest''; // ****** TABLE PREFIX ****** // Prefix that your tables have in the database. $config['Database']['tableprefix'] = "ibs_rest ''; // ****** MASTER DATABASE SERVER NAME AND PORT ****** // This is the hostname or IP address and port of the database server. // If you are unsure of what to put here, leave the default values. $config['MasterServer']['servername'] = 'localhost'; $config['MasterServer']['port'] = 3306; // ****** MASTER DATABASE USERNAME & PASSWORD ****** // This is the username and password you use to access MySQL. // These must be obtained through your webhost. $config['MasterServer']['username'] = "ibs_rest''; $config['MasterServer']['password'] = "sovclass08''; // ****** MASTER DATABASE PERSISTENT CONNECTIONS ****** // This option allows you to turn persistent connections to MySQL on or off. // The difference in performance is negligible for all but the largest boards. // If you are unsure what this should be, leave it off. (0 = off; 1 = on) $config['MasterServer']['usepconnect'] = 0; $config['Misc']['debug'] = true; // ****** COOKIE PREFIX ****** // Prefix that your cookies will have. // defaults to b2g. $config['Misc']['cookieprefix'] = ''; // ****** The following options are only needed in special cases ****** // ****** MySQLI OPTIONS ***** // When using MySQL 4.1+, MySQLi should be used to connect to the database. // If you need to set the default connection charset because your database // is using a charset other than latin1, you can set the charset here. // If you don't set the charset to be the same as your database, you // may receive collation errors. Ignore this setting unless you // are sure you need to use it. // $config['Mysqli']['charset'] = 'utf8'; // Optionally, PHP can be instructed to set connection parameters by reading from the // file named in 'ini_file'. Please use a full path to the file. // Example: // $config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini'; $config['Mysqli']['ini_file'] = ''; // Image Processing Options // Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings. $config['Misc']['maxwidth'] = 500; $config['Misc']['maxheight'] = 500; $config['Misc']['maxthumb'] = 105; // max thumbnail width // image max file size. Default for php is 2mb. 2048kb $config['Misc']['maxsize'] = 2048; $config['Misc']['image_ext'] = array("jpg","jpeg","gif","png","bmp"); // image format accepted $config['Misc']['image_format'] = array("image/jpg","image/jpeg","image/pjpeg","image/gif","image/png","image/bmp"); // audio / video file formats $config['Misc']['audio_ext'] = array("mp3","mid","midi","wav","m3u","ram","rm","wma"); $config['Misc']['video_ext'] = array("mov","mpeg","avi","rm","wmv"); // video / audio format accepted $config['Misc']['vid_aud_format'] = array("video/x-ms-wmv","audio/x-pn-realaudio","video/avi","application/x-shockwave-flash","video/x-flv","video/mpeg","audio/midi","audio/wav","audio/mpeg","video/quicktime","video/x-msvideo","audio/x-mpegurl"); // sets the session cleanup. 0=on and 1=off $config['Misc']['sessioncleanup'] = 1; Quote Link to comment Share on other sites More sharing options...
TashaAT Posted July 6, 2008 Share Posted July 6, 2008 Try $config['Database']['tableprefix'] = "ibs_rest" ''; Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 6, 2008 Share Posted July 6, 2008 Change $config['Database']['tableprefix'] = "ibs_rest ''; The closer is two single quotes to $config['Database']['tableprefix'] = "ibs_rest"; The closer is one double quote You have exactly the same problem with $config['MasterServer']['username'] = "ibs_rest''; Easily spotted once the script is shown with code tags here. Quote Link to comment Share on other sites More sharing options...
disoversecrets Posted July 7, 2008 Author Share Posted July 7, 2008 Hello AndyB Thank you for your reply. Have tried changed the codes. Still has same error message. Here is the changed config.php <?php /* $Id: config.php.new,v 1.0 2007-12-23 09:34:26-08 dad Exp dad $ */ // vim: expandtab sw=4 ts=4 sts=4: ######################################################################## ## Built2Go PHP Restaurant Review v1.0 ## ## ---------------------------------------------------------------- ## ## Copyright © Big Resources, Inc. All Rights Reserved. ## ## This software must be used in accordance with its licensing ## ## terms and conditions at: http://www.built2go.com/faq.php ## ## ## ## This file may not be redistributed in whole or significant part. ## ## ---------------- BUILT2GO IS NOT FREE SOFTWARE ----------------- ## ######################################################################## ########## ******** FULL PATH TO DIRECTORY ****** ############ ### On a few systems it may be necessary to input the full path to your install directory ### for the script to function normally. You can ignore this setting unless Built2go ### tells you to fill this in. Do not include a trailing slash! ### Example Unix: ### $config['Misc']['sitepath'] = '/home/users/public_html/site'; ### Example Win32: ### $config['Misc']['sitepath'] = 'c:\program files\apache group\apache\htdocs\site'; ################################################ $config['Misc']['sitepath'] = ''; // ****** DATABASE TYPE ****** // This is the type of the database server on which your Built2go database will be located. // Valid options are mysql and mysqli. Try to use mysqli if you are using PHP 5 and MySQL 4.1+ $config['Database']['dbtype'] = 'mysql'; // ****** DATABASE NAME ****** // This is the name of the database where your inforamtion will be located. // This must be created by your webhost. $config['Database']['dbname'] = "ibs_rest''; // ****** TABLE PREFIX ****** // Prefix that your tables have in the database. $config['Database']['tableprefix'] = "ibs_rest"; // ****** MASTER DATABASE SERVER NAME AND PORT ****** // This is the hostname or IP address and port of the database server. // If you are unsure of what to put here, leave the default values. $config['MasterServer']['servername'] = 'localhost'; $config['MasterServer']['port'] = 3306; // ****** MASTER DATABASE USERNAME & PASSWORD ****** // This is the username and password you use to access MySQL. // These must be obtained through your webhost. $config['MasterServer']['username'] = "ibs_rest"; $config['MasterServer']['password'] = "sovclass08''; // ****** MASTER DATABASE PERSISTENT CONNECTIONS ****** // This option allows you to turn persistent connections to MySQL on or off. // The difference in performance is negligible for all but the largest boards. // If you are unsure what this should be, leave it off. (0 = off; 1 = on) $config['MasterServer']['usepconnect'] = 0; $config['Misc']['debug'] = true; // ****** COOKIE PREFIX ****** // Prefix that your cookies will have. // defaults to b2g. $config['Misc']['cookieprefix'] = ''; // ****** The following options are only needed in special cases ****** // ****** MySQLI OPTIONS ***** // When using MySQL 4.1+, MySQLi should be used to connect to the database. // If you need to set the default connection charset because your database // is using a charset other than latin1, you can set the charset here. // If you don't set the charset to be the same as your database, you // may receive collation errors. Ignore this setting unless you // are sure you need to use it. // $config['Mysqli']['charset'] = 'utf8'; // Optionally, PHP can be instructed to set connection parameters by reading from the // file named in 'ini_file'. Please use a full path to the file. // Example: // $config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini'; $config['Mysqli']['ini_file'] = ''; // Image Processing Options // Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings. $config['Misc']['maxwidth'] = 500; $config['Misc']['maxheight'] = 500; $config['Misc']['maxthumb'] = 105; // max thumbnail width // image max file size. Default for php is 2mb. 2048kb $config['Misc']['maxsize'] = 2048; $config['Misc']['image_ext'] = array("jpg","jpeg","gif","png","bmp"); // image format accepted $config['Misc']['image_format'] = array("image/jpg","image/jpeg","image/pjpeg","image/gif","image/png","image/bmp"); // audio / video file formats $config['Misc']['audio_ext'] = array("mp3","mid","midi","wav","m3u","ram","rm","wma"); $config['Misc']['video_ext'] = array("mov","mpeg","avi","rm","wmv"); // video / audio format accepted $config['Misc']['vid_aud_format'] = array("video/x-ms-wmv","audio/x-pn-realaudio","video/avi","application/x-shockwave-flash","video/x-flv","video/mpeg","audio/midi","audio/wav","audio/mpeg","video/quicktime","video/x-msvideo","audio/x-mpegurl"); // sets the session cleanup. 0=on and 1=off $config['Misc']['sessioncleanup'] = 1; Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 7, 2008 Share Posted July 7, 2008 Take a really close look at your code as posted here. You are using two single quotes where you need a double quote ... ' and ' are NOT the same as " Fix ALL instances of those errors and then tell us what happens. And please wrap your posted code in code tags here in future. If you have an error, don't just tell us it's the same error; give the full error message and if it refers to a specific line, identify that line in your code - it only takes you a few seconds. That way, more people are likely to take the time to help you. Quote Link to comment Share on other sites More sharing options...
revraz Posted July 7, 2008 Share Posted July 7, 2008 Funny how this is not "Free" software yet it contains all those errors. If you are really paying for that script, you should inform them of these problems. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.