This is driving me crazy. After a lot of tests, I managed to successfully run the following .sh
file in the terminal and it worked perfectly as I expected.
adt -package -target apk -storetype pkcs12 -keystore $AND_CERT_FILE -storepass $AND_CERT_PASS "$OUTPUT" "$APP_XML" -C bin . -C icons/android . -extdir lib .
echo "DONE";
I want to run this from PHP not the terminal, so I wrote the following in PHP to call the .sh
file but although PHP returned the "DONE" message, the command does not work. If I mistype the command, no errors are shown. Here's what I wrote in PHP:
$output = shell_exec("./test.sh");
echo $output;
Does anyone have any ideas?