Jump to content

VMWare executing a PHP script.


none

Recommended Posts

Not sure exactly where this belongs, but the deal is, I have a PHP sms geteway script that when I run the script it will send me an sms, and depending on the $_GET variables it will send me a specific message. The script sits on an apache webserver.

 

I need to have this run as a VMWare alarm in VIC(which runs on a management server which is win xp). At the moment I am doing it very dodgy and having it run this script:

 

c:\windows\system32\cmd.exe /c c:\alarm.bat "xxx Server is offline"

 

Then in that bat file it's something like:

 

iexplore http://path.to/php/sms/script.php?msg=%

 

Now it kind of works, but I know there must be a better way of doing this, currently after the script runs 3 or 4 times, it stops working.

 

Does anyone have any ideas as to how to remotely execute a php script from a windows application.

 

Any help is much appreciated,

Cheers.

Link to comment
https://forums.phpfreaks.com/topic/180528-vmware-executing-a-php-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.