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

Link to comment
Share on other sites

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

 

 

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

Link to comment
Share on other sites

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

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.