I have a file: email_from.txt, the content is wangzhicn@yahoo.com.cn
other file is : change_email_from.php .the code is :
if($emailFile = fopen("mail_from.txt", "r+"))
{
fwrite($emailFile, $email,strlen($hiddenEmail));
fclose($emailFile);
}
the $email is a Text Box of a Form,the Form's action is "change_email_from.php".After change_email_from.php execute. the content of email_from.txt became wangzhicn@yahoo.com.cnn.
I have try some times,the reult is the same.
Is this a bugger of fwrite()? or my useing is wrong?
Thanks for your help.