随笔分类 - PHP
摘要:1.通过php.ini进行设置 eg:ini_set('memory_limit,'128M'); //如果safe_mode开启的话是没有用的 2.如果代码块中出现了大量的循环语句,使用过后的没有用的数据,应当及时unset掉 eg: foreach ($ask_lists as $k_1 =>
阅读全文
摘要:<?php namespace com\openssl\fba; include_once realpath(__DIR__ . '/../../autoload.php'); function executeRequest() { $handler = new YYSign(); $handler
阅读全文
摘要:SSL:Secure Socket Layer,安全套接字层,它位于TCP层与Application层之间。提供对Application数据的加密保护(密文),完整性保护(不被篡改)等安全服务,它缺省工作在TCP 443 端口,一般对HTTP加密,即俗称的HTTPS。 SSL双向认证具体过程 ① 浏
阅读全文
摘要:public function getImgUrl(Request $request) { $file_name = $request->input('title'); if (empty($file_name )) { self::ShowError(ErrorDefine::S_SYSTEM_E
阅读全文
摘要://1获取24小时 $fixation_time =strtotime("+1 day")-time(); //2.获取已经过去的时间 $different = time()-strtotime($question->created_at); //3.获取时间差 $time = $fixation_
阅读全文

浙公网安备 33010602011771号