OT: Linux - convert csv to xlsx and xlsx to csv

Fairlight fairlite at fairlite.com
Fri Mar 30 12:18:48 PDT 2018


On Fri, Mar 30, 2018 at 02:11:56PM -0500, Richard D. Williams via Filepro-list thus spoke:
> # Please note the arguments MUST be enclosed in quotes
> #i.e. /usr/bin/php /var/www/html/convert_xlsx.php "/tmp/file.xlsx"
> "/tmp/file.csv"

The only times that's true about quotes is if there are spaces or shell
meta-characters in the filename.  The PHP script itself will never see
the quotes, as the shell consumes them before passing along arguments in
execve().

'MUST' is a large misnomer in this case.  It's arguably a best practise,
but it's -not- mandatory outside of special conditions.

mark->
-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list