Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
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 * [ ...] If redistributing this code, eclipse.org * 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" => "firstname.lastname@example.org" ); ); ?>
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