web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Run PHP script from Po...
Power Automate
Unanswered

Run PHP script from Power Automate

(0) ShareShare
ReportReport
Posted on by 2,295

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.

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at
    Re: Run PHP script from Power Automate

    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 -

     

    CFernandes_0-1690128428902.png

    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.

  • takolota1 Profile Picture
    4,974 Moderator on at
    Re: Run PHP script from Power Automate

    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.

  • WebPortal Profile Picture
    2,295 on at
    Re: Run PHP script from Power Automate

    @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.

  • Verified answer
    takolota1 Profile Picture
    4,974 Moderator on at
    Re: Run PHP script from Power Automate

    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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard