Home  >  Article  >  Backend Development  >  AGI调用php资料php.ini的几个有用参数

AGI调用php资料php.ini的几个有用参数

WBOY
WBOYOriginal
2016-06-13 10:30:11946browse

AGI调用php文件php.ini的几个有用参数
如果用AGI接口调用php文件时注意设置如下几个参数.(仅供参考)

ob_implicit_flush(false);      //为了保证从AGI脚本到Asterisk的输出没有被缓冲,将PHP输出缓存设置为false;

set_time_limit(5);    // 为了确认在执行时不会超出一个合理的时间,在AGI脚本中设置一个确定的时间; 这里没有一个确切的办法来验证一个实际的值. 通常依赖于具体的实现. 依赖于你的系统和应用程序, 但通常建议确保脚本并保证能够工作的最大限制值30秒.

error_log = finename; //做调试目的时非常有用, 通常会创建一个log文件.

error_reporting(E_NONE);  //不会将错误记述到error_log;


Cheers!
Joe.Yeung
www.voipevents.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn