Hello,
I'm trying to export data from an MSSQL Server 2000 database and populate a text file with the data with Fixed Column Widths using a PHP 5 script.
I can currently populate a csv file correctly, but I can't get the columns of the text file to stay the same Fixed Width.
I query the database, populate an array with the results and then write the results to the file. Now I need to get the values in the array to have the same field length and that's where I'm stuck.
I've looked around and can't seem to find anything on how to this work and any help would be greatly appreciated.
Thanks