
php
文章平均质量分 70
panjone
这个作者很懒,什么都没留下…
展开
-
windows下php+apache+mysql配置和常见问题总结
1.安装apache: 安装或解压后,找到apache目录下conf\httpd.conf文件。 (1)、设置端口 Listen 8089 (2)、设置php,这一步在安装php后设置,找#LoadModule vhost_alias_module modules/mod_vhost_alias.so,在下面(位置随意)加如下代码: Lo原创 2013-06-10 12:33:06 · 803 阅读 · 0 评论 -
ext常用iconCls 很实用
Icon="Add" Text="增加"Icon="Key" Text="审核" Icon="Printer" Text="打印"Icon="ApplicationViewTile" Text="导出"Icon="magnifier" Text="查询"Icon="Accept" Text="确定" (对勾)Icon="Cancel " Text="取消" (叉叉转载 2013-07-16 11:39:45 · 2511 阅读 · 0 评论 -
php中文乱码
出现乱码的情况:1. 中文打印乱码: 打印之前加:header("Content-Type:text/html;charset=utf-8"); 或者html页面:<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />2、编码转化: 函数:string iconv ( st原创 2013-12-18 19:58:16 · 864 阅读 · 0 评论 -
js 请求参数转码
js通过window.location.href 获取请求参数,无奈的是中文参数变%3dsd%dsd2%dsds21 之类的乱码。这个问题困扰了我好几天,终于在网上找到了解决办法,下面我把网上找到的源码原封不动的贴出来:var LittleUrl = { // public method for url encoding encode : function (str转载 2013-12-18 20:14:29 · 1255 阅读 · 0 评论 -
js获取客户端IP及地理位置
php获取方法:[php] view plaincopyprint?1.2.function get_ip_place(){ 3.$ip=file_get_contents("http://fw.qq.com/ipaddress"); 4.$ip=str_replace('"',' ',$ip); 5.$ip2转载 2014-02-28 18:32:28 · 865 阅读 · 0 评论 -
php 数组排序以及按照某个字段排序
如果你已经使用了一段时间PHP的话,那么,你应该已经对它的数组比较熟悉了——这种数据结构允许你在单个变量中存储多个值,并且可以把它们作为一个集合进行操作。经常,开发人员发现在PHP中使用这种数据结构对值或者数组元素进行排序非常有用。PHP提供了一些适合多种数组的排序函数,这些函数允许你在数组内部对元素进行排列,也允许用很多不同的方法对它们进行重新排序。在这篇文章中我们将讨论该排序中最重要的转载 2014-05-04 10:56:11 · 772 阅读 · 0 评论 -
PHP导出Excel 之 Spreadsheet_Excel_Writer
php//调用Writer.phprequire_once 'Spreadsheet/Excel/Writer.php';//创建Workbook$workbook = new Spreadsheet_Excel_Writer();//定义导出Excel文件名$workbook->send('test.xls');//创建Worksheet$worksheet =& $workbook->addW转载 2014-11-23 20:34:37 · 1341 阅读 · 0 评论 -
Laravel Nginx下配置路由 404 重定向 去index.php的rewrite的规则
在server下加入:location / { try_files $uri $uri/ /index.php$is_args$query_string; }原创 2014-11-30 15:30:25 · 7541 阅读 · 1 评论 -
nginx完美支持thinkphp3.2.2
第一步:配置SERVER块server { listen 80; server_name www.domain.com domain.com; error_page 404 /404.html; error_page 500 502 503 504 /50x.html; # \.php 只处理动转载 2015-09-03 00:03:48 · 8285 阅读 · 0 评论