Jump to content

Which version of PHP for Windows CLI based use?


Recommended Posts

I need to run some PHP scripts from the command line on a Windows 2003 server. The server has Apache/Tomcat installed on it, but NOT PHP. The server is running a custom commercial web application and I don't want to touch the Apache/Tomcat configuration on it. We are looking to setup some schedule PHP cURL tasks that we'd run from the Windows task scheduler. Can someone point me to the right download for this? Please be specific: which version? thread-safe, non-thread safe? VC6? VC9? Also, what, if anything else would be need to properly execute cURL in this context?

Link to comment
Share on other sites

For just CLI purposes I'd go with a VC9 build that is non-thread-safe of whatever the most recent version of php is (5.4.3 atm).

 

There is no need for thread safety in CLI since each instance is it's own separate process, and VC9 is a more recent compiler.  As far as cURL goes all you should need to do is load the extension dll via the php.ini file settings.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.