I make an awfull mistake :) CONTENT-LENGTH has no HTTP_ prefix so my php is just stay it same. here is my change http://gist.github.com/505962 if (substr($key,0,5)=="HTTP_") { $key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5))))); $out[$key]=$value; }else{ $out[$key]=$value; }by hmert - How to...
Hello, I'm developing a xhr uploading script by using http://github.com/valums/file-uploader But nginx has no apache_request_headers function, and find from php.net an replicement. function _apache_request_headers() { foreach($_SERVER as $key=>$value) { if (substr($key,0,5)=="HTTP_") { $key=str_replace(" ","-",ucwords(strtolower(str_replace("_by hmert - How to...
![]() |
![]() |
![]() |
![]() |
|