problem:

tried to install qdig photo gallery on my IIS box - however it returned an error like:

...

PHP Notice: Undefined variable: HTTP_GET_VARS in C:\inetpub\qdig3\index.php on line 578 PHP Notice: Undefined variable: HTTP_POST_VARS in C:\inetpub\qdig3\index.php on line 579 PHP Notice: Undefined variable: HTTP_COOKIE_VARS in C:\inetpub\qdig3\index.php on line 580 PHP Warning: array_merge() [function.array-merge]:

...

 

solution:

in your php.ini:

register_long_arrays = On

 and restart iis from the cmd line with iisreset

 

 annotation:

testscript.php: 

<?php

echo($HTTP_GET_VARS);

?>

must execute with no errors.

 

note:

this might have a performance overhead as php.ini says: "... If you're not using them, it's recommended to turn them off, ...for performance reasons."