it sure does. I got another problem still.

When i write the file with \n as the imploder,it gives me a line of text,i want it to put each value on a diffrent line.
i have done this code :
Code: Select all
include "sql.php";
$sql = "SELECT hash FROM times WHERE time_left > 0";
$result = mysql_query($sql);
$hash = array();
$i = 0;
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
$hash[$i++] = $row['hash'];
}
$test = implode('<br>', $hash);
$write = file_put_contents('/.proxypass',$test);
print_r($write);
it shows me
249682\n980358\n492570\n506748\n388483\n573195\n657630\n960587\n332444\n984991\n167011\n786220\n241823\n360768\n891647\n814833\n229773
i expect the numbers but why isnt it putting it on a newline? If i do <br> it shows the text on the screen each on a diffrent line,but when i save it,it shows the samething except with <br>. If i just do \n without '
it says something about Ascii characters.