我需要通过PHP下载文件ftp_get(),但是愚蠢的提供程序正在使用包含空格的目录和文件名。.我正在处理的文件路径类似于/product info/more stuff/inventory and stuff.csv
路径和文件名本身中的空格使检索任何内容变得困难。我已经尝试了以下方法,但没有成功:
$path = "/product\ info/more\ stuff/inventory\ and\ stuff.csv";
$path = "/product%20info/more%20stuff/inventory%20and%20stuff.csv";
$path = '"/product info/more stuff/inventory and stuff.csv"';
再次感谢您抽出宝贵时间来帮助我。