
PHP
php ci
pre_eminent
这个作者很懒,什么都没留下…
展开
-
php_遍历目录_返回文件数组
//遍历目录及目录下的所有文件和文件夹,返回文件数组 $files=array(); function listAllFiles($dir="D:/www_local/CI/"){ if(is_dir($dir)){ if($handle=opendir($dir)){ //var_dump($handle);resource(2) of type (stream)原创 2014-04-02 14:41:52 · 2169 阅读 · 0 评论 -
php_采集网页_标准3步
标准3步,采集网页(文章)原创 2014-04-02 15:33:03 · 1270 阅读 · 0 评论 -
OAuth Authentication
下图Twitter的OAuth的授权过程。下图sina的OAuth的授权过程。下图qq的OAuth的授权过程。网页授权流程分为四步:1、引导用户进入授权页面同意授权,获取code2、通过code换取网页授权access_token3、非必须,开发者可以刷新网页授权access_token,避免过期4、通过网页授权access_token和openid原创 2014-03-26 10:04:46 · 1133 阅读 · 0 评论 -
php_mac开发环境搭建
/private/etc/apache2/httpd.conf一、启动Apachesudo apachectl startsudo apachectl -v 可以查看到Apache的版本信息此时在浏览器中输入http://localhost,会出现It works!的页面sudo apachectl restart //重启Apache原创 2016-10-05 08:23:35 · 617 阅读 · 1 评论 -
php_04_获取图片的宽和高
做app的列表显示的时候,由于当图片的宽大于高时,cell中的imageView上部和下部会有多出的空白,所以就必须动态根据图片的宽高进行调整imageView的Height的Constraint由于图片有几百张,故使用php批量获取图片的宽和高<?php// 获取图片的宽和高function MyImg($imgfile) { $size = G原创 2018-01-08 17:45:25 · 886 阅读 · 0 评论