PHP scripting and flash ... i just started to get into php scripting and wanted to apply it on my homepage ... what i wanted to do is to check if the user was already on my site by using cookies and then setting cookies for projects visited, things downloaded etc to be able to display an information box listing projects or info the user has not seen yet .... to start with i came up with this php script:
<?
switch($action){
case 'setCount': {
$count++;
setcookie('count', $count);
echo "&count=" . urlencode($count);
break;
}
case 'getCount': {
foreach($HTTP_COOKIE_VARS as $getCount => $count){
$getCount .= "$getCount: $count\n";
break;
}
case 'setcookies': {
setcookie($cookieName, $cookieValue);
echo '&result=okay';
break;
}
case 'getcookies': {
$cookieList="";
foreach($HTTP_COOKIE_VARS as $cookieName => $cookieValue){
$cookieList .= "$cookieName: $cookieValue\n";
}
echo "&cookieList=" . urlencode($cookieList);
break;
}
}
?>
------- after that i included following in my flash movie:
action="count";
loadVariables("scriptpath",,POST);
-------- but it didn't work -- any ideas how i can get it working
i'll be really greatful if someone could help me with this....