SILENT KILLERPanel

Current Path: > > opt > cloudlinux > alt-php55 > root > usr > share > doc > pear > Archive > docs


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/alt-php55/root/usr/share/doc/pear/Archive/docs

NameTypeSizeLast ModifiedActions
CREDITS File 229 bytes December 18 2019 11:18:59.
LICENSE File 1570 bytes December 18 2019 11:18:59.
example.php File 1473 bytes December 18 2019 11:18:59.
tutorial.txt File 5078 bytes December 18 2019 11:18:59.
tutorial_autoload.php File 495 bytes December 18 2019 11:18:59.
tutorial_directories.php File 390 bytes December 18 2019 11:18:59.
tutorial_extract.php File 532 bytes December 18 2019 11:18:59.
tutorial_iterator.php File 298 bytes December 18 2019 11:18:59.
tutorial_read_only.php File 383 bytes December 18 2019 11:18:59.
tutorial_recursive.php File 949 bytes December 18 2019 11:18:59.
tutorial_replacing.php File 390 bytes December 18 2019 11:18:59.

Reading File: //opt/cloudlinux/alt-php55/root/usr/share/doc/pear/Archive/docs/example.php

<?php
/**
 * @package Archive
 */

// Add "MyDirectory" to a new archive: myArchive.tar
// [ tar -cf myArchive.tar MyDirectory ]

$ar = new Tar( "myArchive.tar" );
$ar->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" );
?>

SILENT KILLER Tool