Time of Update: 2016-06-23
php 目錄結構 + root index.php config.php +c index.php root/config.php 裡的內容 $shell['jquery'] = "jquery 1.4"; ?> root/index.php 裡的內容 include "config.php"; print $shell['jquery']; ?> root/c/index.php
Time of Update: 2016-06-23
看圖片吧,這種列表用PHP怎麼寫呢?求高人幫幫忙~ 回複討論(解決方案) ".date("Y年m月d日",strtotime($k." days"));echo "";}?> 代碼寫得很粗糙 $s='2013-05-31';$current=date("Y-m-d");while($current>=$s){ $ar[]=$current;$current=date("Y-m-d",strtotime("$current -7
Time of Update: 2016-06-23
想要做一個程式,可以連到公安的介面,進行社會安全號碼和姓名的驗證,不是簡單的正則驗證,有什麼思路? 回複討論(解決方案) 這個你需要上面給提供介面,網上看到有傳送簡訊的。 這個要看公安那邊的介面需要你提供哪些參數過去~~ 對普通人基本上是不會開通的,別想了~ 這個你需要上面給提供介面,網上看到有傳送簡訊的。 +1 需要公安那邊提供介面了! 直接看介面返回什麼 不會提供這樣的介面的,這些都是需要保密的資料。 需要介面,有這樣的公司 提供此介面的
Time of Update: 2016-06-23
本帖最後由 u012362664 於 2013-10-09 20:35:48 編輯 111,2=>12,3=>3333); $y1=in_array(12,$x1,true); echo $y1; echo "\r\n"; $x2=array(1=>111,2=>12,3=>3333); $y2=in_array('12',$x2,true); echo $y2; echo "\r\n"; $x3
Time of Update: 2016-06-23
data = [{y: 100,color: colors[0],drilldown: {name: 'MSIE versions',categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],data: [10.85, 7.35, 33.06, 2.81],color: colors[0]}}, {y: 21.63,color: colors[1],drilldown: {name: 'Firefox
Time of Update: 2016-06-23
php 我就貼上關鍵代碼 foreach ($logData as $key => $data) {$kItem[] = $key;//這裡變數後面的[]是什麼$dItem[] = $data;$cshu++;if($cshu == 8) $dItem[] = "i";}$field = implode(',', $kItem);$values = "'" . implode("','", $dItem) . "'";$this->db->query("INSERT INTO " .
Time of Update: 2016-06-23
php 請教各位一個問題: php 自訂驗證碼函數 function random_text($count, $rm_similar = false) { $chars = array_flip(array_merge(range(0, 9), range('A', 'Z'))); if ($rm_similar) { unset($chars[0], $chars[1], $chars[2], $chars[5],
Time of Update: 2016-06-23
所有定單 有效定單 已經取消的定單 三個月前的定單 近三個月的定單 我這邊本頁面重新整理 想儲存裡面的option的值 怎麼做呢 回複討論(解決方案) 三個月前的定單 如果是提交後返回(例如填錯資訊重新填寫),把對應值添加屬性 如果是未提交用戶端重新整理,在onchange裡面寫入cookies,頁面載入時js讀取這個cookie再改變對應的option 代碼自己寫吧,沒寫js多年了 不需要添加屬性 只要重新整理儲存他的值..
Time of Update: 2016-06-23
function defend_xss($val){return is_array($val) ? $val : htmlspecialchars($val);}function gpc($name,$w = 'GPC',$default = '',$d_xss=1){global $curr_script;if($curr_script==ADMINCP){$d_xss = 0;}$i = 0;for($i = 0; $i result_first("select userid
Time of Update: 2016-06-23
thinkphp 關聯查詢 有兩個表,一個是醫院r_hospital,另一個是科室r_department。怎樣關聯查詢,選擇完醫院之後,科室只顯示該醫院的科室,而不顯示其他醫院的了 回複討論(解決方案) 請貼出你的代碼 請貼出你的代碼 class RoomAction extends Action{ public function room(){ $room = M('department'); $h_id =
Time of Update: 2016-06-23
php 資料庫 資料 數組 假如不是特別複雜的操作,應該多次查詢資料庫擷取資料,還是一次查詢資料庫,然後再用數組拼接操作比較好呢?應該怎麼判斷哪種操作開銷比較大呢?謝謝 回複討論(解決方案) 資料庫查詢肯定次數約少越好啦 如果你的資料庫是mysql之類的關係型資料庫,瓶頸在磁碟讀寫IO,要盡量少取,因為PHP數組運算畢竟是記憶體操作;如果是redis、mongo之類的本身就是記憶體緩衝機制的資料庫就無所謂了。 這個要看是什麼資料庫了,不同的資料庫的處理方式不同。
Time of Update: 2016-06-23
字串如下: “http:\/\/www.sina.com\/music1\/23412455.mp3?time=2234523&type=mp3” “http:\/\/www.sina.com\/music2\/4325243.mp3?time=2234523&type=mp3” “http:\/\/www.sina.com\/music3\/346553.mp3?time=2234523&type=mp3” 需要對http開始,?結束之間的字串換成“abc”,在php的str_
Time of Update: 2016-06-23
111,2=>22111,3=>3333); $y1=in_array(111,$x1); echo $y1; echo "\r\n"; $x2=array(1=>111,2=>2211,3=>3333); $y2=in_array('111',$x2); echo $y2; echo "\r\n"; $x3=array(1=>111,2=>2211,3=>3333); $y3=in_array("111
Time of Update: 2016-06-23
回複討論(解決方案) http://www.php.net/manual/zh/index.php http://www.w3school.com.cn/php/index.asp http://bbs.csdn.net/topics/390512178 http://www.php.net/manual/zh/index.php http://www.w3school.com.cn/php/index.asp
Time of Update: 2016-06-23
在svn版本庫s中,有一些子目錄:a,b,c...n 我想給每個子目錄設定對應的使用者名稱和密碼 於是,在authz設定檔中這樣寫了 [/]username1=rw#*=rw[repository:/b]username2=rw 但是我從 svn://192.168.0.38/b 使用者名稱:username2 checkout時,總是提示:認證失敗 但是,使用者名稱username1可以登陸成功並out出子目錄b的資料 回複討論(解決方案)
Time of Update: 2016-06-23
php 架構 求靜態化PHP頁面的方法,不要用架構和模板。還要考慮到翻頁等。 謝謝各位!!! 回複討論(解決方案) 還要考慮更新問題!!!!!!(重要). 找個可以靜態化的CMS看看吧,比如DEDECMS,不用模板,不用架構。。。夠你寫的。 apache rewrite 自己做就只能用函數將頁面產生靜態頁面,然後通過rewrite實現url轉換從而實現靜態化 php urlrewrite 上面說的都是偽靜態 apache rewrite
Time of Update: 2016-06-23
本帖最後由 u012436313 於 2013-10-14 13:13:58 編輯 ';}$result = @socket_connect($socket, $server, $port);$buf = '你好啊我';$len = strlen($buf);socket_send($socket, $buf, $len, 0);socket_close($socket);?> Option ExplicitPrivate Sub Form_Load()
Time of Update: 2016-06-23
向高手們求助一個演算法 有數組: $arr=array(A,B,C); 要求輸出: A AB AC ABC B BA BC C CA CB 就是要輸出數組元素的所有組合,順序不要求,只要求能全部輸入就可以了 回複討論(解決方案) 上面還要輸出一個ACB,BAC,BCA,CAB,CBA 也就是 Array ( [0] => A [1] => AB [2] => AC [3] => ABC [4] => ACB [5
Time of Update: 2016-06-23
如上述代碼 主要實現點擊量的更新 但是在用echo $hits;測試時,結果一直為1,並且資料庫中hits值為0; 應該是最終沒有存取到資料庫中,應該怎麼修改 回複討論(解決方案) 用的是thinkPHP?你的save()方法如何知道你要更新的欄位?暫且拋開你的這種方式是否最佳 ,最起碼得符合save()方法的參數形式吧! 說實話,我是因為大作業需要而接觸PHP,THinkPHP更是剛開始看,時間比較緊,只能用什麼學什麼,所以基本功基本沒有
Time of Update: 2016-06-23
1:先輸出json //組合醫生資訊JSON$jsonDoctorInfo = "{\"mecdoctor\":[";$jsonDoctorInfo .= "{\"doctorId\":\"".$doctorId."\",\"doctorName\":\"".$strDoctorName."\",