You must say:"Yes" or "All right"! 注册 | 登陆
浏览模式: 标准 | 列表全部文章

哥写的不是博客日志,是寂寞!

1、人不犯我,我不犯人;人若犯我,礼让三分;人再犯我,我还一针;人还犯我,斩草除根。
2、我允许你走进我的世界,但不许你在我的世界里走来走去。
3、明骚易躲,暗贱难防。
4、天没降大任于我,照样苦我心智,劳我筋骨。
5、执子之手,方知子丑,泪流满面,子不走我走。
6、红豆不长南国,长我脸上了,真相思!
7、我深信,会有一个男人是为受我的折磨而来到这世上的。
8、西游记告诉我们:凡是有后台的妖怪都被接走了,凡是没后台的都被一棒子打死了。
9、你有什么不开心的事?说出来让大家开心一下。
10、我那么喜欢你,你喜欢我一下会死啊。
11、虽然你身上喷了古龙水,但我还是能隐约闻到一股人渣味儿。
12、我诅咒你一辈子买方便面没有调料包。
13、不吃饱哪有力气减肥啊。
14、妈妈问我有男朋友了么,我说没有,妈妈说:这个可以有,我说:这个真没有……
15、理想很丰满,现实却很骨感。
16、雷锋做了好事不留名,但是每一件事情都记到日记里面。
17、我又不是人民币,怎么能让人人都喜欢我?!
18、令人不能自拔的,除了牙齿还有爱情。
19、当生活心怀歹毒地将一切都搞成了黑色幽默,我顺水推舟把自己变成了一个受过高等教育的流氓。
20、时间太瘦,指缝太宽。
21、小姑娘们梦中都想找一匹白马,睁开眼发现满世界都是灰不溜秋的驴,悲痛欲绝后,只能从驴群中挑个身强力壮的,这样的驴就被命名为:经济适用男 。
22、我就要哭,我就要闹,一宿一宿不睡觉,手里拿瓶安眠药,拿根小绳要上吊。再丑也要谈恋爱,谈到世界充满爱。
23、我们的目标:向钱看,向厚赚。
24、我是你转身就忘的路人甲,凭什么陪你蹉跎年华到天涯?
25、 间歇性郁闷症发作期间,生人勿扰,熟人勿找。
26、没有医保和寿险的,天黑后不要见义勇为……
27、琴棋书画不会,洗衣做饭嫌累。
28、说金钱是罪恶,都在捞;说美女是祸水,都想要;说高处不胜寒,都在爬;说烟酒伤身体,都不戒;说天堂最美好,都不去!
29、挤公交是包含散打、瑜珈、柔道、平衡木等多种体育和健身项目于一体的综合性运动。
30、老娘法眼一开就知道你是个妖孽了。
31、手插口袋,谁都不爱 。
32、手拿菜刀砍电线,一路火花带闪电。
33、单身并不难,难的是应付那些千方百计想让你结束单身的人 。
34、幸福是什么?幸福就是你吃鱼,我吃肉,看着别人啃骨头。
35、念了十几年书,想起来还是幼儿园比较好混!
36、他们说我是BT,让我去做CT,结果我是ET。
37、我的优点是:我很帅;但是我的缺点是:我帅的不明显。
38、我当年也是个痴情的种子,结果下了场雨……淹死了。
39、很多人说婚姻是爱情的坟墓,但是能够入土为安的爱情总比暴尸街头要好 。
40、有空学风水去,死后占个好墓也算弥补了生前买不起好房的遗憾
41、据说,人只有两个选择,忙着死或是忙着活,我想我有了第三种选择:忙着等死 。
42、春困夏乏秋无力,冬日正好眠。
43、思念不能自已,痛苦不能自理,结果不能自取,幸福不能自予。
44、小时候我以为自己长大后可以拯救整个世界,等长大后才发现整个世界都拯救不了我。
45、如果你注定不能给予我期待的回应.那么就保持在安全距离之外吧。
46、请不要把我对你的容忍,当成你不要脸的资本。
47、 女子无才便是德,我一定是太缺德了。
48、诸葛亮出山前也没带过兵啊,你们凭啥要我有工作经验。
49、用嘻哈的蓝调精神来过二胡一样的生活。
50、鸵鸟的幸福,只是一堆沙子。
51、老天,太蓝!大海,太咸!人生,太难!工作,太烦!和你,有缘!想你,失眠!见你,太远!
52、一觉醒来,天都黑了。
53、喝药递瓶,上吊给绳,跳楼的挥着小手绢送行。
54、铁杵能磨成针,但木杵只能磨成牙签,材料不对,再努力也没用。
55、傻子偷乞丐的钱包,被瞎子看到了,哑巴大吼一声,把聋子吓了一跳,驼子挺身而出,瘸子飞起一脚,通辑犯要拉他去公安局,麻子说,看我的面子算了。
57、你要搞清楚自己人生的剧本——不是你父母的续集,不是你子女的前传,更不是你朋友的外篇。
59、树愈静而风不止,我愈恋而他不在。
60、多想某天醒来睁开眼,发现自己坐在小学教室的课桌椅上。老师掷来的粉笔头正好打在额头上。
61、少年不胡作妄为,大胆放肆,试问老年时哪来的题材话当年。
62、作为一个怪兽,我的愿望是至少消灭一个奥特曼。
64、再过几十年 我们来相会 送到火葬场 全部烧成灰 你一堆我一堆 谁也不认识谁 全部送到农村做化肥~
65、学问之美,在于使人一头雾水;诗歌之美,在于煽动男女出轨;女人之美,在于蠢得无怨无悔;男人之美,在于说谎说得白日见鬼。
66、我以为我很颓废,今天我才知道,原来我早报废了。
67、不成熟男人的标志是可以为了理想壮烈的牺牲,成熟男人的标志的可以为了理想卑贱的活着。
68、生活就像宋祖德的嘴,你永远都不知道下一个倒霉的会是谁。
69、阳光温热,岁月静好,你还不来,我怎敢老去?
70、人又不聪明,还学别人秃顶。
71、我以神的姿态,闪耀在这美的瞬间.凡人勿扰…
73、年轻的时候,我们常常冲着镜子做鬼脸;年老的时候,镜子算是扯平了。
76、要努力!!为了你的奥迪我的迪奥。
77、我是白领:今天领了薪水,交了房租水电,买了油米泡面,摸了口袋,感叹一声,这个月工资又白领了…
78、执子之手,将子拖走。子说不走,好吧,关门放狗!
79、生活,就是这样.永远占领着绝对领导的位置,当无数的傻子高呼着自己控制了生活,掌握了命运.却没看到,生活在更高的苍穹上.露出讥笑的嘲讽的面孔。
80、他就是一盆水,倒入你的米堆里,若干年后,清水变成了醇香的酒,而你变成了一堆废弃的烂米,不是没用了,还可以拿来喂猪的。
81、不愿做奴隶的人民,愿做人民币的奴隶。
83、我不是天桥上算命的,唠不出那么多你爱听的磕。
84、生活二字二几十年来回味得我大小脑抽搐,脊髓痉挛。始终不得要领。
85、真的猛士,敢于直面自己未化妆的脸。
86、天山童姥——外表正太,内心却有三百六十五道裂痕,每道裂痕上书春夏秋冬四字,沧桑到妖。
87、世事往往如此,想回头也已经来不及,即使你肯沦为劣马,不一定有回头草在等着你。
88、曾经我们都以为自己可以为爱情死,其实爱情死不了人,它只会在最疼的地方扎上一针,然后我们欲哭无泪,我们辗转反侧,我们久病成医,我们百炼成钢。你不是风儿,我也不是沙,再缠绵也到不了天涯,擦干了泪,明天早上,我们都要上班。
89、曾经和朋友一起仰望星空,随之我们泪流满面,他是因为失恋,我则是因为扭伤了脖子。
90、其实你我都一样,人人都在装,关键是要装像了,装圆了,有一个门槛,装成了就迈进去,成为传说中的性情中人,没装好,就卡在那里了。就是卡门。

Tags: 无厘头

Angel Plan!正在进行中

比较邪恶哦,嘿嘿,以后会告诉大家什么是《天使计划》!

Update:计划暂停中……

Tags: angel, 天使计划

从Google提取到的改变下拉框自动提交的HTML代码

XML/HTML代码
  1. <form action="" method="GET" id="reportOverviewControlForm">  
  2. <select name="timePeriod" id="timePeriod" onchange="this.form.submit()">  
  3. <option value="today">今天</option>    
  4. <option value="yesterday">昨天</option>    
  5. <option value="last7days">过去 7 天</option>    
  6. <option value="thismonth">本月(9月)</option>    
  7. <option value="lastmonth">上月(8月)</option>  
  8. <option value="alltime" selected>所有时间</option>  
  9. </select>  
  10. </form>  

Tags: html

PHP使用GD库实现截屏

PHP5.2.2以上版本的GD库实现了两个截屏函数 imagegrabscreen imagegrabwindow ,分别用于截取整个屏幕和截取某个窗口(同ALT+PrintScreen)的屏幕。

1. 截取整个屏幕 Screenshot

PHP代码
  1. <?php   
  2. $im = imagegrabscreen();   
  3. imagepng($im"myscreenshot.png");   
  4. ?>  

2. 截取一个窗口 Capture a window (IE for example)

PHP代码
  1. <?php   
  2. $browser = new COM("InternetExplorer.Application");   
  3. $handle = $browser->HWND;   
  4. $browser->Visible = true;   
  5. $im = imagegrabwindow($handle);   
  6. $browser->Quit();   
  7. imagepng($im"iesnap.png");   
  8. $im = imagegrabscreen();   
  9. ?>  

3. 截取IE内容 Capture a window (IE for example) but with its content!

PHP代码
  1. <?php   
  2. $browser = new COM("InternetExplorer.Application");   
  3. $handle = $browser->HWND;   
  4. $browser->Visible = true;   
  5. $browser->Navigate("http://www.kalvin.cn/");   
  6.     
  7. /* Still working? */  
  8. while ($browser->Busy) {   
  9.     com_message_pump(4000);   
  10. }   
  11. $im = imagegrabwindow($handle, 0);   
  12. $browser->Quit();   
  13. imagepng($im"iesnap.png");   
  14. ?>  

4. 截取IE的全屏模式 IE in fullscreen mode

PHP代码
  1. <?php   
  2. $browser = new COM("InternetExplorer.Application");   
  3. $handle = $browser->HWND;   
  4.     
  5. $browser->Visible = true;   
  6. $browser->FullScreen = true;   
  7. $browser->Navigate("http://www.kalvin.cn/");   
  8.     
  9. /* Is it completely loaded? (be aware of frames!)*/  
  10. while ($browser->Busy) {   
  11.     com_message_pump(4000);   
  12. }   
  13. $im = imagegrabwindow($handle, 0);   
  14. $browser->Quit();   
  15. imagepng($im"iesnap.png");   
  16. ?>  

上面就是说如何使用PHP COM调用IE窗口打开网页进行截屏,但很多朋友得到的结果只是一张纯黑的图片,这是为什么呢?

可能有两种情况,第一种情况就是这个COM组件只适用于WINDOWS服务器,其它系统的服务器是不支持的,因为他没有IE浏览器,第二种情况就是没有打开允许服务与桌面交互!其中第二种情况最为常见,打开的方法就是点击计算机(我的电脑) -> 右键 -> 管理 -> 服务和应用程序 -> 服务 -> Apache(我自己使用apache服务器) -> 右键 -> 属性 -> 登录 -> 登录身份下面既是!

Tags: php, gd

Php ini_set ini_get可操作配置参数列表

为了使自己的程序在不同的平台中拥有更好的兼容性,很多时候我们都要获取当前Php的运行环境参数。比如我们常用到的:获取 magic_quotes_gpc状态,来决定当表单提交时我们是否转义(addslashes)数据;设定max_execution_time来延长 程序的执行时间;设定error_reporting使自己的项目在开发与运营阶段切换;设定memory_limit加大内存等等…

ini_set(string varname, string newvalue ) : 设定环境配置的参数

ini_get(string varname) : 获取环境配置的参数

参数列表如下:

Name Default Changeable
com.allow_dcom "0" PHP_INI_SYSTEM
com.autoregister_typelib "0" PHP_INI_SYSTEM
com.autoregister_verbose "0" PHP_INI_SYSTEM
com.autoregister_casesensitive "1" PHP_INI_SYSTEM
com.typelib_file "" PHP_INI_SYSTEM
crack.default_dictionary NULL PHP_INI_SYSTEM
exif.encode_unicode "ISO-8859-15" PHP_INI_ALL
exif.decode_unicode_motorola "UCS-2BE" PHP_INI_ALL
exif.decode_unicode_intel "UCS-2LE" PHP_INI_ALL
exif.encode_jis "" PHP_INI_ALL
exif.decode_jis_motorola "JIS" PHP_INI_ALL
exif.decode_jis_intel "JIS" PHP_INI_ALL
fbsql.allow_persistent "1" PHP_INI_SYSTEM
fbsql.generate_warnings "0" PHP_INI_SYSTEM
fbsql.autocommit "1" PHP_INI_SYSTEM
fbsql.max_persistent "-1" PHP_INI_SYSTEM
fbsql.max_links "128" PHP_INI_SYSTEM
fbsql.max_connections "128" PHP_INI_SYSTEM
fbsql.max_results "128" PHP_INI_SYSTEM
fbsql.batchSize "1000" PHP_INI_SYSTEM
fbsql.default_host NULL PHP_INI_SYSTEM
fbsql.default_user "_SYSTEM" PHP_INI_SYSTEM
fbsql.default_password "" PHP_INI_SYSTEM
fbsql.default_database "" PHP_INI_SYSTEM
fbsql.default_database_password "" PHP_INI_SYSTEM
hwapi.allow_persistent "0" PHP_INI_SYSTEM
hyperwave.allow_persistent "0" PHP_INI_SYSTEM
hyperwave.default_port "418" PHP_INI_ALL
iconv.input_encoding ICONV_INPUT_ENCODING PHP_INI_ALL
iconv.output_encoding ICONV_OUTPUT_ENCODING PHP_INI_ALL
iconv.internal_encoding ICONV_INTERNAL_ENCODING PHP_INI_ALL
ifx.allow_persistent "1" PHP_INI_SYSTEM
ifx.max_persistent "-1" PHP_INI_SYSTEM
ifx.max_links "-1" PHP_INI_SYSTEM
ifx.default_host NULL PHP_INI_SYSTEM
ifx.default_user NULL PHP_INI_SYSTEM
ifx.default_password NULL PHP_INI_SYSTEM
ifx.blobinfile "1" PHP_INI_ALL
ifx.textasvarchar "0" PHP_INI_ALL
ifx.byteasvarchar "0" PHP_INI_ALL
ifx.charasvarchar "0" PHP_INI_ALL
ifx.nullformat "0" PHP_INI_ALL
ingres.allow_persistent "1" PHP_INI_SYSTEM
ingres.max_persistent "-1" PHP_INI_SYSTEM
ingres.max_links "-1" PHP_INI_SYSTEM
ingres.default_database NULL PHP_INI_ALL
ingres.default_user NULL PHP_INI_ALL
ingres.default_password NULL PHP_INI_ALL
ibase.allow_persistent "1" PHP_INI_SYSTEM
ibase.max_persistent "-1" PHP_INI_SYSTEM
ibase.max_links "-1" PHP_INI_SYSTEM
ibase.default_user NULL PHP_INI_ALL
ibase.default_password NULL PHP_INI_ALL
ibase.timestampformat "%m/%d/%Y%H:%M:%S" PHP_INI_ALL
ibase.dateformat "%m/%d/%Y" PHP_INI_ALL
ibase.timeformat "%H:%M:%S" PHP_INI_ALL
java.class.path NULL PHP_INI_ALL
java.home NULL PHP_INI_ALL
java.library.path NULL PHP_INI_ALL
java.library JAVALIB PHP_INI_ALL
java.library NULL PHP_INI_ALL
ldap.max_links "-1" PHP_INI_SYSTEM
mbstring.detect_order NULL PHP_INI_ALL
mbstring.http_input NULL PHP_INI_ALL
mbstring.http_output NULL PHP_INI_ALL
mbstring.internal_encoding NULL PHP_INI_ALL
mbstring.substitute_character NULL PHP_INI_ALL
mbstring.func_overload "0" PHP_INI_SYSTEM
mcrypt.algorithms_dir NULL PHP_INI_ALL
mcrypt.modes_dir NULL PHP_INI_ALL
mime_magic.magicfile "/usr/share/misc/magic.mime" PHP_INI_SYSTEM
mssql.allow_persistent "1" PHP_INI_SYSTEM
mssql.max_persistent "-1" PHP_INI_SYSTEM
mssql.max_links "-1" PHP_INI_SYSTEM
mssql.max_procs "25" PHP_INI_ALL
mssql.min_error_severity "10" PHP_INI_ALL
mssql.min_message_severity "10" PHP_INI_ALL
mssql.compatability_mode "0" PHP_INI_ALL
mssql.connect_timeout "5" PHP_INI_ALL
mssql.timeout "60" PHP_INI_ALL
mssql.textsize "-1" PHP_INI_ALL
mssql.textlimit "-1" PHP_INI_ALL
mssql.batchsize "0" PHP_INI_ALL
mssql.datetimeconvert "1" PHP_INI_ALL
mssql.secure_connection "0" PHP_INI_SYSTEM
mysql.allow_persistent "1" PHP_INI_SYSTEM
mysql.max_persistent "-1" PHP_INI_SYSTEM
mysql.max_links "-1" PHP_INI_SYSTEM
mysql.default_host NULL PHP_INI_ALL
mysql.default_user NULL PHP_INI_ALL
mysql.default_password NULL PHP_INI_ALL
mysql.default_port NULL PHP_INI_ALL
mysql.default_socket NULL PHP_INI_ALL
ncurses.value "42" PHP_INI_ALL
ncurses.string "foobar" PHP_INI_ALL
odbc.allow_persistent "1" PHP_INI_SYSTEM
odbc.max_persistent "-1" PHP_INI_SYSTEM
odbc.max_links "-1" PHP_INI_SYSTEM
odbc.default_db NULL PHP_INI_ALL
odbc.default_user NULL PHP_INI_ALL
odbc.default_pw NULL PHP_INI_ALL
odbc.defaultlrl "4096" PHP_INI_ALL
odbc.defaultbinmode "1" PHP_INI_ALL
odbc.check_persistent "1" PHP_INI_SYSTEM
pfpro.defaulthost "test.signio.com"  
pfpro.defaulthost "test-payflow.verisign.com"  
pfpro.defaultport "443" PHP_INI_ALL
pfpro.defaulttimeout "30" PHP_INI_ALL
pfpro.proxyaddress "" PHP_INI_ALL
pfpro.proxyport "" PHP_INI_ALL
pfpro.proxylogon "" PHP_INI_ALL
pfpro.proxypassword "" PHP_INI_ALL
pgsql.allow_persistent "1" PHP_INI_SYSTEM
pgsql.max_persistent "-1" PHP_INI_SYSTEM
pgsql.max_links "-1" PHP_INI_SYSTEM
pgsql.auto_reset_persistent "0" PHP_INI_SYSTEM
pgsql.ignore_notice "0" PHP_INI_ALL
pgsql.log_notice "0" PHP_INI_ALL
session.save_path "/tmp" PHP_INI_ALL
session.name "PHPSESSID" PHP_INI_ALL
session.save_handler "files" PHP_INI_ALL
session.auto_start "0" PHP_INI_ALL
session.gc_probability "1" PHP_INI_ALL
session.gc_divisor "100" PHP_INI_ALL
session.gc_maxlifetime "1440" PHP_INI_ALL
session.serialize_handler "php" PHP_INI_ALL
session.cookie_lifetime "0" PHP_INI_ALL
session.cookie_path "/" PHP_INI_ALL
session.cookie_domain "" PHP_INI_ALL
session.cookie_secure "" PHP_INI_ALL
session.use_cookies "1" PHP_INI_ALL
session.use_only_cookies "0" PHP_INI_ALL
session.referer_check "" PHP_INI_ALL
session.entropy_file "" PHP_INI_ALL
session.entropy_length "0" PHP_INI_ALL
session.cache_limiter "nocache" PHP_INI_ALL
session.cache_expire "180" PHP_INI_ALL
session.use_trans_sid "0" PHP_INI_SYSTEM
PHP_INI_PERDIR
session.encode_sources "globals,track" PHP_INI_ALL
assert.active "1" PHP_INI_ALL
assert.bail "0" PHP_INI_ALL
assert.warning "1" PHP_INI_ALL
assert.callback NULL PHP_INI_ALL
assert.quiet_eval "0" PHP_INI_ALL
safe_mode_protected_env_vars SAFE_MODE_PROTECTED_ENV_VARS PHP_INI_SYSTEM
safe_mode_allowed_env_vars SAFE_MODE_ALLOWED_ENV_VARS PHP_INI_SYSTEM
url_rewriter.tags "a=href,area=href,
frame=src,
form=fakeentry"
PHP_INI_ALL
sybct.allow_persistent "1" PHP_INI_SYSTEM
sybct.max_persistent "-1" PHP_INI_SYSTEM
sybct.max_links "-1" PHP_INI_SYSTEM
sybct.min_server_severity "10" PHP_INI_ALL
sybct.min_client_severity "10" PHP_INI_ALL
sybct.hostname NULL PHP_INI_ALL
vpopmail.directory "" PHP_INI_ALL
zlib.output_compression "0" PHP_INI_SYSTEM
PHP_INI_PERDIR
zlib.output_compression_level "-1" PHP_INI_ALL
define_syslog_variables "0" PHP_INI_ALL
highlight.bg HL_BG_COLOR PHP_INI_ALL
highlight.comment HL_COMMENT_COLOR PHP_INI_ALL
highlight.default HL_DEFAULT_COLOR PHP_INI_ALL
highlight.html HL_HTML_COLOR PHP_INI_ALL
highlight.keyword HL_KEYWORD_COLOR PHP_INI_ALL
highlight.string HL_StrING_COLOR PHP_INI_ALL
allow_call_time_pass_reference "1" PHP_INI_SYSTEM
PHP_INI_PERDIR
asp_tags "0" PHP_INI_SYSTEM
PHP_INI_PERDIR
display_errors "1" PHP_INI_ALL
display_startup_errors "0" PHP_INI_ALL
enable_dl "1" PHP_INI_SYSTEM
expose_php "1" PHP_INI_SYSTEM
html_errors "1" PHP_INI_ALL
xmlrpc_errors "0" PHP_INI_SYSTEM
xmlrpc_error_number "0" PHP_INI_ALL
ignore_user_abort "0" PHP_INI_ALL
implicit_flush "0" PHP_INI_ALL
log_errors "0" PHP_INI_ALL
log_errors_max_len "1024" PHP_INI_ALL
ignore_repeated_errors "0" PHP_INI_ALL
ignore_repeated_source "0" PHP_INI_ALL
magic_quotes_gpc "1" PHP_INI_PERDIR
PHP_INI_SYSTEM
magic_quotes_runtime "0" PHP_INI_ALL
magic_quotes_sybase "0" PHP_INI_ALL
output_buffering "0" PHP_INI_PERDIR
PHP_INI_SYSTEM
output_handler NULL PHP_INI_PERDIR
PHP_INI_SYSTEM
register_argc_argv "1" PHP_INI_PERDIR
PHP_INI_SYSTEM
register_globals "0" PHP_INI_PERDIR
PHP_INI_SYSTEM
safe_mode "1" PHP_INI_SYSTEM
safe_mode "0" PHP_INI_SYSTEM
safe_mode_include_dir NULL PHP_INI_SYSTEM
safe_mode_gid "0" PHP_INI_SYSTEM
short_open_tag DEFAULT_SHORT_OPEN_TAG PHP_INI_SYSTEM
PHP_INI_PERDIR
sql.safe_mode "0" PHP_INI_SYSTEM
track_errors "0" PHP_INI_ALL
y2k_compliance "0" PHP_INI_ALL
unserialize_callback_func NULL PHP_INI_ALL
arg_separator.output "&" PHP_INI_ALL
arg_separator.input "&" PHP_INI_SYSTEM
PHP_INI_PERDIR
auto_append_file NULL PHP_INI_SYSTEM
PHP_INI_PERDIR
auto_prepend_file NULL PHP_INI_SYSTEM
PHP_INI_PERDIR
doc_root NULL PHP_INI_SYSTEM
default_charset SAPI_DEFAULT_CHARSET PHP_INI_ALL
default_mimetype SAPI_DEFAULT_MIMETYPE PHP_INI_ALL
error_log NULL PHP_INI_ALL
extension_dir PHP_EXTENSION_DIR PHP_INI_SYSTEM
gpc_order "GPC" PHP_INI_ALL
include_path PHP_INCLUDE_PAth PHP_INI_ALL
max_execution_time "30" PHP_INI_ALL
open_basedir NULL PHP_INI_SYSTEM
safe_mode_exec_dir "1" PHP_INI_SYSTEM
upload_max_filesize "2M" PHP_INI_SYSTEM
PHP_INI_PERDIR
file_uploads "1" PHP_INI_SYSTEM
post_max_size "8M" PHP_INI_SYSTEM
PHP_INI_PERDIR
upload_tmp_dir NULL PHP_INI_SYSTEM
user_dir NULL PHP_INI_SYSTEM
variables_order NULL PHP_INI_ALL
error_append_string NULL PHP_INI_ALL
error_prepend_string NULL PHP_INI_ALL
SMTP "localhost" PHP_INI_ALL
smtp_port 25 PHP_INI_ALL
browscap NULL PHP_INI_SYSTEM
error_reporting NULL PHP_INI_ALL
memory_limit "8M" PHP_INI_ALL
precision "14" PHP_INI_ALL
sendmail_from NULL PHP_INI_ALL
sendmail_path DEFAULT_SENDMAIL_PAth PHP_INI_SYSTEM
disable_classes "" php.ini only
disable_functions "" php.ini only
allow_url_fopen "1" PHP_INI_ALL
always_populate_raw_post_data "0" PHP_INI_SYSTEM
PHP_INI_PERDIR
xbithack "0" PHP_INI_ALL
engine "1" PHP_INI_ALL
last_modified "0" PHP_INI_ALL
child_terminate "0" PHP_INI_ALL
async_send "0" PHP_INI_ALL

可操作范围见下表:

Constant Value Meaning
PHP_INI_USER 1 Entry can be set in user scripts
PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf
PHP_INI_ALL 7 Entry can be set anywhere

Tags: php

Records:25712345678910»