上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 28 下一页
摘要: C++ 1 class Solution { 2 public: 3 /** 4 * @param a a number 5 * @param b a number 6 * @return the result 7 */ 8 string ad... 阅读全文
posted @ 2015-11-26 20:00 ZH奶酪 阅读(257) 评论(0) 推荐(0) 编辑
摘要: C++ 1 class Solution { 2 public: 3 /* 4 * @param a: The first integer 5 * @param b: The second integer 6 * @return: The sum of a an... 阅读全文
posted @ 2015-11-26 19:33 ZH奶酪 阅读(186) 评论(0) 推荐(0) 编辑
摘要: C++ 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x),... 阅读全文
posted @ 2015-11-26 19:27 ZH奶酪 阅读(253) 评论(0) 推荐(0) 编辑
摘要: C++ 1 class Solution{ 2 public: 3 /** 4 * @param n: an integer 5 * @return an integer f(n) 6 */ 7 int fibonacci(int n) { 8 ... 阅读全文
posted @ 2015-11-26 19:19 ZH奶酪 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 帐号:cheesezh 阅读全文
posted @ 2015-11-26 19:14 ZH奶酪 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Hybrid App越来越火,Ionic的框架也逐渐被更多的人熟知。 在mobile app中,消息推送是很必要的一个功能。 国内很多ionic应用的推送都是用的极光推送,最近研究了一下Ionic自己做的推送,由于它自己官方文档不是很详细并且基于很多假设(假设读者熟悉Apple Develo... 阅读全文
posted @ 2015-11-16 17:35 ZH奶酪 阅读(784) 评论(0) 推荐(1) 编辑
摘要: 一 单行文本overflow: hidden;text-overflow: ellipsis;white-space: nowrap;overflow 属性规定当内容溢出元素框时发生的事情。visible默认值。内容不会被修剪,会呈现在元素框之外。hidden内容会被修剪,并且其余内容是不可见的。s... 阅读全文
posted @ 2015-10-23 16:50 ZH奶酪 阅读(1865) 评论(1) 推荐(1) 编辑
摘要: From:http://www.jb51.net/article/24343.htm在做一些天气预报或者RSS订阅的程序时,往往需要抓取非本地文件,一般情况下都是利用php模拟浏览器的访问,通过http请求访问url地址,然后得到html源代码或者xml数据。得到数据我们不能直接输出,往往需要对内容... 阅读全文
posted @ 2015-10-07 11:13 ZH奶酪 阅读(924) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://my.oschina.net/zhangb081511/blog/160113PHP写XML方法很多,这里主要介绍一下DOMDocument的用法,跟 JS大体上相同,其实非常简单。[PHP XML DOM链接]共分四个文件,分别是创建、增加、删除、修改四个功能,变量都是写死... 阅读全文
posted @ 2015-10-07 10:25 ZH奶酪 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://blog.csdn.net/xyzhaopeng/article/details/6626340从一个HTML页面的一个表格中提取数据并且将这个数据整理出来加入到MySQL数据库中。假设目标HTML中我感兴趣的Table有3列,分别是ID,Name,内容。index.phpl... 阅读全文
posted @ 2015-10-07 10:22 ZH奶酪 阅读(959) 评论(0) 推荐(0) 编辑
摘要: $html = file_get_contents("http://www.somesite.com/");$dom = new DOMDocument();$dom->loadHTML($html);echo $dom;THROWSWarning: DOMDocument::loadHTML():... 阅读全文
posted @ 2015-10-07 10:15 ZH奶酪 阅读(2748) 评论(0) 推荐(0) 编辑
摘要: 来源:http://stackoverflow.com/questions/5164930/fatal-error-maximum-execution-time-of-30-seconds-exceeded(1)modify the parameters in php.inimax_executio... 阅读全文
posted @ 2015-10-07 10:04 ZH奶酪 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.phpfensi.com/php/20140107/1128.html通过图片地地址把图片保存到本址,这里我们直接通过readfile读取然后通过fopen保存即可,实例代码如下:函数返回图片下载完后保存的名字,那么只需在数据库中存储 图片目录+图片名即可。 阅读全文
posted @ 2015-10-07 09:59 ZH奶酪 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://coolshell.cn/articles/664.html参考链接:http://www.runoob.com/php/php-ref-curl.html使用PHP的cURL库可以简单和有效地去抓网页。你只需要运行一个脚本,然后分析一下你所抓取的网页,然后就可以以程序的方式... 阅读全文
posted @ 2015-10-06 23:31 ZH奶酪 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://mangguo.org/php-string-encoding-convert-and-detect/GBK 和 UTF-8 编码的转换是一个非常恶心的事情,比如像 PHP 中的 json_encode 本身根本不支持 GBK 形式的编码。有两个库函数能够支持编码的转换,通常... 阅读全文
posted @ 2015-10-06 23:21 ZH奶酪 阅读(1940) 评论(0) 推荐(0) 编辑
摘要: http_build_query(PHP 5)http_build_query -- 生成 url-encoded 之后的请求字符串描述string http_build_query ( array formdata [, string numeric_prefix] )使用给出的关联(或下标)数组... 阅读全文
posted @ 2015-10-06 23:18 ZH奶酪 阅读(1820) 评论(0) 推荐(0) 编辑
摘要: 原文:http://yuguo.us/weblog/php-rest-api/表征状态转移(英文:REpresentational State Transfer,简称REST)是Roy Fielding博士在2000年他的博士论文中提出来的一种软件架构风格。越来越多的公司开放了API,比如腾讯开放平... 阅读全文
posted @ 2015-10-06 23:12 ZH奶酪 阅读(3900) 评论(0) 推荐(0) 编辑
摘要: error_log() 是发送错误信息到某个地方的一个函数,在程序编程中比较常见,尤其是在程序调试阶段。bool error_log ( string $message [, int $message_type = 0 [, string $destination [, string $extra_... 阅读全文
posted @ 2015-10-06 22:48 ZH奶酪 阅读(5991) 评论(0) 推荐(0) 编辑
摘要: 通过PHP的全局变量可以获取很多有用的信息,进而完成一些常用的功能.例如:解析当前URL,获取当前参数,前一URL,用户的一些信息等等.http://www.w3school.com.cn/php/php_superglobals.aspPHP 中的许多预定义变量都是“超全局的”,这意味着它们在一个... 阅读全文
posted @ 2015-10-06 22:29 ZH奶酪 阅读(819) 评论(0) 推荐(1) 编辑
摘要: 下面列了五个例子来详细说明,这几个例子的主要功能是:在5秒后,自动跳转到同目录下的hello.html(根据自己需要自行修改)文件。1) html的实现 优点:简单缺点:Struts Tiles中无法使用2-1) javascript的实现[location.href]setTimeout() 方... 阅读全文
posted @ 2015-10-06 22:15 ZH奶酪 阅读(1547) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 28 下一页