Results 1 to 2 of 2
Thread: Trouble Accessing PEAR Items
Apr 26, 2007, 10:23 #1
- Join Date
- Oct 2005
- Nashville, TN
- 0 Post(s)
- 0 Thread(s)
Trouble Accessing PEAR Items
I'm trying to setup Amazon S3 for hosting some videos and I'm using their s3 class.
Unfortunately over a year of developing with PHP I've never been forced to use PEAR.
I'm all setup but the script isn't able to access the Crypt HMAC package that I installed via ssh. It's there because when I try to install it again it says that "It's already installed".
I'm not familiar with PEAR but have read Sitepoints article on the subject.
My script is giving me the following error when trying to access the PEAR package:
Warning: s3::s3(Crypt/HMAC.php) [function.s3]: failed to open stream: No such file or directory in /var/www/vhosts/***.com/httpdocs/includes/s3.class.php on line 217
Fatal error: s3::s3() [function.require]: Failed opening required 'Crypt/HMAC.php' (include_path='.:') in /var/www/vhosts/***.com/httpdocs/includes/s3.class.php on line 217
Can anyone tell me how to possibly fix this?
Apr 26, 2007, 13:59 #2
- Join Date
- Jul 2005
- West Springfield, Massachusetts
- 187 Post(s)
- 2 Thread(s)
The error message sounds to me more like a resource problem than a problem finding package files. Is this error from running the test file included with the package?
/* This test file implements the three test vectors as described in
* RFC 2104 (http://rfc.net/rfc2104.html) */
$key = str_repeat(chr(0x0b), 16);
$crypt = new Crypt_HMAC($key, 'md5');
echo $crypt->hash('Hi There')."\n";
$key = 'Jefe';
echo $crypt->hash('what do ya want for nothing?')."\n";
$key = str_repeat(chr(0xaa), 16);
$data = str_repeat(chr(0xdd), 50);