hehexu

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

2018年1月20日 #

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

摘要: 如何让php程序自动执行,这个就需要用到一个函数了:int ignore_user_abort ( [bool setting] ) 定义和用法ignore_user_abort() 函数设置与客户机断开是否会终止脚本的执行。本函数返回 user-abort 设置的之前的值(一个布尔值)。注释:PH 阅读全文
posted @ 2018-01-20 11:21 hehexu 阅读(1944) 评论(0) 推荐(0) 编辑

摘要: $insertsql="INSERT INTO fac_SensorReadings SET DeviceID=$dev->DeviceID, Temperature=$temp, Humidity=$humidity, LastRead=NOW() ON DUPLICATE KEY UPDATE 阅读全文
posted @ 2018-01-20 11:01 hehexu 阅读(104) 评论(0) 推荐(0) 编辑

摘要: static function RowToObject($dbRow){ $st=new SensorTemplate(); $st->TemplateID=$dbRow["TemplateID"]; $st->ManufacturerID=$dbRow["ManufacturerID"]; $st 阅读全文
posted @ 2018-01-20 09:11 hehexu 阅读(150) 评论(0) 推荐(0) 编辑