Php + flash

ok i hava a swf file with 2 textfiled :
-subject
-body

now i want to save this text to txt file (data.txt) so I use this script:


<? 
$plik = "data.txt"; 
$file = @fopen($plik,"r"); 
fseek($file,2,SEEK_SET); 
$tmp = @fread($file,filesize($plik)); 
@fclose($file); 
$file2 = @fopen($plik,"w"); 
fwrite($file2, "a= <B>$subjec</B><BR>$body<BR><BR>$tmp"); 
@fclose($file2); 
?> 

Ok now the problem … i cant save web adress corectly … when i want to save for example the text:

please visit my new site : www.myhomepage.com

in txt file this text look :

please visit my new site : <a href=‘http://www.myhomepage.com’>www.myhomepage.com</a>

but it schould :

href=‘http://www.myhomepage.com’>www.myhomepage.com</a>

any ideas ?

sorry for my english :x

OK Whole problem is in file :

thx