上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页
摘要: 1、JS方式调用PHP文件并取得PHP中的值举一个简单的例子来说明:如在页面test_json1中用下面这句调用: <script type="text/javascript" src="http://callmewhy.sinaapp.com/index.php/test/testjson2"> 阅读全文
posted @ 2016-04-05 21:44 孤舟残月浅笑嫣然 阅读(2445) 评论(0) 推荐(0) 编辑
摘要: /** * curl远程传输工具 */ public function post_curl($url,$body,$header,$type='POST'){ $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_HEADER,0);//0只要正文 curl_... 阅读全文
posted @ 2016-04-04 19:12 孤舟残月浅笑嫣然 阅读(244) 评论(0) 推荐(0) 编辑
摘要: $str = "?>\"s~!@#$%^&*()+_)(*&dsdffsde~!@#¥%……&*5545445()+——)(*&……%¥#@!~ 电影_后天 230809-peopl.e die我d.(*&^%$#@!!~"; echo match_chinese($str); function match_chinese($chars,$encoding='utf8') { $patter... 阅读全文
posted @ 2016-04-04 19:10 孤舟残月浅笑嫣然 阅读(2222) 评论(0) 推荐(0) 编辑
摘要: array( 'method' => 'POST', 'header' => 'content-type:application/x-www-form-urlencoded', 'content' => file_get_contents($file) ) )... 阅读全文
posted @ 2016-04-04 19:08 孤舟残月浅笑嫣然 阅读(309) 评论(0) 推荐(0) 编辑
摘要: domain;echo "\n"; echo getBaseDomain('http://51.ca/index.php')->domain;echo "\n"; echo getBaseDomain('http://blog.ab.cc.win.aisa.hk/index.php')->domain;echo "\n"; function getBaseDomain($url=''){... 阅读全文
posted @ 2016-04-04 19:01 孤舟残月浅笑嫣然 阅读(4094) 评论(0) 推荐(0) 编辑
摘要: <?php //namespace Component; /** * 2016-3-27 * @author ankang */ class Page { private $ShowPage; private $CountPage; private $Floorp; private $PageUrl 阅读全文
posted @ 2016-04-04 12:00 孤舟残月浅笑嫣然 阅读(330) 评论(0) 推荐(0) 编辑
摘要: <?php $db = mysql_connect('localhost', 'root', 'root') or die('Can\'t connect to database'); mysql_select_db('test') or die('Can\'t find database : te 阅读全文
posted @ 2016-04-04 11:58 孤舟残月浅笑嫣然 阅读(899) 评论(0) 推荐(0) 编辑
摘要: "; echo "下面开始排序"; echo ""; //外层循环空值轮次 for($i = 1; $i = 0;$j--) { if($x "; } } $arrayha = array(3,1,6,4,5,2); charu($arrayha); "; echo "下面开始排序"; echo... 阅读全文
posted @ 2016-04-04 11:51 孤舟残月浅笑嫣然 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-04-04 11:48 孤舟残月浅笑嫣然 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 在处理XML数据时,特殊字符要特殊处理,不能和节点字符混淆。 所有 XML 文档中的文本均会被解析器解析。 只有 CDATA 区段(CDATA section)中的文本会被解析器忽略。 PCDATA PCDATA 指的是被解析的字符数据(Parsed Character Data)。 XML 解析器 阅读全文
posted @ 2016-04-04 00:17 孤舟残月浅笑嫣然 阅读(2005) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 35 下一页