php - How do I get fwrite() to not print to the page? -
i'm using fwrite()
write file, however, every time runs, prints of information webpage it's on , writes file, too. i'd rather not echo page.
alright, i've retrieved code. here is:
fwrite($data_file, "confirmation data: \r\n\r\n song: " . $input_song . "\r\nfile1: " . $file_var1 . "\r\nfile2: " . $file_var2 . "\r\nfile3: " . $file_var3 . "\r\nfile4: " . $file_var4 . "\r\nexplanation text: " . $input_explanation);
whenever run this, outputs in second place of fwrite()
onto page, outputs follow onto page, except variables replaced values:
confirmation data: \r\n\r\n song: " . $input_song . "\r\nfile1: " . $file_var1 . "\r\nfile2: " . $file_var2 . "\r\nfile3: " . $file_var3 . "\r\nfile4: " . $file_var4 . "\r\nexplanation text: " . $input_explanation
you should post code, can follow echoing out code html in php file , why prints out on screen.
Comments
Post a Comment