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

Reply

Join Date: May 2007
Posts: 3
Reputation: mnavarro is an unknown quantity at this point 
Solved Threads: 0
mnavarro mnavarro is offline Offline
Newbie Poster

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

 
0
  #1
May 23rd, 2007
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

  1. <?php
  2. include_once('../lib/Tar.php');
  3.  
  4. $tar_object = new Archive_Tar("../files/tarFiles/test.tar");
  5.  
  6. if (($v_list = $tar_object->listContent()) != 0) {
  7. for ($i=0; $i<sizeof($v_list); $i++) {
  8. echo "Filename :'".$v_list[$i]['filename']."'<br>";
  9. echo " .size :'".$v_list[$i]['size']."'<br>";
  10. echo " .mtime :'".$v_list[$i]['mtime']."' (".
  11. date("l dS of F Y h:i:s A", $v_list[$i]['mtime']).")<br>";
  12. echo " .mode :'".$v_list[$i]['mode']."'<br>";
  13. echo " .uid :'".$v_list[$i]['uid']."'<br>";
  14. echo " .gid :'".$v_list[$i]['gid']."'<br>";
  15. echo " .typeflag :'".$v_list[$i]['typeflag']."'<br>";
  16. }
  17. }
  18. ?>

When i try to run the script i get the following errors

Warning: 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!!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC