-C option is ignored when calling tar via PHP

paige_marker

New Member
If I run my PHP file from the shell, then the tar command extracts to the directory I am in, rather than the one I specified using -CMy command is\[code\]passthru("tar xvf $file $tarfile/application $tarfile/application_detail $tarfile/application_device_type $tarfile/genre_application -C /var/www/vhosts/httpdocs/fred"); \[/code\]How can I have it extract the specific files to the specified destination directory?The filename is filename.tgz
 
Back
Top