PHP 7 fputcsv() Function not creating file in PHP Posted June 27, 2019 I'm trying to understand fputcsv, but I can not I've pasted the code here: https://www.w3schools.com/php7/func_filesystem_fputcsv.asp into a file an uploaded it here: https://askerspeiderne.no/lastned.php But nothing happens when I reload the page. I thought it would create and download a CSV. What is wrong? The code, the browser, the server? fputcsv <?php $list = array ( array("Peter", "Griffin" ,"Oslo", "Norway"), array("Glenn", "Quagmire", "Oslo", "Norway") ); $file = fopen("contacts.csv","w"); foreach ($list as $line) { fputcsv($file, $line); } fclose($file); ?> Please help me!
PHP 7 fputcsv() Function not creating file
in PHP
Posted
I'm trying to understand fputcsv, but I can not
I've pasted the code here: https://www.w3schools.com/php7/func_filesystem_fputcsv.asp
into a file an uploaded it here: https://askerspeiderne.no/lastned.php
But nothing happens when I reload the page. I thought it would create and download a CSV.
What is wrong? The code, the browser, the server?
Please help me!