Running a PHP script from Email Parser

December 15, 2014
We recently have received a message from an user asking if it is possible to run a PHP script in the program. We will share it here (with the permission of the sender) as we think it is useful for other users:
Can the Email Parser also call a PHP script or run it within it?
And our answer goes here:
You can call any external program (such as PHP) using a kind of process called “Run command under Windows Command Prompt” or “Run external program” and using this command line:
C:\php\php.exe C:\path_to_the script\thescript.php
And if what you want is to run the PHP script in another server, Do this:
C:\wget\wget.exe https://www.theserver.com/thephpscript.php
  Wget is an external tool (widely used in Unix environments) to perform an HTTP request from the command line. It is also available for Windows.

© 2008-2021   FrozenFrog Software    PAD file     Privacy Policy & Terms of Use