| | |
HELP! I get an erro when including PEAR.php file
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2007
Posts: 3
Reputation:
Solved Threads: 0
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
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!!
php Syntax (Toggle Plain Text)
<?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']."'<br>"; echo " .size :'".$v_list[$i]['size']."'<br>"; echo " .mtime :'".$v_list[$i]['mtime']."' (". date("l dS of F Y h:i:s A", $v_list[$i]['mtime']).")<br>"; echo " .mode :'".$v_list[$i]['mode']."'<br>"; echo " .uid :'".$v_list[$i]['uid']."'<br>"; echo " .gid :'".$v_list[$i]['gid']."'<br>"; echo " .typeflag :'".$v_list[$i]['typeflag']."'<br>"; } } ?>
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!!
![]() |
Similar Threads
- Need help with changing the index.php file (Existing Scripts)
- What does the go-pear.phar file do. (PHP)
- Can we execute command line cmds from a php file?? (PHP)
- PHP file calling html control names (PHP)
- PHP5x,Apache2.2 : Apache not reading php file (PHP)
- PHP file displaying wrongly ??? (PHP)
- Get the name of the current php file (PHP)
Other Threads in the PHP Forum
- Previous Thread: Need way to use php without a server.
- Next Thread: help with preg match
| Thread Tools | Search this Thread |
.htaccess access alexa apache api array beginner binary broken cakephp checkbox class cms code convert cron curl database date directory display dropdown dynamic echo email encode error fairness file files folder form forms function functions google hack href htaccess html htmlspecialchars image include indentedsubcategory insert ip javascript joomla limit link login mail mail() menu methods mlm multiple multipletables mysql network newsletters object oop passwords paypal pdf php problem provider query radio random recursion redirect remote script search secure securephp server sessions simple sms source space sql syntax system table tutorial update upload url user validator variable video voteup web youtube





