Jump to content

PHP exec output returns 1 what does this mean


conan318

Recommended Posts

Hi i am running a wamp server on windows 7

 

i am trying to php exec command to run a command but the output returns 1 does this mean the cmd failed to execute ?

 


$openssl_cmd = "($OPENSSL mime -sign -signer $MY_CERT_FILE -inkey $MY_KEY_FILE ".
					"-outform der -nodetach -binary <<_EOF_\n$data\n_EOF_\n) | " .
					"$OPENSSL smime"." -encrypt -des3 -binary -outform pem $PAYPAL_CERT_FILE";

just did a var_dumb of the $openssl_cmd

 


string '(c:\wamp\bin\apache\Apache2.2.21\bin\openssl.exe mime -sign -signer c:\wamp\www\freelance-pacific\pubcert.pem -inkey c:\wamp\www\freelance-pacific\prvkey.pem -outform der -nodetach -binary <<_EOF_
cmd=_xclick
[email protected]
cert_id=TY3BA373455JS6
lc=AU
custom=158
invoice=freelance-pacific
currency_code=AUD
no_shipping=1
item_name=freelance-pacific
item_number=1
amount=104.99
bn=StellarWebSolutions.PHP_EWP2

_EOF_
) | c'... (length=650)

 

var_dump on $output

 

array
  empty

 

var_dum on $error

 

int 1

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.