WAMP .5修改方法 修改httpd.conf文件 # onlineoffline tag - don't remove Require local To # onlineoffline tag - don't remove Require all granted 参考:http://stackoverflow.com/questions/28560452/403-forbidden-wamp-server-2-5 ---------------------------------------…
直接上图: 1:修改httpd.conf; deny from all 改成------ allow from all 重启服务就好了: 2:如果搜不到deny from all 就按照下面的方法来 也是修改httpd.conf文件 # onlineoffline tag - don't remove Require local 改成------ # onlineoffline tag - don't remove Require all granted 重启服务就好了;…
修改httpd.conf文件 # onlineoffline tag - don't remove Require local To # onlineoffline tag - don't remove Require all granted 参考:http://stackoverflow.com/questions/28560452/403-forbidden-wamp-server-2-5…
<% //取用户操作系统信息 String agent = request.getHeader("User-Agent") == null ? "": request.getHeader("User-Agent"); //out.print(agent); //agent.contains("Android")判断字符串中是否包含Android if(agent.contains("Android")…
可以通过js来判断访问设备,代码如下: <script type="text/javascript"> var system ={}; var p = navigator.platform; system.win = p.indexOf("Win") == 0; system.mac = p.indexOf("Mac") == 0; system.x11 = (p == "X11") || (p.indexOf(&…
首先在模块处填入代码: //手机网页跳转 //如果检测到访问的浏览器为下列一个指定的移动浏览器 则返回true function is_mobile(){ $regex_match="/(nokia|iphone|android|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|"; $regex_match.="htc|dopod|blazer|netfront|helio|hosin|huawei…
<?php function isMobile(){ $useragent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock=preg_match('|\(.*?\)|',$useragent,$matches)>0?$matches[0]:''; function CheckSubstrs($substrs,$text){ foreach($subst…
<script type="text/javascript">        <!--        //平台.设备和操作系统         var system ={            win : false,            mac : false,            xll : false        };        //检测平台         var p = navigator.platform;        alert(p);   …
/*判断用户是手机访问还是电脑访问*/$useragent = $_SERVER['HTTP_USER_AGENT']; if (preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|ope…
Nginx 403 forbidden的解决办法. 常见的,引起nginx 403 forbidden有二种原因,一是缺少索引文件,二权限问题. 1.缺少index.html或者index.php文件  server {     listen       80;     server_name  localhost;     index  index.php index.html;     root  /var/www; } 如果在/var/www下面没有index.php,index.html…