Using PHP to control windows applications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • henryrhenryr
    New Member
    • Jun 2007
    • 103

    Using PHP to control windows applications

    Hello!

    I'd really like my PHP content management system to be able to run a few files automatically which will update my website. The files would load with software on my system. Can PHP do this - tell a file to load as if you were writing it in the command prompt?

    The only way I could think to do it would be to have PHP write a .bat file and then to schedule those files to run. That way I could at least control which files are being scheduled.

    I can't find much with a google search but perhaps I have the wrong keywords?

    Thanks in advance!

    Henry

    (ps. system is win2k with apache 2.0 and php 5.2)
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    I think the function you are looking for is system(). There are a number of other functions that act similarly, so if this doesn't work for you, there may still be other options.

    Comment

    • henryrhenryr
      New Member
      • Jun 2007
      • 103

      #3
      Originally posted by Motoma
      I think the function you are looking for is system(). There are a number of other functions that act similarly, so if this doesn't work for you, there may still be other options.
      Thanks Motoma - that's got me on exactly the right direction - just what I needed!

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by henryrhenryr
        Thanks Motoma - that's got me on exactly the right direction - just what I needed!
        Glad you have found what you are looking for, come back if you need any more help.

        Comment

        Working...