My Code:
$PW_LIST="../config/pw.txt";
$fp=fopen("$PW_LIST","a");
fputs($fp,"$username=$pw\n");
fclose($fp);
This should make a newline after printing $username=$pw, shouldn't it!?
But it doesn't!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
://big5ive.homeip.net/BBB/members/members.txt";;
$fp=fopen("$memberlist","r");
$user=fgets($fp, 4096);
$list = split("|",$user, 3);
echo "$list[0]$list[1]$list[2]";
?>
How can i fix this error?
Content of members.txt is
Big5
ad
s=-|RWLCP\nAccess2=D:\Moviez|RLP\nAccess3=D:\Music|RLP";
fwrite($fp,$data);
fclose($fp);
That's my code and i want to make newlines in the text file..the file is
text//plain but instead of a newline there are some awesome letters..
Please help me..
--
Big5ive
--
PHP General Mailing
3 matches
Mail list logo