MRGRIM Posted January 25, 2008 Share Posted January 25, 2008 $output = "#EXTM3Un#EXTINF:".$filelength.",".urldecode($_GET['play'])."n".str_replace("/", "", urldecode($_GET['folder']))."".urldecode($_GET['play']); $newfile='live.m3u'; $file = fopen ($save_path.$newfile, "w"); fwrite($file, $output); fclose ($file); I am trying to write the $output to a file named live.m3u, however when the code executes it all ends up on the same line with a  instead of a carridge return, the text it outputs is fine and if I manually open the file and put the code on 3 lines the .m3u will open. I have tried a couple of things but I can't seem to get n to work, does anyone have any suggestions? Not sure if this should have gone into coding? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.