Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For my sins I'm currently administering a Windows Server (standard edition) box for a company. They have several python and PHP scripts set up on this box that run as scheduled tasks. Sometime over the past few weeks these scripts stopped working. I've narrowed the culprit down to the way the scripts include files.

Currently files are included in the PHP script like so:

require 'example.php';

And this is what's breaking, changing these to:

require 'C:\scripts\example.php';

works fine... Something has changed on the box that means the require calls now need an absolute path rather than a relative path.

I've Googled for this but as with most MS products the docs and support are pretty sketchy at best.

Any ideas?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.