User Profile

Collapse

Profile Sidebar

Collapse
hyungKim
hyungKim
Last Activity: Feb 6 '13, 04:24 PM
Joined: Jan 9 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to process batch of rar files archived at one time using single php script

    Am using this script but am unable unrar the rar files please any one help me...
    Code:
    <?php
    for ($k=0;$k<6;$k++)
    $entries=array("file1.rar","file2.rar","file3.rar","file4.rar");
    
    $rar_file = rar_open('$entries[k].rar') or die("Can't open Rar archive");
    
    $entries = rar_list($rar_file);
    
    
    foreach ($entries as $entry) 
    {
    ...
    See more | Go to post
    Last edited by hyungKim; Jan 21 '13, 05:21 PM.

  • hyungKim
    started a topic how to rar files unrar through php script
    in PHP

    how to rar files unrar through php script

    Code:
    <?php
    $rar_arch = RarArchive::open('', '');
    if ($rar_arch === FALSE)
        die("Failed opening file");
        
    $entries = $rar_arch->getEntries();
    if ($entries === FALSE)
        die("Failed fetching entries");
    
    echo "Found " . count($entries) . " ";
    
    if (empty($entries))
        die("No valid entries found.");
    ...
    See more | Go to post

  • how to automatically extract all rar files recursively from a top directory in gmail

    Code:
    <?php
    function scanDirectories($rootDir, $allowext, $allData=array()){
        $dirContent = scandir($rootDir);
        foreach($dirContent as $key => $content){
            $path = $rootDir.'/'.$content;
         $ext = substr($content, strrpos($content, '') + 1);
          if(in_array($ext, $allowext)) {
                if(is_file($path) && is_readable($path)){
                    $allData[] = $path;}
    ...
    See more | Go to post
    Last edited by acoder; Jan 13 '13, 09:32 PM. Reason: Please use [code][/code] tags when posting code.

  • Able to rar files but doesn't Expand. java.io.IOException: unexpected EOF

    <project name="Reports_A utomate" >
    <untar src ="D:\Projects\f ilename.rar" dest="${D:\Proj ects}"/>
    </project


    OUTPUT: shows like this
    Code:
    Buildfile: D:\Projects\20121119.xml
        [untar] Expanding: D:\Projects into D:\Projects\sohyper\workspace\Reports_Automate\Unzip\${D:\Projects\sohyper\workspace\Reports_Automate\Unzip}
        [untar] Unable to expand to file D:\Projects\sohyper\workspace\Reports_Automate\Unzip\${D:\Projects\sohyper\workspace\Reports_Automate\Unzip}\Rar!
    ...
    See more | Go to post
    Last edited by acoder; Jan 11 '13, 06:44 PM. Reason: Put output in [code][/code] tags

  • hyungKim
    replied to How to unrar the rar files through ANT script
    in XML
    Hi i used this script .. bulid faild

    <?xml version="1.0" encoding="UTF-8"?>
    <project name="Reports_A utomate" >
    <untar dest="D:\Projec ts\....">
    <fileset dir="D:\Project s\.......">
    <include name="*filesnam e*.rar"/>
    </fileset>

    </untar>...
    See more | Go to post

    Leave a comment:


  • hyungKim
    started a topic How to unrar the rar files through ANT script
    in XML

    How to unrar the rar files through ANT script

    Hi i really trying this extract the rar for through ant script ... nearly 3 days till now i didn't get proper result any one please help me.....


    Thanks,
    Hyung.
    See more | Go to post
No activity results to display
Show More
Working...