Hello,
I'm doing a special web stats page for my website and I need to work out the users resolution and store it to a text file via php. The actionscript works, it stores the record to the text file but doesnt create any more records. It just keeps overwriting the same record! I need the php, I believe to make a line after creating a record. Any pointers?
My php code...
<?php
$fd = fopen("resolution.txt", "w");
fwrite($fd, "resolutiony=" . $_GET['resolutiony']);
fclose($fd);
?>
My actionscript
onClipEvent (Load) {
resolutiony = System.capabilities.screenResolutionY;
resolutionx = System.capabilities.screenResolutionX;
mysend=new LoadVars();
whereto="resolution.php?resolutiony="+resolutiony+ "resolutionx="+resolutionx;
mysend.load(whereto);
}
Thanks!!!