Jump to content

Need help with syntax error


marketinggallery

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/79609-need-help-with-syntax-error/
Share on other sites

<?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.

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

 

 

-------------------------------------------------

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'); 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.