NC: Trigger occ manual update by simple script / without command line access

Automated updating failed and i would like to try a manual update according to the explanation below - the problem is that my hoster does not give me access to command line / no ssh. My idea is to execute the update occ commands by a locat script - e.g.
“sudo -u www-data php occ upgrade” and modification of the memory limits

Any ideas how i could integrate the commands in a local php script or .htaccess and exceute it by browser? so far i did not succeed with my limited php knowledge …

Thanx - #PHPNEWBEE

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html#troubleshooting

You can try this (adapt the occ command accordingly):

Thank you Bernie - this should help!