need to generate fixed-length file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm having trouble generating a fixed-length (i.e., non-delimited) file format out of PHP 4, based on queries out of MySQL. These files are getting imported into a Unidata database and require a very specific byte-mapping format. However, while the fopen used with length will TRUNCATE to a specific length, it also won't pad to that length.

Is there a function I'm missing somewhere that will let you specify a field length and pad accordingly? If not, any suggestions as to approach will be greatly appreciated!

Many thanks,
Karen Goeller

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux