AMFPHP & PHP 5.2.2 Bug

0 bug,flash,php,work  |   June 4, 2007  |     573

Hi. I am hosted on dreamhost and they recently upgraded their version of PHP5 to 5.2.2. There is a bug in PHP 5.2.2 where the $_GLOBALS[‘HTTP_RAW_POST_DATA’] never gets set, a global variable which is used by AMFPHP to read the request from the Flash application.

To fix it, edit the file gateway.php find this line of code :

and add these lines before it :

Cheers!

Comments

Leave a Reply