Revert "Change from php to bash"

This reverts commit 2ad35aca2d3a50408087f48fd225eb87d0d60746.
Use shell_exec