file save part 2

From: Date: Sat, 08 Mar 2003 23:13:37 +0000
Subject: file save part 2
Groups: php.db 
Request: Send a blank email to php-db+get-26198@lists.php.net to get a copy of this message
I have tried a few things and I can get the file to have each line on its own line. Once again this is a roster input that I adding to our website: No, name grade ..... The roster will contain 15 players So right now the implode puts everything on one line in the text file!!! So I am no sure if anybody can shed some light on this one Thanks Ryan <? //create a new file $fp = fopen("/place/on/server/" . $HTTP_POST_VARS['team'] , "w"); $file_data = implode("\t\", $_POST); //this would return values spit by tabs //write to the open file handle fwrite($fp, $file_data . "\r\n"); //close the file fclose($fp); ?>

« previous php.db (#26198) next »