#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0

    Launching PHP script from .exe file


    I need to create a exe file for a client which need to run a PHP script to transfer data between 2 different servers. The exe will be one server and will be set to run as scheduled job in windows system.

    Please let me know how to create the exe file and run php script from their.
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,179
    Rep Power
    9398
    Will that .exe do anything besides run a PHP script? If not then why not just make the script be the one in the scheduled task?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    2
    Rep Power
    0
    Hello requinix,

    Thank you for your quick reply.

    The exe will only run PHP script.
    My client wants it to be a .exe file, so a solution to this would be helpful.

    Do let me know how to set a PHP script to be scheduled task in windows system.
  6. #4
  7. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,179
    Rep Power
    9398
    Can you tell them that it's stupid to make an .exe whose only purpose is to run a PHP script? Really, really stupid. It's like sending an envelope inside a shipping crate.

    I know they're the client but you are the developer and they have to be able to accept advice from you.

IMN logo majestic logo threadwatch logo seochat tools logo