![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
文章平均质量分 70
qwer026
这个作者很懒,什么都没留下…
展开
-
php解析gzip
//获取原始数据 $source = file_get_contents('php://input'); //gzip解压 gzdecode($source); function gzdecode ($data) { $flags = ord(substr($data, 3, 1)); $headerlen = 10; $extralen = 0; $filenamelen =原创 2013-12-31 16:36:04 · 1635 阅读 · 0 评论 -
php 做权限管理
php开发中常常用到的权限管理系统 <?php class Test{ //假设有权限管理系统。共有4种权限 private $power = array( "P1", "P2", "P3", "P4", ); //获取用户权限的int值 public function getPowerInt($user){ $res = 0; foreach($this->power as $k => $v){ if(in_array($v,$user)){ $res |原创 2014-01-09 18:16:22 · 1365 阅读 · 0 评论 -
第一个php扩展hello world
从零开始教你写php扩展 1.进入php源码ext目录下 ./ext_skel --extname=helloworld 如果一切顺利,你将看到 2.cd helloworld修改config.m4文件,把dnl去掉如下 3.执行phpize (php目录/bin/phpize) 如果顺利你将看到这么多文件 4.修改php_helloworld.h PHP_FUNCTION(conf原创 2014-01-02 17:56:31 · 685 阅读 · 0 评论 -
wordpress用php脚本导入文章
通过php脚本导入wordpress文章。自己写的,有问题找我。原创 2014-02-23 19:10:52 · 2035 阅读 · 0 评论 -
curl https get请求
<?php $curl = curl_init(); curl_setopt($curl,CURLOPT_URL,"https://182.92.170.245/qrcode/"); curl_setopt($curl, CURLOPT_PORT, 443); curl_setopt($curl, CURLOPT_SSLVERSION, 3); curl_setopt($curl, CURLOP原创 2014-09-24 17:34:15 · 1521 阅读 · 0 评论