|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-07-04 09:43 UTC] sniper@php.net
[2005-07-04 09:58 UTC] derick@php.net
[2005-07-04 12:56 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 02:00:01 2025 UTC |
Description: ------------ Using either the precombiled php-cgi.exe file or using it as an Apache2 module, when I run any script that calls the function fputcsv(), it reports function not found. My PHP.INI File is the recommended one, with a change to enable automatic end of line detection. Reproduce code: --------------- Sample from PHP 5.0.4 Manual, but it fails with any script I write. <?php $list = array ( 'aaa,bbb,ccc,dddd', '123,456,789', '"aaa","bbb"' ); $fp = fopen('file.csv', 'w'); foreach ($list as $line) { fputcsv($fp, split(',', $line)); } fclose($fp); ?> Expected result: ---------------- The array should be put into a Comma Separated File. Actual result: -------------- The browser reports: Fatal error: Call to undefined function fputcsv() in test.php on line 9