homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Help with this script

Msg#: 4274227 posted 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"



WebmasterWorld Senior Member 10+ Year Member

Msg#: 4274227 posted 11:57 pm on Feb 28, 2011 (gmt 0)

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.


Msg#: 4274227 posted 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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved