Monthly Archives: September 2010

Exporting to CSV or TSV with PHP

Exporting to a CSV (comma-separated values) or TSV (tab-separated values) file with PHP is relatively simple with the combined use of: Content headers Formatted Printing Below, I'll show you an example which combines the two elements above with a database … Continue reading

Posted in PHP | Tagged , | 2 Comments

ColdFusion PDF Exports

ColdFusion 7 and up makes it extremely easy to generate PDFs on the fly using the CFDocument tag, but it only offers the option of saving to a file, or streaming to the browser. If you want additional control, combine … Continue reading

Posted in ColdFusion | Tagged | 1 Comment

ColdFusion CFZip file permissions

Those familiar with the CFZip tag know that it doesn't offer the "mode" attribute as CFFile does. This presents a problem when storing a zip file on the file system, especially when the need arises to overwrite that zip file. … Continue reading

Posted in ColdFusion | Tagged , | Leave a comment