not sure where this error is coming from

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bruceg
Forum Contributor
Posts: 174
Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:

not sure where this error is coming from

Post by bruceg »

the error is

Parse error: syntax error, unexpected '=' in /hsphere/local/home/bruceg/inspired-evolution.com/config.php on line 7

and the code is

Code: Select all

<?php
/////////////////////////////////////////////////////////
// CONFIGURATION OPTIONS
// Change the settings below in order to set this
// thing up for your particular site
/////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////
// DATABASE SETTINGS
$msg = "";

//Setup the username, password and database name.
$user="username";
$password="password";
$db ="data_base_name";

//Make a link to the database, then test the connection. If it cant link, due to bad username
//password, permissions, whatever, kill the process.
$link=mysql_connect("localhost", "username", "password");
if (!$link) die ("cant connect to mysql");

//select the database once connected.
mysql_select_db($db, $link) or die ("cannot connect");

////////////////////////////////////////////////////////
// VARIABLES USED THROUGHOUT THE MAILING LIST

// $list_owner_site_name - 
$list_owner_site_name = "Inspired Evolution";

// $list_owner_domain_name - 
$list_owner_www.domain.com = "www.inspired-evolution.com";

// $list_owner_full_url
$list_owner_full_url = "http://www.inspired-evolution.com";

// $list_owner_name - =
$list_owner_name = "Bruce Gilbert";

// $list_owner_email_address - 
$list_owner_email_address = "webguync@gmail.com";

// $list_owner_wants_confirmation - do you want a confirmation message for each recipient when you send mail to your list?
$list_owner_wants_confirmation = "true";

// $validate_oppress - how hardcore do you want your e-mail validation? Enter an integer between 1-5, with 5 being most hardcore. I recommend '2'
$validate_oppress = 2;

// LOGIN STUFF

// What is your username? - don't leave this as 'username'
$config_username = "username";

// What is your password? - 
$config_password = "password";

// After people login, where do you want them to go? 
$success_destination = "admin.php";

// $current_url - DO NOT CHANGE THIS
$current_url = $_SERVER['PHP_SELF'];

?>
anyone see where the error is?

thanks!
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

The problem is:

Code: Select all

$list_owner_www.domain.com = "www.inspired-evolution.com";
You cannot use '.' (period) in a variable name. Check out the manual to learn how to name variables: http://us2.php.net/manual/en/language.variables.php
Post Reply