首先,我们还是要导入PHPExcel类文件。。。至于怎么导入。可以参考我写的导出的那篇文章(http://www.cnblogs.com/hopelooking/p/6230303.html) 但是我们在做导入功能的时候用到的类文件可不是导出时用到的那个类文件,但是文件夹一层包一层,没办法那样一个一 ...
分类:
Web程序 时间:
2019-03-27 21:11:59
阅读次数:
213
/** * 封装base64位图片上传 */function base64_upload($base64) { $base64_image = str_replace(' ', '+', $base64); //post的数据里面,加号会被替换为空格,需要重新替换回来,如果不是post的数据,则注释 ...
分类:
Web程序 时间:
2019-03-27 20:57:09
阅读次数:
258
首先thinkphp5.1获取session值是 {$think.session.user_id}或者{$Request.session.user_id}来获取session 下面是if else 的用法 跟不用框架有些许的不一样 ...
分类:
Web程序 时间:
2019-03-27 10:39:33
阅读次数:
989
ThinkPHP中有许多使用简便的单字母函数,可以很方便开发者快速的调用,但是字母函数却不方便记忆,本文将所有的字母函数总结一下,以方便以后查找。1.U() URL组装 支持不同URL模式 @param string $url URL表达式,格式:'[模块/控制器/操作#锚点@域名]?参数1=值1& ...
分类:
其他好文 时间:
2019-03-22 18:38:14
阅读次数:
111
1.thinkphp 的github 代码版本地址:https://github.com/top-think 2. 点击think 复制 地址 3. 新建thinkphp5 文件夹 git clone地址代码 4. 右击 git bash here 5. git clone --dapth=1 (c ...
分类:
Web程序 时间:
2019-03-18 15:17:01
阅读次数:
179
thinkphp 5.0 index.php被替换成首页内容,被注入恶意代码。已解决.
分类:
Web程序 时间:
2019-03-11 10:33:51
阅读次数:
1324
vhosts.conf <VirtualHost *:80> DocumentRoot "E:\sasa" ServerName sasa.cn ServerAlias sasa.cn <Directory "E:\sasa"> Options FollowSymLinks ExecCGI Allo ...
分类:
Web程序 时间:
2019-03-08 10:02:14
阅读次数:
145
('a'=1 and 'b'=2) or ('c'=3 and 'd'=4) and 'e'=5 $where_1['a'] = 1; $where_1['b'] = 2; $where_2['c'] = 3; $where_2['d'] = 4; $where_main['_complex'] =... ...
分类:
Web程序 时间:
2019-03-08 09:19:50
阅读次数:
588
select * from xx where (a = 22 or b = 333) or (c=11 and d=22) ...
分类:
Web程序 时间:
2019-03-06 18:01:09
阅读次数:
482
在根目录下有一个build.php文件,该文件是自动生成的,自动创建模块。build.php的文件内容如下: 其中__dir__ 表示生成目录,可以支持多级目录__file__ 表示生成文件,不定义默认会生成config.php和common.php文件controller 表示生成的control ...
分类:
Web程序 时间:
2019-03-06 12:05:12
阅读次数:
227