Just like mysql to mysqli conversions, mssql to sqlsrv conversions are a time consuming task. They are not simply copy and paste changes, they require you to rewrite most of the handling to do it right.
Moving from PHP forum to unknown sized requests. Chances are you won't get someone to convert these for free.
header('HTTP/1.1 420 Enhance Your Calm');