Code:
Code: Select all
<?php
require_once 'Crypt/GPG.php';
$gpg = new Crypt_GPG();
$gpg->addEncryptKey('dummy@dummy.com');
// you can use any fopen-able stream
$gpg->encryptFile('http://dummy.com/', './file.html.asc');
#echo Complete<p>;
$file = file_get_contents('./file.html.asc', true);
echo $file;Code:
Code: Select all
[Fri Oct 30 16:51:20 2009] [error] [client 24.243.34.79] PHP Warning: require_once(Crypt/GPG.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/vhosts/dummy.com/httpdocs/enrollment/encrypt.php on line 3
[Fri Oct 30 16:51:20 2009] [error] [client 24.243.34.79] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Crypt/GPG.php' (include_path='.:/usr/share/pear') in /var/www/vhosts/dummy.com/httpdocs/enrollment/encrypt.php on line 3This is on Redhat and Plesk.