随笔分类 -  php

摘要:./configure --prefix=/usr/local/php \ --with-curl \ --with-freetype-dir \ --with-gd \ --with-gettext \ --with-iconv-dir \ --with-kerberos \ --with-lib... 阅读全文
posted @ 2015-12-28 21:58 张不正 阅读(226) 评论(0) 推荐(0) 编辑
摘要:是因为系统没安装一个叫 libxslt-devel 的包, 安装上就好了.附编译php时的常见错误:http://www.myhack58.com/Article/sort099/sort0102/2014/48823.htm 阅读全文
posted @ 2015-12-28 21:39 张不正 阅读(257) 评论(0) 推荐(0) 编辑
摘要:是这样的,文件创建是通过远程命令来进行的。就是在表单中输入命令,然后使用php的system来执行。表单使用的是多行文本输入框。可能某次使用 类似touch这种命令创建文件的时候多按了一次回车,另一次又没加回车,导致的效果是使用ls命令看的时候出现了两个名字看起来一样的文件。中间各种猜测。。。后来使... 阅读全文
posted @ 2015-11-07 17:33 张不正 阅读(352) 评论(0) 推荐(0) 编辑
摘要:这是启动的批处理:set nginx=D:\nginx-1.9.5\set php=D:\php\start /MIN %nginx%nginx.exestart /MIN %php%php-cgi.exe -b 127.0.0.1:9000 -c %php%php.ini这是停止的批处理:set ... 阅读全文
posted @ 2015-10-16 23:36 张不正 阅读(563) 评论(0) 推荐(0) 编辑
摘要:至于php的配置,与之前博文中使用apache服务器时一样。对于nginx的配置,来看看如何修改配置文件: 1 #user nobody; 2 worker_processes 1; 3 4 #error_log logs/error.log; 5 #error_log logs... 阅读全文
posted @ 2015-10-16 23:31 张不正 阅读(365) 评论(0) 推荐(0) 编辑
摘要:array('method'=>'POST',//'content'=>'name=caiknife&email=caiknife@gmail.com','content'=>http_build_query($post),),);$result=file_get_contents($url,fal... 阅读全文
posted @ 2015-06-27 23:41 张不正 阅读(492) 评论(0) 推荐(0) 编辑
摘要:17、不要直接使用 $_SESSION 变量简单例子:$_SESSION['username'] = $username;$username = $_SESSION['username'];改进后:define('APP_ID' , 'abc_corp_ecommerce');//Function ... 阅读全文
posted @ 2015-05-27 10:05 张不正 阅读(168) 评论(0) 推荐(0) 编辑

返回顶部
点击右上角即可分享
微信分享提示