Time of Update: 2016-06-02
php mysql_connect("localhost","root","lvhui");mysql_query("set names gbk");$sql= "select * from user where username=$username and password=$password";$result=mysql_db_query("student",$sql); if
Time of Update: 2016-06-02
檔案寫入phpsocket編程 ping命令 class Http {const CRLF = " ";protected $fp = null;protected $errno = -1;protected $errstr = 'error';protected $fenxi = array();protected $method = '';protected $out = '';//我覺得不需要下面兩個protected $lineone =
Time of Update: 2016-06-02
php資料jsonweb service 我通過 WebService調用了一個介面, 它返回來的是一個xml檔案。檔案內容是這樣的形式: (不好意思,個人資訊不允許透露)。我不會PHP ,在網上找了下,用file_get_contents(“介面網址”)擷取了圖上的{}中的內容。現在我怎麼去操作才能擷取json的參數。比如我要擷取status的值進行判斷? 已經研究了幾天,網上也找了好久。望大神指點,小弟不勝感謝!(C幣只能這個了。T _
Time of Update: 2016-06-02
uchomephp 剛畢業工作4個多月,接觸的東西不多,最近公司一個項目用到uchome,完全搞不懂哪裡是哪裡,想請教一下各位,在上傳視頻的時候怎麼查詢出現在使用者的可用空間? $userid = $_POST['supe_uid']; $space = getspace($userid); $maxattachsize = checkperm('maxattachsize');//單位MB
Time of Update: 2016-06-02
soap對象phpjava編碼 介面方要xml但是 我用xml資料過不去 一直是 “未將對象引用設定到對象的執行個體。" ,只有用xml再轉對向才有傳回值 但是好像介面方沒有收到參數 "報文頭集團基本資料不完整,集團編碼、使用者、密碼為必填” ini_set("soap.wsdl_cache_enabled", "0"); header("content-type:text/html;charset=utf-8"); $
Time of Update: 2016-06-02
php遍曆遞迴 Array( [dir] => Array ( [F:\開發測試\test\9.14香奈兒1-10] => Array ( [dir] => Array ( [F:\開發測試\test\9.14香奈兒1-10\2362_G_13
Time of Update: 2016-06-02
php 剛開始學php,寫了一段文字產生圖片的代碼。現在發現不能將text傳至php裡,而且就算不傳參。直接在php裡定義$ment = $_POST['text'_] 也會報錯:映像xxx因存在錯誤無法顯示,肯定不是字型的問題,我快瘋了..誰能幫幫我...代碼如下index.html: Logo Generater logo generate.php:謝謝了...------------
Time of Update: 2016-06-02
解密pfxphp網域名稱限制本地調試 現需要本地調試PHP代碼,但是源碼進行了網域名稱限制,並將該檔案進行了加密,不知道要如何操作。另:改項目使用了ThinkPHP,以下是首頁源碼 //ThinkPHP路徑 define('THINK_PATH','./BDP2P/'); //定義項目名稱 define('APP_NAME', 'Home'); //定義項目路徑 define('APP_PATH',
Time of Update: 2016-06-02
php圖片url 普通地圖&全景body, html{width: 100%;height: 100%;overflow: hidden;margin:0;}#panorama {height: 100%;overflow: hidden;}var myGeo = new BMap.Geocoder();var url;// 將位址解析結果顯示在地圖上,並調整地圖視野myGeo.getPoint("北京世紀金源大飯店",
Time of Update: 2016-06-02
php 下面是我用的函數,可以正常轉換,就是轉換之後 英語句子裡面單詞之間沒有空格了,誰幫我看下。 function get_td_array($table) { $td_array = ""; $table = preg_replace("']*?>'si", "", $table); $table = preg_replace("']*?>'si", "", $table);
Time of Update: 2016-06-02
phpword亂碼 '; } function save($path){ echo ""; $data=ob_get_contents(); //返回輸出緩衝區的內容 ob_end_clean(); //清空緩衝區並關閉輸出緩衝 $this->writeFile($path,$data); //將緩衝區內容寫入word
Time of Update: 2016-06-02
php資料庫 問一下怎麼建立資料庫呢?登陸時已經可以完成的了,就是留言功能不能實現 留言板 返回connected!"; $selected = mysql_select_db("center" ) ;//if($selected)//echo"selected!";mysql_query("set names 'utf8'");$insert_account = $_SESSION['account'];$insert_pwd =
Time of Update: 2016-06-02
指令碼selectphp資料庫dos $link = mysql_connect('localhost','root','')or die('串連失敗'.mysql_error().mysql_errno()); mysql_query('create database if not exists an;');mysql_select_db('an');mysql_query('create table anweisong(id int ,name
Time of Update: 2016-06-02
phphtml表單 form標籤中action屬性為一個php檔案,使用post方法進行參數傳遞,我想做到的是 表單提交之後,php接受到post的內容進行處理,html頁面不跳轉,幕後處理好了之後,前段alert一下就可以了。這個咋做? function saveReport() { $("#showDataForm").ajaxSubmit(function (
Time of Update: 2016-06-02
php 比如我要輸出分類表的資料,原來是這樣死板的輸出數組//讀取主類型。$sql_0="select * from category where category_parent_id = 0 " ;$query_0=mysql_query($sql_0);while($rs_0 = mysql_fetch_array($query_0)){?>" >}?>定義一個頻道頁,輸出 【分類ID】
Time of Update: 2016-06-02
php問題php 分別用了curl和file_get_contents均無法擷取到內容,替換網址後就可以了,具體如下:我的遠程網址http://127.0.0.1:50/admin/process_get.php?k=get&s=11&i=12367&url=www.100.com 是可以訪問的,內容為77788899但通過curl和file_get_contents擷取此網址均無法擷取內容,導致伺服器卡死,將上述網址替換為其他的網址,一切正常!!
Time of Update: 2016-06-02
對象php繼承 class Person{ private $name; private $age; public function __construct($name,$age){ $this->name = $name; $this->age = $age; } public function show(){ echo $this->name."||"
Time of Update: 2016-06-02
驗證碼php函數 function verifyImg($width=80,$height=30){//定義畫布$img=imagecreatetruecolor($width, $height);//定義顏色$white=imagecolorallocate($img, 255, 255, 255);$black=imagecolorallocate($img, 0, 0, 0);//畫出畫布imagefilledrectangle($img,
Time of Update: 2016-06-02
luaphp 出錯的代碼如下,class_exists("Lua",false)為false,我在linux下輸入lua,能夠調用lua,請問我該如何進一步排查:public function getTableData($tableName) { $gameTable = array(); if (class_exists("Lua",false)) { $lua = new Lua ();
Time of Update: 2016-06-02
加密phpc# c#-------------private string DES3Encrypt(string data, string key, string iv){TripleDESCryptoServiceProvider DES = new TripleDESCryptoServiceProvider();DES.Key = ASCIIEncoding.ASCII.GetBytes(key);DES.IV = ASCIIEncoding.