hehexu

博客园 首页 新随笔 联系 订阅 管理

2018年1月21日 #

摘要: <?phpclass FileCache { public $keyPrefix = ''; public $cachePath = ''; public $cacheFileSuffix = '.bin'; public $directoryLevel = 1; public $gcProbabi 阅读全文
posted @ 2018-01-21 22:24 hehexu 阅读(209) 评论(0) 推荐(0) 编辑

摘要: "D:\phpStudy\WWW\tubiao\libchart\libchart\classes\view\chart/../../../images/PoweredBy.png" D:\phpStudy\WWW\tubiao\libchart\libchart\classes\view\char 阅读全文
posted @ 2018-01-21 15:56 hehexu 阅读(411) 评论(0) 推荐(0) 编辑

摘要: 'PHP_SELF' 当前执行脚本的文件名,与 document root 有关。例如,在地址为 http://example.com/test.php/foo.bar 的脚本中使用 $_SERVER['PHP_SELF'] 将得到 /test.php/foo.bar。__FILE__ 常量包含当前 阅读全文
posted @ 2018-01-21 14:59 hehexu 阅读(137) 评论(0) 推荐(0) 编辑

摘要: header() 函数向客户端发送原始的 HTTP 报头。 认识到一点很重要,即必须在任何实际的输出被发送之前调用 header() 函数 (在 PHP 4 以及更高的版本中,您可以使用输出缓存来解决此问题): PHP header 的几种用法,你知道几种?1. 跳转页面 2. 声明content- 阅读全文
posted @ 2018-01-21 14:39 hehexu 阅读(432) 评论(0) 推荐(0) 编辑

摘要: <?phpclass sqlsafe {//(and|or)\\b 表示以and和or结尾的单词如:aand,band,都可以匹配//如果匹配and或or则使用 \\b(and|or)\\b来匹配单词;// \\/ 匹配/ 在写法上\/表示意义相同// \\* 匹配* 在写法上\*表示意义相同// 阅读全文
posted @ 2018-01-21 12:01 hehexu 阅读(224) 评论(0) 推荐(0) 编辑