marketinggallery Posted November 30, 2007 Share Posted November 30, 2007 Installed a pre-written script, and I’m getting this error: Parse error: syntax error, unexpected T_STRING in /blah/blah/blah/blah/includes/configure.php on line 15 Can’t seem to figure out what the problem is. Here’s the relevant code: <?php /* */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) // add your database and website details to the variables below define('DB_SERVER_USERNAME', ''); blahblah // your username that you use to log into your web server define('DB_SERVER_PASSWORD', ''); blahblah // your password that you use to log into your web server define('DB_DATABASE', ''); blahblah // your database define('DIR_FS_ADMIN', '/home/username/public_html/admin/'); blahblah // replace username with your web server username define('DIR_FS_CATALOG', '/home/username/public_html/'); blahblah define('DIR_FS_DOCUMENT_ROOT', '/home/yoursite.com/public_html/'); mysite.com define('SITE', 'www.yoursite.com'); www.mysite.com define('WWW', 'http://www.yoursite.com'); http://www.mysite.com define('HTTP_SERVER', 'http://www.yoursite.com'); http://www.mysite.com define('HTTP_CATALOG_SERVER', 'http://www.yoursite.com'); http://www.mysite.com define('DB_SERVER', 'localhost'); // you do not need to change anything below ------------------------------------- Any help would be greatly appreciated! Quote Link to comment Share on other sites More sharing options...
marcus Posted November 30, 2007 Share Posted November 30, 2007 <?php /* */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) // add your database and website details to the variables below define('DB_SERVER_USERNAME', ''); #blahblah // your username that you use to log into your web server define('DB_SERVER_PASSWORD', ''); #blahblah // your password that you use to log into your web server define('DB_DATABASE', ''); #blahblah // your database define('DIR_FS_ADMIN', '/home/username/public_html/admin/'); #blahblah // replace username with your web server username define('DIR_FS_CATALOG', '/home/username/public_html/'); #blahblah define('DIR_FS_DOCUMENT_ROOT', '/home/yoursite.com/public_html/'); #mysite.com define('SITE', 'www.yoursite.com'); #www.mysite.com define('WWW', 'http://www.yoursite.com'); #http://www.mysite.com define('HTTP_SERVER', 'http://www.yoursite.com'); #http://www.mysite.com define('HTTP_CATALOG_SERVER', 'http://www.yoursite.com'); #http://www.mysite.com define('DB_SERVER', 'localhost'); ?> you replace the values INSIDE the quotes, not out side. Quote Link to comment Share on other sites More sharing options...
marketinggallery Posted November 30, 2007 Author Share Posted November 30, 2007 changed data, now I get this error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/hostingg/public_html/7dollargallery/admin/includes/configure.php on line 13 Quote Link to comment Share on other sites More sharing options...
marcus Posted November 30, 2007 Share Posted November 30, 2007 Gotta show us code. Quote Link to comment Share on other sites More sharing options...
marketinggallery Posted November 30, 2007 Author Share Posted November 30, 2007 sorry, here it is again after the changes: <?php /* */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) // add your database and website details to the variables below define('DB_SERVER_USERNAME', blahblah''); // your username that you use to log into your web server define('DB_SERVER_PASSWORD', blahblah''); // your password that you use to log into your web server define('DB_DATABASE', blahblah''); // your database define('DIR_FS_ADMIN', '/home/myusername/public_html/admin/'); // replace username with your web server username define('DIR_FS_CATALOG', '/home/myusername/public_html/'); define('DIR_FS_DOCUMENT_ROOT', '/home/sitename/public_html/'); define('SITE', 'www.sitename.net'); define('WWW', 'http://www.sitename.net'); define('HTTP_SERVER', 'http://www.sitename.net'); define('HTTP_CATALOG_SERVER', 'http://www.sitename.net'); define('DB_SERVER', 'localhost'); // you do not need to change anything below ------------------------------------------------- Quote Link to comment Share on other sites More sharing options...
marcus Posted November 30, 2007 Share Posted November 30, 2007 Like I said before, they go inside the single quotes. <?php /* */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) // add your database and website details to the variables below define('DB_SERVER_USERNAME', 'blahblah'); // your username that you use to log into your web server define('DB_SERVER_PASSWORD', 'blahblah'); // your password that you use to log into your web server define('DB_DATABASE', 'blahblah'); // your database define('DIR_FS_ADMIN', '/home/myusername/public_html/admin/'); // replace username with your web server username define('DIR_FS_CATALOG', '/home/myusername/public_html/'); define('DIR_FS_DOCUMENT_ROOT', '/home/sitename/public_html/'); define('SITE', 'www.sitename.net'); define('WWW', 'http://www.sitename.net'); define('HTTP_SERVER', 'http://www.sitename.net'); define('HTTP_CATALOG_SERVER', 'http://www.sitename.net'); define('DB_SERVER', 'localhost'); ?> Quote Link to comment Share on other sites More sharing options...
marketinggallery Posted November 30, 2007 Author Share Posted November 30, 2007 duh! 'between the quotes' worked! Thank you very much! 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.