上一页 1 ··· 9 10 11 12 13
摘要: 开发过程中,在root下有多个程序,采用一个域名,以目录的形式访问,可以采用如下的方法进行url重写: rewrite ^(\/[^\/]+)(.*) $1/index.php$2 last; 意为取出第一个双斜杠中的内容,加入index.php,进行访问。 阅读全文
posted @ 2014-11-25 15:19 Bin_x 阅读(463) 评论(0) 推荐(0)
摘要: if (isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && $_SERVER["HTTP_X_REQUESTED_WITH"] "XMLHttpRequest") { } 阅读全文
posted @ 2014-11-19 13:45 Bin_x 阅读(270) 评论(0) 推荐(0)
摘要: 下载URL重写组件 http://www.microsoft.com/zh-cn/download/details.aspx?id=7435 导入官方提供的.htaccess文件 Options +FollowSymLinks IndexIgnore */* RewriteEngine on # i 阅读全文
posted @ 2014-10-24 16:49 Bin_x 阅读(892) 评论(0) 推荐(0)
摘要: 后台输出内容之前需要指定header("Access-Control-Allow-Origin: *"); post 之前 jQuery.support.cors = true; IE浏览器设置“工具->Internet 选项->安全->自定义级别”将“其他”选项中的“通过域访问数据源”选中为“启用 阅读全文
posted @ 2014-10-24 16:32 Bin_x 阅读(677) 评论(0) 推荐(0)
摘要: 仅本站访问或者没有跳转的可以访问: 1 if (isset($_SERVER["HTTP_REFERER"])) { 2 $referer = $_SERVER["HTTP_REFERER"]; 3 if (strpos($referer, 'http://***.***.com.cn') !== 阅读全文
posted @ 2014-10-22 16:57 Bin_x 阅读(220) 评论(0) 推荐(0)
摘要: 一般情况下,为了网站更安全,我们需要给文件或文件夹设置权限,在采用FTP登录的方式下,经常会用到755,766,777,644等设置。具体这些数字都代表什么意思呢?这三个数字分别表示:不同用户或用户组的权限。 第一个数字 表示文件所有者的权限 第二个数字 表示与文件所有者同属一个用户组的其他用户的权... 阅读全文
posted @ 2014-08-19 16:40 Bin_x 阅读(8543) 评论(0) 推荐(0)
摘要: 方法一: namespace MyNameSpace{ static class Program { [DllImport("Toolhelp.dll")] public static extern IntPtr CreateToolhelp32Snapshot(uint flags, uint p 阅读全文
posted @ 2014-03-24 16:03 Bin_x 阅读(481) 评论(0) 推荐(0)
摘要: HTML5 - 方法、属性以及事件方法play()——播放pause()——暂停load()——加载canPlayType——检测您的浏览器是否能播放不同类型的视频ex:var myVideo = document.getElementById("video1"); var lbl ... 阅读全文
posted @ 2013-12-19 15:44 Bin_x 阅读(262) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;public partial class Media_ImageCut : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) ... 阅读全文
posted @ 2013-12-09 15:34 Bin_x 阅读(378) 评论(0) 推荐(0)
摘要: in和exists in 是把外表和内表作hash 连接,而exists是对外表作loop循环,每次loop循环再对内表进行查询。一直以来认为exists比in效率高的说法是不准确的。如果查询的两个表大小相当,那么用in和exists差别不大。如果两个表中一个较小,一个是大表,则子查询表大的用exi... 阅读全文
posted @ 2013-12-02 13:41 Bin_x 阅读(867) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13