The PHP code causing the problem is
Code: Select all
<?php
//********** minicart init **********
if(!isset($minicart))
{
if(isset($_GET['minicart'])){
$minicart = array(unserialize(stripslashes($_GET['minicart']))) ;
}else{
$minicart = array() ;
}
}
$sminicart = serialize($minicart) ;
//************************************
//********** value init **********
if(isset($_GET['value'])){
$value = $_GET['value'] ;
}else{
$value = 'none' ;
}
//********************************
$minicart[] = $value ;
$minicart = array_values($minicart) ;
include('index.php') ;
?>
Code: Select all
$minicart[] = $value
I've tried searching for a solution, but with no joy.
Anybody have any ideas how to fix this?
P.S This code worked perfectly on localhost, but only failed when uploaded to a real web server