我在使用define_syslog_variables();函数时,提示错误:
Deprecated: Function define_syslog_variables() is deprecated in D:\WEBSITE\Test\test.php on line 10
请问是不是有什么新的函数代替这个函数了?为什么提示不赞成的函数?

解决方案 »

  1.   

    在php5.3 已经不建议使用
    5.3.0  This function now throws an E_DEPRECATED notice. 
      

  2.   

    define_syslog_variables() only defines global variables. Constants are already always defined, if the syslog module is loaded. You _do not_ need to call this to use the syslog constants.应该不用也可以,你试试吧。如果可以说一声