Illegal Offset means what?
Got a couple of errors on it. The error messages are:
Warning: Illegal offset type in /home/poison1/public_html/wp-content/themes/thesis_17/custom/custom_functions.php on line 25 Warning: setcookie() expects parameter 1 to be string, object given in /home/poison1/public_html/wp-content/themes/thesis_17/custom/custom_functions.php on line 28
function setcookielive($name="Believe_Adwords", $value=1, $expire=0, $path="/", $domain=".nickholliday.com", $secure=false, $httponly=false) {
//set a cookie as usual, but ALSO add it to $_COOKIE so the current page load has access
$_COOKIE[$name] = $value;
$expire=time()+3888000;
$value=$_GET['gclid'];
return setcookie($name,$value,$expire,$path,$domain,$secure,$httponly);
} I'm not even sure what an illegal offset is! Any help would be greatly appreciated.
yes, I am....