Development

Changeset 2430

You must first sign up to be able to contribute.

Changeset 2430

Show
Ignore:
Timestamp:
10/18/06 10:22:28 (2 years ago)
Author:
fabien
Message:

pake: changed directory when using php cgi

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/pake/trunk/lib/pake/pakeFunction.php

    r2429 r2430  
    416416   define('STDERR', fopen('php://stderr', 'w')); 
    417417 
     418   // change directory 
     419   if (isset($_SERVER['PWD'])) 
     420   { 
     421     chdir($_SERVER['PWD']); 
     422   } 
     423 
    418424   // close the streams on script termination 
    419425   register_shutdown_function(create_function('', 'fclose(STDIN); fclose(STDOUT); fclose(STDERR); return true;'));