neginf Posted July 2, 2013 Share Posted July 2, 2013 Hope to have PHP installed on a Windows / IIS computer soon. Have read that 1. a non thread safe version should be used, 2. FastCGI should be used. Is this right ? Do any precautions need to be made for web programming with a non thread safe version ? Quote Link to comment Share on other sites More sharing options...
kicken Posted July 2, 2013 Share Posted July 2, 2013 FastCGI is the most appropriate setup for IIS, and due to how CGI works there are not any threads so the non-thread-safe version of PHP is ideal. As far as precautions to be taken, the only thing off hand would be if you are trying to setup a script that multiple people use to read/write from a set file. You'd need to use proper file locking to prevent any corruption due to one process reading and another writing. Note that this is not something a thread-safe version of php would fix, thread safety is an entirely different and unrelated issue. The above usually isn't an issue, as if you find yourself wanting to do that, you should just be using a database instead. When using a database, then the DB server will handle all the locking/concurrent access protections for you. Quote Link to comment Share on other sites More sharing options...
neginf Posted July 3, 2013 Author Share Posted July 3, 2013 Thank you very much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.