OT: Linux - convert csv to xlsx and xlsx to csv
Richard D. Williams
richard at appgrp.net
Fri Mar 30 12:25:54 PDT 2018
Mark,
Ok. After testing without the quotes, you are right.
They are not required.
But, if there are spaces in the path to the file, they would be needed.
Richard
On 3/30/2018 2:18 PM, Fairlight via Filepro-list wrote:
> 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->
More information about the Filepro-list
mailing list