GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Dec-2006, 07:35
candice candice is offline
New Member
 
Join Date: Dec 2006
Posts: 2
candice is on a distinguished road
Wink

parse error


Hi Boys !!

HELP !!!!!!

I'm desperatley trying to solve a prob and I hope you can help me asap??

When going to log-in I get following message :-

Parse error: parse error, unexpected T_STRING in /home/totalor/public_html/seo/affconfig.php on line 41

my affconfig.php as follows :-

(I've changed password etc for xxxxxxxxx) just while on here..........HELP !!!

PHP Code:

<?PHP 

//-------------------------------------------------------------------------------
// CONFIGURATION OPTIONS
//-------------------------------------------------------------------------------
// Your domain name (include www. if used BUT NOT [url]http://)[/url]
$domain = "xxxxxxxxx";  

// Your MySQL server address (usually 'localhost') 
$server  = "localhost";
  
// Your MySQL database username
$db_user = "xxxxxxxxx";
  
// Your MySQL database password
$db_pass = "xxxxxxxxx";

// Your MySQL database name
$database = "xxxxxxxxxxx";

// The currency that your affiliates will be paid in
$currency = "US Dollars"; 

// Your email address
$emailinfo = "xxxxxxxxxxxx";
 
// Your sites name
$yoursitename = "xxxxxxxxxxxx";

// language of control panel (only eng.php so far)
$language = "eng.php";

// cookie expiration in days. If 0, it is "unlimited" (set to 10 yrs)
$cookieExpiration = 0; 

// cookie path, should be always '/'
$cookiePath = '/';

// you can set it to '.totalorg.net' if you wnt cookie 
// to be available also on subdomains
$cookieDomain = ''www.xxxxxxxxxx"; 

// whether to display debug message during sale registration
// activate it by setting it to true
$debugMessage = false;


//-------------------------------------------------------------------------------
// DO NOT MODIFY ANYTHING BELOW THIS POINT UNLESS
// YOU KNOW WHAT YOU ARE DOING
//-------------------------------------------------------------------------------
$clientdate             = (date ("Y-m-d")); // Do Not Touch 
$clienttime        = (date ("H:i:s")); // Do Not Touch 
$clientbrowser    = getenv("HTTP_USER_AGENT"); // Do Not Touch 
$clientip        = $HTTP_SERVER_VARS['REMOTE_ADDR']; // Do Not Touch 
$clienturl        = getenv("HTTP_REFERER"); // Do Not Touch 

// helper functions
function aff_check_security()
{
  if(!isset($_SESSION['aff_valid_user']) || $_SESSION['aff_valid_user']=='')
    return false;
  else
    return true;
}

function aff_admin_check_security()
{
  if("!isset($_SESSION['aff_valid_admin']) || $_SESSION['aff_valid_admin']=='')
    return false;
  else
    return true;
}

function aff_redirect($url, $time = 0)
{
  echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"$time;URL=$url\">";
  echo "If you will be not redirected within few seconds click <a class=leftLink href=$url>".here.'</a>';
}
?>

Last edited by LuciWiz : 03-Dec-2006 at 04:42. Reason: Please insert your Php code between [php] & [/php] tags
  #2  
Old 02-Dec-2006, 10:20
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 926
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: parse error


When copied to a text editor, the left side of the assignment to $cookieDomain has two single quote characters instead of one double quote. (at line 41)

Also, you may find trouble with the if's in the lower functions.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 02-Dec-2006, 21:36
candice candice is offline
New Member
 
Join Date: Dec 2006
Posts: 2
candice is on a distinguished road

Re: parse error


Thanks for your help !!!

I've been looking over and over again , but could'nt find anything.....
I think you have saved my job and christmas bonus !!

THANK YOU
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
Winsock error when compiling FLTK 2.0 Projects mauriciorossi FLTK Forum 3 16-Aug-2005 10:18
Help with syntax errors PeteGallo C Programming Language 7 08-Aug-2005 20:30
What is "Ambigious symbol" ??*( a compilation error) small_ticket CPP / C++ Forum 2 07-Jan-2005 21:10
Can enum have same name as class? crystalattice CPP / C++ Forum 3 08-Dec-2004 16:43

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:57.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.