What am i doing wrong?

Please help me, im confused. All seems right but the problem is, the counter shows the number from the textfile, but the counter does not increment every visit.

Here is what i have


FLASH FILE
http://www.samzsitez.com/pic.jpg - its a pic of what i have in general (17kb)
open above picture first

action frame # 1 -
loadVariables ("counter.php3", "_root.digit");

action frame # 2 -
loadVariables ("counter.txt", "_root.digit");

action frame # 12 -
gotoAndPlay (2);


PHP3 FILE

<?php $fd = fopen("counter.txt", "w");
fwrite($fd, "count=$count++");
fclose($fd); ?>


TXT FILE

count=1


My text fields have the correct variables. It loads the number no problem. I think its the php3 file since my counter.txt doesnt increment.

i have chmod the files correctly.

What am i doing wrong? can you help me?