{"comment":{"created_at":"2011-10-22T10:09:40Z","body":"Thanks Minh!\r\n\r\nSiteroller (other github user) has reimplemented a getallheaders for PHP-CGI, but I replaced this piece of code for other based in your code for security and scalability questions.\r\n\r\nI have update the code, Can you tested this new code in your PHP-CGI webserver?","updated_at":"2011-10-22T10:09:40Z","url":"https://api.github.com/repos/juanparati/MooUpload/issues/comments/2489316","id":2489316,"user":{"gravatar_id":"cb07e9f9668439094d304ba48718a5b6","avatar_url":"https://secure.gravatar.com/avatar/cb07e9f9668439094d304ba48718a5b6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/juanparati","id":835173,"login":"juanparati"}},"action":"created","issue":{"number":13,"created_at":"2011-10-22T00:44:31Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\nFirstly, thank you for created a awesome upload tool.\r\nThen I found a minor issue. You used getallheaders() function to read header from request. But you know, currently almost shared webserver use PHP-CGI version 5.2.x and that function doesn't work. The getallheaders function only available in php module mode (almost version of PHP).\r\n\r\nI had to modify like this bellow:\r\n\tif (function_exists('getallheaders')) {\r\n\t\t$headers \t= getallheaders();\r\n\t}\r\n\telse {\r\n\t\t$headers = array();\r\n\t\t$headers['X-File-Id'] \t\t= $_SERVER['HTTP_X_FILE_ID'];\r\n\t\t$headers['X-File-Name'] \t= $_SERVER['HTTP_X_FILE_NAME'];\r\n\t\t$headers['Content-Length'] \t= $_SERVER['CONTENT_LENGTH'];\r\n\t\t$headers['X-File-Resume'] \t= $_SERVER['HTTP_X_FILE_RESUME'];\r\n\t\t$headers['X-File-Size'] \t= $_SERVER['HTTP_X_FILE_SIZE'];\r\n\t}\r\n\r\nIt works for me.\r\nThank you.\r\nMinh","comments":1,"title":"Mooupload Class - getallheader","updated_at":"2011-10-22T10:09:40Z","url":"https://api.github.com/repos/juanparati/MooUpload/issues/13","id":2020945,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"a815471f9c4c70aec976f100c9d86113","avatar_url":"https://secure.gravatar.com/avatar/a815471f9c4c70aec976f100c9d86113?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/minhna","id":1144332,"login":"minhna"},"html_url":"https://github.com/juanparati/MooUpload/issues/13","labels":[],"state":"open"},"legacy":{"issue_id":2020945,"comment_id":2489316}}