Time of Update: 2016-06-13
跪求ajax問題聊天視窗跟聊天上面的getMessage()函數是擷取ajax尋找出來的資料,getMessage()函數裡面的.onreadystatechange指定的回呼函數中window.alert(mes);列印出來老是為空白,但是我ajax請求的getMessage頁面有返回資料啊,下面是ajax請求getMessage的代碼include "MessageServer.class.php";@header( 'Content-Type:text/xml;charset=utf-8'
Time of Update: 2016-06-13
php array讀取Array( [0] => stdClass Object([userName] => cheng))Array( [0] => stdClass Object ( [did] => 1 [comment] => Array ( [user_id] => 4 [userName] =>
Time of Update: 2016-06-13
iis下php上傳圖片報錯今天將做好的網站上傳至空間本地上傳好好的。但是上傳至空間上傳圖片時就報:Something error:500 Internal Server Errorcann't send post data to remote serverPlease check or try again later. 昨天還好好的今天上傳時就報這個錯誤。------解決思路----------------------cann't send post data to remote
Time of Update: 2016-06-13
請求大神來幫一下[production]phpSettings.display_startup_errors = 0phpSettings.display_errors = 0includePaths.library = APPLICATION_PATH "/../library"bootstrap.path = APPLICATION_PATH "/Bootstrap.php"bootstrap.class = "Bootstrap"appnamespace =
Time of Update: 2016-06-13
win下php5.5.12裝不上memcache擴充本帖最後由 Sbaoge 於 2014-10-15 10:34:08 編輯 實在是想不出來是怎麼回事,請大家幫幫忙!謝謝!系統是windows8 x64用的是WAMP整合套件,PHP版本5.5.12,TS下載的DLL是在PECL上下載的php_memcache-3.0.8-5.5-ts-vc11-x64.zip複製到擴充目錄,修改了php.ini,重啟Apache後依然提示未安裝擴充。-----
Time of Update: 2016-06-13
【phpcms-v9】緩衝目錄caches下的各個檔案的作用 原文地址:http://blog.csdn.net/yanhui_wei/article/details/7912957第一:caches/caches_commons目錄下快取檔案:[html] view plaincopy1.caches/caches_commons/caches_data/category_content.cache.php: 所有欄目對應的網站ID
Time of Update: 2016-06-13
php採集程式完成了大約10分鐘的採集後,出現fwrite(......)請求,出現警告,隨後出現丟包,有些網頁就出現抓取失敗的問題。。前面10分鐘都沒問題,10分鐘之後,fwrite(....)發送請求出現警告的頻率慢慢變大難道是被伺服器拒絕了請求?錯誤提示資訊:Notice: fwrite(): in E:\CodeEdit\php\http\001.php on line
Time of Update: 2016-06-13
竟然後台自動執行,這是php5.5的更新嗎?很簡單的一段代碼header('Content-Type:text/html;charset=utf-8');date_default_timezone_set('PRC');set_time_limit(0);$date=date("H:i:s");while($date{$date=date("H:i:s");file_put_contents("test.txt",
Time of Update: 2016-06-13
PHP經典項目案例-(一)部落格管理系統4本篇使用Ajax實現頁面無重新整理驗證使用者名稱是否存在。七、註冊頁面實現1、註冊頁面設計register.php部分代碼: 2、輸入框失去焦點後調用的javascript函數實現:fun.js:function chkUserName(){var c = document.getElementById('txt_regname');var d = c.value;var id;
Time of Update: 2016-06-13
php 數群組轉換字串函數, 我用thinkphp ,json_encode儲存中文,反斜線消失了php 數群組轉換字串函數, 我用thinkphp ,json_encode儲存中文,反斜線消失了原本是這個[{"title":"\u5173\u6ce8\u65f6\u56de\u590d","url":"\/index.php?g=User****"}]結果變成這個了[{"title":"u5173u6ce8u65f6u56deu590d","url":"\/index.php?g=User**
Time of Update: 2016-06-13
剛開始自學php,關於表單驗證,不明白,求幫忙// 定義變數並設定為空白值$name = $email = $gender = $comment = $website = "";if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = test_input($_POST["name"]); $email = test_input($_POST["email"]); $website = test_input($_POST["website"])
Time of Update: 2016-06-13
php soap錯誤 Premature end of data in tag html in line 1在windows下 沒有出現問題。在linux 就報錯了,錯誤如下:Couldn't load from 'xxxx' : Premature end of data in tag html line
Time of Update: 2016-06-13
給定a、b兩個檔案,各存放50億個url,每個url各佔用64位元組,記憶體限制是4G,如何找出a、b檔案共同的url?可以估計每個檔案的大小為5G*64=300G,遠大於4G。所以不可能將其完全載入到記憶體中處理。考慮採取分而治之的方法。 遍曆檔案a,對每個url求取hash(url)%1000,然後根據所得值將url分別儲存到1000個小檔案(設為a0,a1,...a999)當中。這樣每個小檔案的大小約為300M。遍曆檔案b,採取和a相同的方法將url分別儲存到1000個小檔案(b0,b1.
Time of Update: 2016-06-13
Regex如何匹配兩種情況我的連結存在這二個情況1,$str=xxx.php?a=aaa;2,$str=xxx.php?a=aaa&m=bbb;我自己寫的正則,但匹配不到,求高手協助寫一下:preg_match("/((.*?\.php)\?(.*))(?(&.*))/is",$str,$arr);想要的結果:當連結後面存在 &m=xxx 時,把
Time of Update: 2016-06-13
php 頁面出現亂碼怎麼辦?你好,我是一個PHP新手,在後台mysql伺服器上搭建了一個資料庫note,和一個表pcnote,pcnote表裡面有2個欄位,ID,和 customername. 我主要是串連資料庫用上一個insert語句。有兩個頁面,一個是form頁面,輸入一些資料,然後post到後面一個php頁面把這些值insert入表裡。但是現在post後出現亂碼:榪炴帴鎴愬姛你好sql鎵ц澶辮觸Unknown column '浣犲ソ' in 'field
Time of Update: 2016-06-13
ecshop改了模板類使用memcached之後怎麼判斷調用成功?問題就是這樣,function fetchfunction is_cached改了這兩個函數部分ecshop 自身是不報錯了,但是現在就是不知道 ecshop 對緩衝調用 成功不?請各位大大pp。help。/** * 處理模板檔案 * * @access public * @param string $filename * @param sting
Time of Update: 2016-06-13
請教mysql預存程序執行成功,php卻取不到值begindeclare tmp varchar(100);declare tmpjf int(10);if empid>0 then#select REPLACE(empfixed,'.',',' ) from kyydemploy where id=empid into @tmp;select substring(REPLACE(empfixed,'.',',' ) ,2,char_length(empfixed) -2) into
Time of Update: 2016-06-13
怎麼取出百度某熱門排行榜50條並在每條加前尾碼呢如http://top.baidu.com/buzz?b=26&c=1&fr=topcategory_c1------解決思路----------------------帶輸出的完整例子,你好好學習下。中間你想改什麼,直接改就可以了。function getContent($url){$ch = curl_init();curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch,
Time of Update: 2016-06-13
PHP插入資料庫是亂碼PHP擷取HTML的POST內容到資料庫,插入以後顯示亂碼,我資料庫編碼已經設定成UTF8了,然後插入之前我ECHO出來也不是亂碼,但是到資料庫裡面就成亂碼了,不知道為什麼呢,問之前我已經搜尋過了,說要先執行mysql_query("SET NAMES 'uft8'",$link);這樣,我這樣執行以後然後重新整理還是一樣,不知道怎麼解決呢,如果一個頁面解決了,那如果多個頁面都需要插入到資料怎麼辦呢,求有經驗的告訴下,謝謝。------解決思路---------------
Time of Update: 2016-06-13
求個一個smarty寫的註冊登入頁面需要一個smarty 寫的註冊登入頁面的代碼,另外需要項目建立需要的什麼檔案能,百度搜尋的不能用,本人想通過這個學習下samrty,我這裡先謝謝了。------解決思路----------------------自己寫一個smarty自訂函數,按照規範放到外掛程式目錄下就行了唄.......比如 函數名是login