public static void WriteLog(string msg) {
            using (System.IO.StreamWriter reader = new System.IO.StreamWriter(System.Web.HttpContext.Current.Server.MapPath("~/log.txt"), true, Encoding.UTF8)) {
                reader.WriteLine(msg + "\t" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            }
        } 
我绝望了 不设断点了 写在记事本算了 php的io不熟 那位大侠把这个转成等效的php代码啊