Forum Moderators: coopster
Parse error: parse error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /Applications/xampp/htdocs/sites/firestar/inc/buildfiles/config.cfg.php on line 23
And here's the code:
<?php
// this is the main config file!
// make sure that this is out of public_html!// localhost vars
define(LPATH,"/sites/firestar");
define(LHOST,"1");
//define(LPATH,"");
// run a security check
if (!strstr($_SERVER['HTTP_HOST'],"...") && LHOST!= "1") {
// send to site if not from the site!
header("Location: http://...".$_SERVER['REQUEST_URI']);
}
// define goto
define(GOTO,$_GET['goto']);
// define get (for pop ups, sandbox, etc...)
define(GET,$_GET['get']);
// define id (for news, etc...)
define(ID,$_GET['id']);
// set cookies
// set no more intro cookie
if ($_SERVER['QUERY_STRING'] == "nomoreintro") {
// set the cookie
setcookie("intro","no",time()+"259200");
// take to homepage
unset(GOTO); define(GOTO,"index");
}
I think that error is telling me that I can't unset(GOTO)!
try this thread
[webmasterworld.com...]
ahmedtheking, once a constant is defined, it can never be changed or undefined, nor can it be unset(). unset() is for variables and a CONSTANT [php.net] is not a variable.