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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Run PHP script from Power Automate

(0) ShareShare
ReportReport
Posted on by 2,297

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:
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    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,980 Moderator on at

    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,297 on at

    @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,980 Moderator on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard