Time of Update: 2016-10-25
標籤:hang har ssl 儲存 span spel problem could not depend $ php composer.phar installLoading
Time of Update: 2016-10-23
標籤:函數 state 版本 自動 mode string color ble 對象 這篇是上一篇 http://www.cnblogs.com/charlesblc/p/598795
Time of Update: 2016-10-19
標籤:參考部落格連結:http://www.cnblogs.com/huangcong/p/3687665.html我的程式碼原生匯出Excel檔案<?phpheader(‘Content-type: text/html; charset=utf-8‘);header("Content-type:application/vnd.ms-excel");header("Content-Disposition:filename=test.xls");$conn = mysqli_connect(
Time of Update: 2016-10-16
標籤:PHP資料庫基礎:1.varchar;字串,用于姓名班級,地址等,地址一般長50,姓名長202.int;整數,用於成績,序號等3.float;小數4.bit;布爾型,用於性別等5.時間也用varchar,因為datatime取得值需要轉換6.text; 特別長的數 ,隨便往裡面仍 1.主鍵每個表都要有主鍵;主鍵是唯一的。全表中不能重複。2.自增長列自增長列是不好找主鍵時候用 名稱是ids 類型是int
Time of Update: 2016-10-08
標籤:Q:如果把使用者輸入的沒有任何改動的放到SQL的查詢語句中,很有可能會導致SQL注入,比如說下面的例子:$unsafe_variable = $_POST[‘user_input‘]; mysql_query("INSERT INTO `table` (`column`) VALUES (‘$unsafe_variable‘)");為什麼會有注入漏洞呢?因為使用者可以輸入value‘); DROP TABLE table;-- 然後查詢語句就變成了這樣INSERT INTO
Time of Update: 2016-10-11
標籤:html的form表單1 <form id="contact-form" method="POST" action="../php/msg.php">2 <input type="text" class="form-control" name="name" placeholder="name" id="name" required />3 <input type="email" class="form-control"
Time of Update: 2016-09-29
標籤:資料庫操作 安全性 明爭暗鬥 mysql 程式 長期以來,web的安全性存在著巨大的爭議與挑戰。其中,sql注入就是一種常見的一種攻擊方法,開發人員普遍的做法就是不停的過濾,轉義參數,可是我們php大法天生弱類型的機制,總是讓駭客有機可乘,繞過防禦與防禦總是在明爭暗鬥。
Time of Update: 2016-09-28
標籤:normal style color apple 審計 什麼是SQL注入SQL注入攻擊(SQL
Time of Update: 2016-09-25
標籤:PHP MySQLi基礎教程 MySQL從 MySQL 資料庫讀取資料SELECT 語句用於從資料表中讀取資料:以下執行個體中我們從表 MyGuests 讀取了 id, firstname 和 lastname 列的資料並顯示在頁面上: 以下執行個體讀取了 MyGuests 表的所有記錄並顯示在 HTML 表格中: 稿源:勤快學QKXue.NET擴充閱讀:從 MySQL
Time of Update: 2016-09-21
標籤:Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/Scientific Linux 7By SKShare on Facebook Tweet on Twitter LAMP is a combination of operating system and open-source software stack. The acronym of LAMP is derived
Time of Update: 2016-09-21
標籤:1.什麼是mysqlnd驅動?PHP手冊上的描述:MySQL Native Driver is a replacement for the MySQL Client Library (libmysql). MySQL Native Driver is part of the official PHP sources as of PHP 5.3.0. mysqldnd即mysql native
Time of Update: 2016-10-30
標籤:產生 常見 uniq merge blog 維數 div 數字 class $input = array("a" => "green", "red", "b" =>
Time of Update: 2016-10-28
標籤:轉換 string print bsp join lex span pap struct <?php$s=join(,file(‘httpapi.elong.comxmlv2.0ho
Time of Update: 2016-10-30
標籤:peter false 指定 資料 ros microsoft 對比 eve search php在數組中尋找指定值是否存在的方法有很多,記得很久以前我一直都是傻傻的用foreach迴圈來
Time of Update: 2016-10-22
標籤:get請求 usermod server 安全 基礎上 print 刪除 php架構 使用者資訊 Restful是一種設計風格而不是標準,比如一個介面原本是這樣的:http://www1.
Time of Update: 2016-10-05
標籤:php.exe(linux下是php/bin/php)是提供來在命令列(命令列解譯器)執行PHP檔案的工具,比如你在有檔案abc.php,那麼你可以在CMD命令提示字元下執行命令php.exe abc.php來運行這個PHP檔案。php-cgi.exe(linux下是php/bin/php-cgi)是提供來作為cgi(cgi解譯器)使用的,區別是在檔案輸出所有內容之前,會自動輸出一個下面的HTTP頭:X-Powered-By: PHP/5.2.5Content-type:
Time of Update: 2016-09-30
標籤: <?phpheader("content-type:text/html;charset=‘utf-8‘");//設定編碼echo "<meta content=‘text/html; charset=utf-8‘ http-equiv=‘Content-Type‘>"; //擷取API傳過來的資訊 queryDate 時間 from_station 始發站編號 to_station 到達站編號$url = "https://kyfw.12306.cn/otn/
Time of Update: 2016-09-24
標籤:PHP開發API介面及使用服務端<?phprequire ‘conn.php‘;header(‘Content-Type:text/html;charset=utf-8‘);$action = $_GET[‘action‘];switch ($action) { //註冊會員 case"adduserinfo"; $username = lib_replace_end_tag(trim(
Time of Update: 2016-09-20
標籤:win32+nginx+php自動掛掉php-cgi.exe RunHiddenConsole E:/wnmp/php5/php-cgi.exe -b 127.0.0.1:9000 -c "E:/wnmp/php5/php.ini" 第一步:下載xxfpm,地址就不提供了,百度搜一下,有很多。
Time of Update: 2016-09-21
nginx與php-fpm 504 Gateway Time-out 排查與解決案例很多人都都可能遇到過504 Gateway Time-out。有時候會讓人一頭霧水。解決方案:1.通過百度可以很多人的說法,調整 nginx配置或者php-fpm配置,配置大家都可以百度,在這邊就不多說。但是很多都嘗試了沒有什麼軟用。2.嘗試過上面的方法還是回到本質上是不是整站都是504.如果不是,我建議你開啟php-fpm 慢日誌來查看對應的頁面請求與響應慢是由哪個方法或者操作造成的。php-fpm