Shared object on server side?

[SIZE=4]hi every body , i just have known about shared object class , it is really so usefull, [/SIZE]
[SIZE=4]the problem is that : flash movie cannot save info. on the internet ,- it save it just on PC -[/SIZE]
[SIZE=4][/SIZE]
[SIZE=4]e.g. if i wonna make some movie in my site that add No. “1” when any visitor open my site ( as a visitors counter) , i cannot do that with shared object class , [/SIZE]
[SIZE=4][/SIZE]
[SIZE=4]so, please help me in doing that :drool: [/SIZE]

You can do that with some simple server-side script as PHP… for only visitors counter there is no need for databases and stuff… just increase a value writen in a text file.

For getting the number of visitors to flash use loadVariables… something like loadVariables(“count.php”, this);
It will be later accessible in visitsNumber variable

then create count.txt on the server and count.php sould look something like here

<?

$filename = "count.txt";

$handle = fopen($filename, "r+");
$visitors_count = fread($handle, filesize($filename)) + 1;
fwrite($handle, $visitors_count);
echo "visitsNumber=\"$visitors_count\"";

?>

thanks a lot Mathew for ur reply

bu tas i thought , flash cannot do it alone, what abity:wasted:

thanks a lot again