- 博客(5)
- 资源 (3)
- 收藏
- 关注
转载 php://input
$data = file_get_contents("php://input"); php://input 是个可以访问请求的原始数据的只读流。 POST 请求的情况下,最好使用 php://input 来代替 $HTTP_RAW_POST_DATA,因为它不依赖于特定的 php.ini 指令。 而且,这样的情况下 $HTTP_RAW_POST_DATA 默认没有填充, 比激活 al
2015-05-27 16:56:58 407
转载 $_SERVER['PATH_INFO']
PHP中的全局变量$_SERVER['PATH_INFO']是一个很有用的参数,众多的CMS系统在美化自己的URL的时候,都用到了这个参数。对于下面这个网址:http://www.test.com/index.php/foo/bar.html?c=index&m=search我们可以得到 $_SERVER['PATH_INFO'] = ‘/foo/bar.html’,而
2015-05-20 15:25:15 3701
转载 linux 根据文件大小查找文件
linux下的find命令用来查找文件,通过man find就知道它是无所不能的。所以按照文件大小来查找文件就不在话下。从man find搜索size,可以看到如下信息:-size n[cwbkMG] File uses n units of space. The following suffixes can be used: b for 512-byte blocks
2015-05-07 15:53:58 555
转载 Python发送邮件
# -*- coding: cp936 -*-# 甄码农,20120307import smtplibfrom email.mime.text import MIMEText mail_host = 'smtp.126.com'mail_user = '[email protected]'mail_pwd = 'hellopwd'mail_to = '[email protected]'mail_
2015-05-06 22:51:56 440
PDFCreator_v0.9.3,可以将任何常用文件生成PDF文件!
2009-10-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人