Asked By: Wilber Kirlin
Date created: Mon, May 31, 2021 6:18 AM
Date updated: Tue, Jul 5, 2022 4:37 AM
Top best answers to the question «How do i run a php file in bash»
9 Answers. Put that at the top of your script, make it executable ( chmod +x myscript. php ), and make a Cron job to execute that script (same way you'd execute a bash script). You can also use php myscript.