如果我从shell运行PHP文件,那么tar命令将解压到我所在的目录,而不是我使用-C指定的目录
我的命令是
passthru("tar xvf $file $tarfile/application $tarfile/application_detail $tarfile/application_device_type $tarfile/genre_application -C /var/www/vhosts/httpdocs/fred"); 如何让它将特定的文件解压到指定的目标目录?
文件名为filename.tgz
发布于 2010-09-08 04:02:06
目前,您拥有:
tar xvf tarfile paths... -C target将参数的顺序更改为:
tar xvf tarfile -C target paths...https://stackoverflow.com/questions/3662184
复制相似问题