博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 32 下一页

2013年4月25日

摘要: 笔记本WIFI共享在没有wifi设备的情况,iphone,pad无法使用WIFI是一件灰常郁闷的事,但是可以利用win7系统自带的dos命令把笔记本变身为一台无线AP发射器。以提供iphone pad等设备上网。1.打开win7开始菜单,找到命令提示符选项,以管理员身份运行。2.在命令行上输入 netsh wlan set hostednetwork mode=allow ssid=scc_wan key=1*197k51*,该字符串命令是将win7系统自带的虚拟无线网卡功能启动起来,其中"scc_wan"是ssid , "1*197k51*"是无线访问 阅读全文

posted @ 2013-04-25 16:40 PHP-张工 阅读(461) 评论(0) 推荐(0) 编辑

2013年4月24日

摘要: 博客目录 [2017-06-30] 阅读全文

posted @ 2013-04-24 11:11 PHP-张工 阅读(1968) 评论(0) 推荐(1) 编辑

摘要: 从 http://codeigniter.org.cn/ 代码中提取的userAgent解析使用方法:// 从 http://codeigniter.org.cn/ 代码中提取的userAgent解析include('user_agent.php');$user_agent = $_SERVER['HTTP_USER_AGENT'];$ua = new CI_User_agent($user_agent);echo $ua->platform() . '<br>';echo $ua->browser() . '&l 阅读全文

posted @ 2013-04-24 10:15 PHP-张工 阅读(8996) 评论(1) 推荐(1) 编辑

2013年4月15日

摘要: 布局特点:顶部固定、导航菜单固定、底部永远处于页面底部。代码如下:<!DOCTYPE html><html><head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> html, body { padding:0; margin:0; height:100%; position:re 阅读全文

posted @ 2013-04-15 11:11 PHP-张工 阅读(1114) 评论(1) 推荐(0) 编辑

2013年4月14日

摘要: 打开chrome目录下的C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\User Data\Default\User StyleSheets\Custom.css文件,添加如下样式:::-webkit-scrollbar { -webkit-appearance: none; width: 10px; height: 10px;}::-webkit-scrollbar-thumb { border-radius: 4px; border: 2px solid white; 阅读全文

posted @ 2013-04-14 11:07 PHP-张工 阅读(1617) 评论(1) 推荐(0) 编辑

2013年4月11日

摘要: function getHtml($url, $charset='utf-8'){ $curl = curl_init(); //curl_setopt($curl, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:192.168.168.1', 'CLIENT-IP:192.168.168.1'));//IP curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_REFERER, ""); //来路 $user 阅读全文

posted @ 2013-04-11 11:31 PHP-张工 阅读(2887) 评论(0) 推荐(0) 编辑

2013年3月13日

摘要: 使用JS处理触摸事件,实现图片的拖动缩放。将网页添加到主屏时,设置图标<link rel="apple-touch-icon-precomposed" href="images/icon.png">禁止IPAD自己的页面缩放功能<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">禁止页面的整体拖动document.body.addEventListener(' 阅读全文

posted @ 2013-03-13 10:15 PHP-张工 阅读(3122) 评论(1) 推荐(0) 编辑

2013年2月28日

摘要: PHP 中获取mysql的float字段,echo 输出后,小数部分为包含多个0.可使用 floatval($num) 将0舍去。如要保留小数位,可使用number_format($num, 2);number_format函数对超过指定位数的值,进行了四舍五入。如不想四舍五入,而保留所有小数。可使用如下方法:// 如仅想保留两位小数可用 number_format($num, 2);echo f('1001.334534', 2) . '<br>'; // 1001.334534echo f('-1001.000', 2) . &# 阅读全文

posted @ 2013-02-28 12:11 PHP-张工 阅读(1814) 评论(0) 推荐(0) 编辑

2013年2月27日

摘要: $format = 'The %2$s contains %1$04d monkeys! %s apples.';echo sprintf($format, 4, 'tree');// output: The tree contains 0004 monkeys! 4 apples.// number_format(数字, 保留小数位数, 小数分割符='.', 千分位分隔符=',');$num = 1234.567;echo number_format($num); // 1,235echo number_format($num, 阅读全文

posted @ 2013-02-27 10:45 PHP-张工 阅读(2892) 评论(0) 推荐(0) 编辑

2013年2月26日

摘要: PHP如何扑捉未处理异常class MyException extends Exception{ function MyException($message, Exception $ex = NULL) { $this->message = $message; $this->innerException = $ex; } public $innerException = NULL;}function exception_handler($exception){ $s = '<pre>' . var_export($exception, true) . & 阅读全文

posted @ 2013-02-26 21:54 PHP-张工 阅读(415) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 32 下一页