954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

HELP! I get an erro when including PEAR.php file

Im trying to handle .tar files with the PEAR Archive_Tar library, so i added the library directly to my lib directory on the website im developing and i copied a script to make a test which is the following

<?php
include_once('../lib/Tar.php');

$tar_object = new Archive_Tar("../files/tarFiles/test.tar");

if (($v_list  =  $tar_object->listContent()) != 0) {
    for ($i=0; $i<sizeof($v_list); $i++) {
        echo "Filename :'".$v_list[$i]['filename']."'";
        echo " .size :'".$v_list[$i]['size']."'";
        echo " .mtime :'".$v_list[$i]['mtime']."' (".
             date("l dS of F Y h:i:s A", $v_list[$i]['mtime']).")";
        echo " .mode :'".$v_list[$i]['mode']."'";
        echo " .uid :'".$v_list[$i]['uid']."'";
        echo " .gid :'".$v_list[$i]['gid']."'";
        echo " .typeflag :'".$v_list[$i]['typeflag']."'";
   }
}
?>


When i try to run the script i get the following errorsWarning: require_once(PEAR.php) [ function.require-once ]: failed to open stream: No such file or directory in C:\wamp\www\airbus_wkpk\modules\home\lib\Tar.php on line 21

Fatal error: require_once() [ function.require ]: Failed opening required 'PEAR.php' (include_path='c:\wamp\php\PEAR') in C:\wamp\www\airbus_wkpk\modules\home\lib\Tar.php on line 21

I have looked for the file PEAR.php on the whole server folder but havent find it i dont really know what is happening here

Any idea??

Thanks on advance!!

mnavarro
Newbie Poster
3 posts since May 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You