Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Help with this script



10:23 pm on Feb 28, 2011 (gmt 0)

Hi all I need a little help with the following script below not massive on php but keep getting T-VARIABLE ERROR.


* Copyright (c) 2008- Samuli Järvelä
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* [eclipse.org...] If redistributing this code,
* this entire header must remain intact.

/* For configuration instructions, see ReadMe.txt or wiki page at [code.google.com...] */


$DB_HOST = "localhost";/* optional, default is "localhost" */
$DB_DATABASE = "lucywood_mf1";/* optional, default is "mollify" */
$DB_USER = "lucywood_mf2";
$DB_PASSWORD = "strepsils20";

$SETTINGS = array(
"timezone" => "Europe/London"// change this to match your timezone
$PLUGINS = array(
"LostPassword" => array()

$SETTINGS = array(
"enable_mail_notification" => TRUE
$SETTINGS = array(
"mail_notification_from" => "admin@yourhost.com"


11:57 pm on Feb 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

T_VARIABLE often means a missing semicolon, or an unmatched parenthesis. It definitely does in your case.

Have you tried a PHP syntax check? On the command line it looks like the following example. If you're unfamiliar with CLI, there are PHP syntax checkers that work with many text editors.

php -l scriptname.php

Your errors are on line 27 and 37.


9:08 pm on Mar 1, 2011 (gmt 0)

Hi there the problem i have is that im not brilliant with php i am having to resort to trial error could you show me please how to correct this issue.

many thanks


Featured Threads

Hot Threads This Week

Hot Threads This Month