ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙappend( "MyDirectory" ); // Show the files in the archive. // [ tar -tf myArchive.tar ] $fileListing = $ar->getList(); foreach( $fileListing as $file ) { print( "Archived file: $file\n" ); } // Append the file /etc/passwd // [ tar -rf myArchive.tar /etc/passwd ] $ar->append( "/etc/passwd" ); // Delete the directory and it's contents // [ tar -f myArchive.tar --delete MyDirectory ] $ar->delete( "MyDirectory" ); // Append another directory .. $ar->append( "AnotherDirectory" ); // .. and show detailed file permissions plus the file or directory path. $fileListing = $ar->getList(); foreach( $fileListing as $file ) { $entry = $ar->getArchivedEntry( $file ); print( $entry->getPermissionsString() ); if ( $entry->isDirectory() ) { print( " [ ".$entry->getPath()." ]\n" ); } else { print( " ".$entry->getPath()."\n" ); } } // Extract the whole archive to the tmp directory $ar->extractTo( "/tmp/" ); // Extract the passwd file to the file: /tmp/passwd-backup $ar->extractTo( "/tmp/passwd-backup", "passwd" ); // Extracting the gzipped archive: compressedTar.tgz to the tmp directory: $ar = new Tar( "compress.zlib://compressedTar.tgz" ); $ar->extractTo( "/tmp/" ); // .. and append the password file. $ar->append( "/etc/passwd" ); ?>