homepage Welcome to WebmasterWorld Guest from 54.237.184.242
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
tiggz1980




msg:4274229
 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.

HELP!

<?php
/**
* 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...] */




$CONFIGURATION_PROVIDER = 'mysql';

$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"
);
);
?>

 

timster




msg:4274283
 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.

tiggz1980




msg:4274876
 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

Paul

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