Since HostGator does not support changing the value of always_populate_raw_post_data in PHP to “1″, I had to find a work around. After spending an hour Googling my issue and it turning zero-dot-zero results I was forced into being creative.
Appearantly you can use the input wrappers to go around this setting. Perhaps you could find this useful in the future
| 1 2 3 4 5 6 7 8 9 | <php if(!$HTTP_RAW_POST_DATA){ $HTTP_RAW_POST_DATA = file_get_contents(’php://input’); if(empty($HTTP_RAW_POST_DATA)) { // die here } } |

Posted in