$43 GRAYBYTE WORDPRESS FILE MANAGER $14

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php53/usr/share/doc/pear/Archive/docs/

HOME
Current File : /opt/alt/php53/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" );
?>

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
CREDITS
0.224 KB
18 Dec 2019 6.15 PM
root / root
0644
LICENSE
1.533 KB
18 Dec 2019 6.15 PM
root / root
0644
example.php
1.438 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial.txt
4.959 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_autoload.php
0.483 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_directories.php
0.381 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_extract.php
0.52 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_iterator.php
0.291 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_read_only.php
0.374 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_recursive.php
0.927 KB
18 Dec 2019 6.15 PM
root / root
0644
tutorial_replacing.php
0.381 KB
18 Dec 2019 6.15 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF