[FX.php List] Search Results To Text File
BEVERLY VOTH
beverlyvoth at gmail.com
Mon Jul 13 13:11:35 MDT 2015
this is the page for fputcsv():
http://php.net/manual/en/function.fputcsv.php (as Steve W. pointed out)
There are some work-arounds for older versions of PHP (especially #7 from ifunk). Sometimes a function works in a version and sometimes not. What version of PHP is running? You can use phpinfo() to find out.
you are getting something, so that's a clue perhaps?
Beverly
On Jul 13, 2015, at 2:44 PM, VanBuskirk, Patricia <pvanbuskirk at fsu.edu> wrote:
> Hi guys, I think I’m really close. I’m getting it to create the file, but I am struggling with the format. Each field needs to have double quotes around it, as in the following example:
>
> "FSU01","RN260715","Facilities Department - MENDENHALL BUILDING A (MMA) - 969 LEARNING WAY","RN","OTC","OTC","1","OPEN","","5/19/2015","5/19/2016"
> "FSU01","RN260815","Procurement Services & Help Desk - UNIVERSITY CENTER - BLDG. A (UCA) - 282 CHAMPIONS WAY","RN","OTC","OTC","1","OPEN","","5/20/2015","5/20/2016"
> "FSU01","TSR0299915","Medicine College of Dean's Office - COM -THRASHER BLDG. 1115 W CALL ST","TSR","OTC","OTC","2","OPEN","","5/20/2015","5/20/2016"
>
> Here’s how it’s coming out now. It is putting a little square when the carriage return should be, and the fields are not being surrounded by quotation marks. I tried using the $delimiter and $enclosure parameters, but they put random quotation marks in (maybe just around text fields?). I can get it to echo to the page properly, by using … ‘”’.$field1.’”,”’.field2 … etc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20150713/7c84d3d7/attachment.html
More information about the FX.php_List
mailing list