Re: Using GPG in Safe Mode
| From: | Edwin Barrios | Date: | Tue, 17 Jan 2006 12:55:12 +0000 |
| Subject: | Re: Using GPG in Safe Mode | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228708@lists.php.net to get a copy of this message | ||
Hi emil !
If you are using gnupg comand line, there is not way on PHP-safe mode.
The only way that i know to wrap around this problem it's install
pecl extension package calls gnupg (http://pecl.php.net/package/gnupg). This
extension use libgpgme that bind all gnupg comand line options, then it
don't have problems with safe mode.
i don't know if this tips it's useful in your case, but it's the only
solutions that i know.
On 1/16/06, emil@vanster.nu <emil@vanster.nu> wrote:
>
>
> Hello,
>
> My ISP have php set for safe mode. And now I'm trying to run gpg from php..
>
> Basically I'm trying to run this from exec():
> echo "testar testar" | /usr/local/bin/gpg --homedir /home/myuser/ .gnupg
> -a --always-trust --batch --no-secmem-warning -e -u "Test Test
> <test@test..com>" -r "Test Test <
> test@test.com>"
>
> When I run it from cli myself it works fine, but it fails when I run it
> from php. Are there anyway I can get this to work?
>
> Sorry if this is OT or an obvious question.
>
> /Regards Emil
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>