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";

Link to comment
Share on other sites

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
business=payments@freelance-pacific.com
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.