Hi,
Is there a way to run a PHP script hosted on a server from Power Automate?
Just opening the script would be enough, although passing parameters would be excellent.
Thank you.
Hey @WebPortal -
There is no action in Power Automate that can help you run a PHP Script you would need to create an Azure Function and then Invoke your script from Power Automate.
PHP is also not supported in Power Automate Desktop -
If Power Automate desktop is an option then you can try to invoke a PHP using PowerShell - https://stackoverflow.com/questions/18964392/how-can-i-to-run-php-script-from-powershell-commandline#:~:text=Open%20powershell%20and%20type%20c,are%20up%20and%20running%2C%20whoot.&text=Type%20env%20into%20os%20search%20(cortana)%20and%20select%20environmental%20variables.&text=Now%20you%20can%20run%20php,php%20%2Dh%20to%20test)
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
There are ways to set up scripts & call them from Logic Apps & Azure, but I don’t know of a way to do that more directly in Power Automate other than passing the script to a GPT action so their code interpreter can run it.
@CFernandesand @takolota
Thank you. I have ran an HTTP request action in Power Automate that points to the PHP script and it worked as expected. It is a simple GET method and I can pass the parameters to the script.
Ah okay. If you only need to run a PHP webpage for some users, then you can use the HTTP action as a web server as described here: https://youtu.be/ePwHNz4laRQ
Your original request sounded more like you wanted to run some commands in PHP & return the output to the flow.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 462 Super User 2025 Season 2
Tomac 456 Moderator
abm abm 243 Most Valuable Professional