上一页 1 2 3 4 5 6 7 ··· 11 下一页
  2013年4月24日
摘要: 很多时候需要获取一个请求的返回头信息,在php中可以通过curl的方式获取,还有更简单的php中有一个get_headers()函数就是专门用来做这个 的<?php$url = 'http://www.example.com';print_r(get_headers($url));print_r(get_headers($url, 1));?> 阅读全文
posted @ 2013-04-24 17:16 Right_MR 阅读(348) 评论(0) 推荐(0)
  2013年4月23日
摘要: // Returns true if $string is valid UTF-8 and false otherwise.function is_utf8($word){if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){1}/",$word) == true || preg_match 阅读全文
posted @ 2013-04-23 16:42 Right_MR 阅读(209) 评论(0) 推荐(0)
  2013年4月20日
摘要: 注册名:Free User注册码:6AC8D-784D8-DDZ95-B8W3A-45TFA 阅读全文
posted @ 2013-04-20 21:17 Right_MR 阅读(255) 评论(0) 推荐(0)
  2013年4月18日
摘要: 转自:http://hi.baidu.com/huahua035/item/4bff79d5268ae490260ae7a6VLC毫无疑问是优秀的一款播放软件,子B/S机构的web项目中,如果能把它嵌入页面,做页面预览或者其他,是非常棒的。第一步:下载VLC安装程序;(推荐1.0.3或者是1.0.5版本,比较稳定)http://download.videolan.org/pub/videolan/vlc/第二步:安装;(我实在XP上做测试滴,linux下面有测试过。。。)注意选中Mozilla插件,不然Firefox下就不能使用VLC控件啦(ActiveX插件是IE下的,我就是在IE下测试的) 阅读全文
posted @ 2013-04-18 15:14 Right_MR 阅读(1289) 评论(0) 推荐(0)
  2013年4月16日
摘要: 内容来源:https://profiles.google.com/112420231281452842795/buzz/8xTqKtusZ27Fetching mail from a POP3 server with Zend_MailI was in a need for a class to get mails from a pop server to process them, so I’ve decided to leverage the Zend_Mail class, what I did was to create a wrapper around the Zend_Mail, 阅读全文
posted @ 2013-04-16 18:16 Right_MR 阅读(364) 评论(0) 推荐(0)
  2012年7月30日
摘要: explorer-------打开资源管理器Nslookup-------IP地址侦测器 logoff---------注销命令tsshutdn-------60秒倒计时关机命令lusrmgr.msc----本机用户和组services.msc---本地服务设置oobe/msoobe /a----检查XP是否激活notepad--------打开记事本cleanmgr-------垃圾整理net start messenger----开始信使服务compmgmt.msc---计算机管理net stop messenger-----停止信使服务... 阅读全文
posted @ 2012-07-30 11:37 Right_MR 阅读(193) 评论(0) 推荐(0)
  2012年6月26日
摘要: 转自:http://dungenessbin.diandian.com/post/2012-04-20/19373103去年开发了一个OA系统,需要实现文档一键上传并实现在线预览,类似百度文库的功能。系统环境:CentOs5.5用到的工具:Openoffice 3 , Pdf2Swf tool , Jodconverter , FlexPaper网上找了些资料,早有人已经实现了这样的功能,只不过是用JAVA来写的东东,PHP的没找着。结合网上的资料根据实现操作经验。纪录并总结一下:整体思路如下:实现步骤: 1. DOC上传 2. DOC转成PDF 3. PDF转成SWF 4. 显示基于对Lin 阅读全文
posted @ 2012-06-26 18:41 Right_MR 阅读(918) 评论(0) 推荐(0)
  2012年6月7日
摘要: 转自:http://www.wufangbo.com/jquery-discuz-js$(id)函数冲突Discuz使用了S()作为对象选取函数,刚好与jQuery默认的$()函数重合造成冲突,代码依旧位于include/common.js中,如下:Code:function$(id) {returndocument.getElementById(id);}解决方法1:将jquery.js在common.js之前载入,不然jquery的$()函数会覆盖common.js的$()函数;然后用到jQuery的$()函数的地方都用jQuery()代替。解决方法2:将jquery.js在common. 阅读全文
posted @ 2012-06-07 14:17 Right_MR 阅读(427) 评论(0) 推荐(0)
  2012年5月30日
摘要: 转载自:http://www.neatstudio.com/show-1554-1.shtmlSQL: select * from table where id IN (3,6,9,1,2,5,8,7);这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序的,但如果我们真要按IN里面的顺序排序怎么办?SQL能不能完成?是否需要取回来后再foreach一下?其实mysql就有这个方法sql: select * from table where id IN (3,6,9,1,2,5,8,7) order by field(id,3,6,9,1,2,5,8,7);出来的顺序就 阅读全文
posted @ 2012-05-30 14:13 Right_MR 阅读(232) 评论(0) 推荐(1)
  2012年4月28日
摘要: table里的内容居中的话直接 用align=center valign=middle就可以了,但是要把整个table也居中,就必须再建一个页面大小的table,把目标table当成其中的内容来对待才行,代码如下:<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <tdalign="center" valign="midd 阅读全文
posted @ 2012-04-28 17:45 Right_MR 阅读(3939) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页