Twitter Media Temple php.ini保存

Twitter Media Temple php.ini保存,twitter,php,mediatemple,Twitter,Php,Mediatemple,因此,我正在我客户的网站上工作,为了将twitter帖子集成到网站中,我需要在PHP.ini中包含以下行: allow_url_fopen = On; 现在我的PHP.ini如下所示: ; Rename this file to php.ini and uncomment or add directives. ; For a complete list of valid directives, visit: ; http://us2.php.net/manual/en/ini.php [P

因此,我正在我客户的网站上工作,为了将twitter帖子集成到网站中,我需要在PHP.ini中包含以下行:

allow_url_fopen = On;
现在我的PHP.ini如下所示:

; Rename this file to php.ini and uncomment or add directives.
; For a complete list of valid directives, visit:
;  http://us2.php.net/manual/en/ini.php

[PHP]
; We highly recommend that you leave this options enabled
cgi.fix_pathinfo=1

; Increase maximum post size
;post_max_size = 20M

; Increase execution time
;max_execution_time = 300

; pull in EGPCS [Environment, GET, POST, Cookie, Server] variables as globals
;register_globals = true

; For performance reasons, (mt) does not load all of the modules that are available
; into PHP. You may uncomment any one of the following "extension" lines to enable
; the desired module

; Salblotron XSLT
;extension=xslt.so

; save in local tmp
session.save_path=/home/65994/data/tmp

allow_url_fopen = On;

upload_max_filesize = 20M
出于某种原因,它起作用了。。。但只有大约15分钟左右,它才会中断并出现错误

尽管如此,如果我将添加到php.ini的行移到其他位置。。。再保存,它又能工作了

奇怪的


有人知道为什么或如何修复此问题吗?

MT现在默认禁用不安全的php函数,因此很有可能您的问题是由于导致超时的原因,即使您启用了“攻击性”选项。尝试设置

默认\u套接字\u超时

选择更长的时间


顺便说一句,如果您切换到使用Twitter OAuth而不是直接打开url的cURL,您可能会省去一些痛苦。

我不会使用Twitter的PHP接口,而Javascript接口可以为您节省服务器负载。。。