[PHP] Newlines in files

2001-10-03 Thread Big5ive
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

[PHP] Warning: unexpected regex error (14)

2001-09-30 Thread Big5ive
://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

[PHP] Writing newlines in files

2001-09-23 Thread Big5ive
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