help on settings.php

Started by gigz09, July 26, 2008, 09:25:41 AM

Previous topic - Next topic

gigz09

help me with this sirs...

i moved my SMF 1.1.5 forum to another server.. the only thing that i know is to change the settings.php to match the database present  on my new server.. oh i forgot.. i also backup my old database and import it.. with same database name and user.. i change the first line of database eg.. gzxtup_smf to gzxlab_smf.. as well as its password..
but i got this error

Parse error: syntax error, unexpected T_STRING in /home/gzxlab/public_html/electronicstup/Settings.php on line 36

i cant figure it where it is.. hope that you can help me with this.. TIA
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

N3RVE

Welcome to SMF, gigz09 :)
First of all, Please upload and run repair_settings.php (What is repair_settings.php?)
Confirm that the presented information is correct, the recommended values right below each field usually serve right.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

gigz09

thanks for the reply sir.. i already do it.. but when i save the settings i got the same error.. but now in line 35.. i set the settings in recommended settings...
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

gigz09

ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

N3RVE

#4
Please attach the file(s) generating these errors here (and their errors),
remember to censor your connection info in Settings.php

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

gigz09

Quote<?php
/**********************************************************************************
* Settings.php                                                                    *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/

########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!  Change it to 0 to fix it.
$maintenance = '0';      # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode';      # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';      # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname = 'Electronics TUP - Home of TUP Electronics Student';      # The name of our forum.
$language = 'english';      # The default language file set for the forum.
$boardurl = 'http://electronicstup.gzxlab.com';      # URL to your forum's folder.
(without the trailing /!)
$webmaster_email = '[email protected]';      # Email address to send emails from. (like [email protected].)
$cookiename = 'SMFCookie11';      # Name of the cookie to set for authentication.

########## Database Info ##########
$db_server = 'localhost';
$db_name = 'xxxx_smf';
$db_user = 'xxxx_smf';
$db_passwd = 'xxxx';
$db_prefix = 'smf_';
$db_persist = '0';
$db_error_send = 1;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = '/xxxx/electronicstup';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/xxxx/Sources';      # Path to the Sources directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 0;

# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
   $boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
   $sourcedir = $boarddir . '/Sources';

$db_character_set = 'utf8';
?>
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

Dragooon

Change this
    $boardurl = 'http://electronicstup.gzxlab.com';      # URL to your forum's folder.
    (without the trailing /!)

With
    $boardurl = 'http://electronicstup.gzxlab.com';      # URL to your forum's folder.(without the trailing /!)

gigz09

yikeeee.. thanks sir dragooon ^_^
ONYX is a non-profit, voluntary initiative of Filipino computer, electronics and software engineers. It was launched on July 2007 in Manila, Philippines. The initial idea is to create a broad organization where the Open Source and Open Content volunteers and professionals can exchange their ideas and embark on new initiatives. In the last year after formation ONYX has matured into an independent organization with partnerships with other Open Source based organization and individuals.

Visit ONYX - Pinoy Open Source Technologies

N3RVE

Great :D Marking this solved.
This shouldn't have been moved to a new line.
(without the trailing /!)

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

Advertisement: