Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ZAKS Web API Documentation ====== <code bash> #!/bin/bash if [[ -z ${1} ]]; then echo "Give an extension name..." exit 1 fi declare -a errors versions=($(ls -1 /etc/php)) while [[ $# -gt 0 ]]; do for version in ${versions[@]}; do echo -n "Installing php${version}-${1}..." apt -y install php${version}-${1} > /dev/null 2>&1 if [[ $? == 0 ]]; then echo "INSTALLED!" else echo "FAILED!" errors+=("php${version}-${1}") fi done shift done echo echo echo if [[ ${#errors[@]} -gt 0 ]]; then echo "The following extensions failed to install:" echo ${errors[@]} | tr ' ' '\n' exit 1 else echo "Everything installed without a hitch!" fi </code> <code json> { "status": 200, "result": "ok", "data": { "this_key": "This value!", "that_key": true, "the_other_key": 3.14 }, "array": [ "one", "two", "three" ] } </code> start.txt Last modified: 2025/08/11 08:22by ZAKS Web