Time of Update: 2016-07-28
本文會記錄到以下內容:1、Visual C++ 2008 對php幹啥的 Apache啟動時無法載入php5apache2_2.dll解決辦法 這個組件包是應用軟體一起發布給終端使用者的軟體包,使用者只要安裝這個和你的應用程式,即可運行你製作的應用。 你用VC++2008編製的應用程式,編譯連結產生可執行檔後, 要想在沒有安裝VC++2008的電腦上允許,就需要這個軟體包。
Time of Update: 2016-07-28
首先寫前端:寫在10.html頁面上htmlxmlns="http://www.w3.org/1999/xhtml"lang="zh-CN">head>metahttp-equiv="Content-Type"content="text/html; charset=UTF-8">title>10title>metaname="description"content=""
Time of Update: 2016-07-28
以下問原創教程,想看請百度中搜尋“SharEDITor”進入網站教你成為全棧工程師(Full Stack Developer) 〇-什麼是全棧工程師(2016-04-04)教你成為全棧工程師(Full Stack Developer) 一-各顯神通總結八大類程式設計語言的區別(2016-04-06)教你成為全棧工程師(Full Stack Developer) 二-半小時學會網站開發(2016-04-08)教你成為全棧工程師(Full Stack Developer) 三-網站後端伺服器那些事(
Time of Update: 2016-07-28
直接貼代碼: "127.0.0.1", "user" => "root", "password" => "root", "dbname" => "app", "apiurl"=>"http://127.0.0.1:2348/api/v1/saveUserIPInfo" ); }else{ return array( "host" => "192.168.
Time of Update: 2016-07-28
有一周沒有寫了,我知道其實不算長,但是我的想法就是一周一篇把,不多不少,能把這周看的東西記錄一下。 上周最重大的事情就是,我實在受不了虛擬機器不能PING主機,網上說橋接的模式都是在win7模式下,但是WIN8根本橋接不了,而且網上的教程基本都是基於WIN7的,於是狠下心來重裝系統,別了WIN8,別了UBUNTU,自己折騰一晚上也沒有成功,我自己裝的話,說我系統少一個檔案,感覺有點無奈,只能找人幫我重裝系統。
Time of Update: 2016-07-28
header("Content-type:text/html;charset=utf-8");echo"第一個";echo"";$num=14; for ($i=1; $i $num; $i++) { for ($k=0; $k $num - $i; $k++) { echo' '; } for ($j=1; $j $i*2-1; $j++) { echo' *'; } echo'';
Time of Update: 2016-07-28
Apache url_rewrite:LoadModule rewrite_module modules/mod_rewrite.soRewriteEngineonRewriteBase / RewriteCond%{REQUEST_FILENAME} !-d RewriteCond%{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]#RewriteRule ^(.*)$
Time of Update: 2016-07-28
header("Content-type:text/html;charset=utf-8");echo"9*9乘法表";echo''; for ($i=1; $i 10; $i++) { echo''; for ($j=1; $j 10 ; $j++) { echo''; if ($j > $i) { continue; }
Time of Update: 2016-07-28
最近使用PHP有關時間處理的頻率比較高,現在整理一下知識點。time()time() 函數返回目前時間的 Unix 時間戳記。$t=time();echo($t . "");這裡的$t對象輸出的是一個數字,這個數字表示從1970-01-01到現在共走了多少秒。感覺沒啥用啊,這時候需要使用date函數將該對象轉化為我們需要的日期了。date(format,,timestamp)date函數格式非常靈活,使用方法多種多樣,足以滿足你在開發過程中遇到的各種情況。format : 必填項,
Time of Update: 2016-07-28
html>head>metacharset="utf-8">title>三層forecachtitle>head>body>$wage = array( "大一" => array( array(1, '張', '班長', '19'), array(2, '李','學委','18'), array(3, '王','學生','19'), ), "大二" => array(
Time of Update: 2016-07-28
使用php調用webservice,有個非常方便的封裝類nusoap,可以在http://sourceforge.net/projects/nusoap/files/下載。NuSOAP的使用比較簡單,其中最常用到的類是soap_server和soapclient, 其中soap_server用於建立 Webservice服務,類soapclient則用於調用Webservice .這兩個類的定義都在lib/nusoap.php中,因此我們在建立
Time of Update: 2016-07-28
php函數:產生css函數//該函數產生一個cssfunctionpage($bgcolor = NULL,$font_color = NULL,$font_size){echo"";}page('red','green','24');?>* ').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering);
Time of Update: 2016-07-28
錯誤log配置和訪問log配置[root@slave nginx]# vi /etc/nginx/nginx.confworker_processes 1;error_log /var/log/nginx/error.log;events { worker_connections 1024;}http { include mime.types; default_type application/octet-stream; sendfile
Time of Update: 2016-07-28
php比如,今天是2102年11月2號,那麼php要擷取2102年11月2號的時間戳記是怎麼辦的呢?代碼:echostrtotime(date('Y-m-d')),''; 擷取明天淩晨的時間戳記代碼:echostrtotime(date('Y-m-d',strtotime('+1 day'))),''; 附上測試代碼:echo strtotime('2012-11-2'),'';echo strtotime('2012-11-2 00:00:00'),'';echo strtotime(
Time of Update: 2016-07-28
其實這個功能很簡單,發出來做一個備份,產生的時間可直接寫入至資料庫。publicfunctionat(){$localtime = date('Y-m-d H:i:s', time()); return$localtime; }').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering);
Time of Update: 2016-07-28
//1.普通PHPer:第一二中屬於迴圈$sum=0;for($i=1;$i$sum+=$i;}echo $sum;//2.文藝PHPer:$sum= $i = 0;while( $i$sum += ( $i++ );// $sum += $i;$i++;}echo $sum;//3.遞迴帝:function get_sum($n){return $n==1?1:$n+get_sum($n-1);}echo get_sum(100)
Time of Update: 2016-07-28
本文執行個體講述了php函數傳值的引用傳遞注意事項。分享給大家供大家參考,具體如下:Strict standards: Only variables should be passed by reference網上查到資料有這麼一句話:在php5.3以上版本會出這個問題,應該也和php的配置有關,只要把這一句拆成兩句就沒有問題了。因為array_walk的參數是引用傳遞的,5.3以上預設只能傳遞具體的變數,而不能通過函數傳回值。當然你也可以修改php.ini 裡的 error_reporting
Time of Update: 2016-07-28
平時寫項目的時候經常會碰到操作資料庫,每次操作資料庫的時候最麻煩的就是要寫一個表映射的類,根據規律總結寫了一個自動產生的小demo:// 資料庫配置參數$db_config = array( 'host' => '127.0.0.1', 'port' => 3306, 'username' => 'root', 'password' => '', 'dbname' => 'joe_db', 'charset' => 'utf8');$tablePre =
Time of Update: 2016-07-28
本文總結了php好代碼的風格,分享給大家供大家參考,具體如下:1、避免使用魔數if($age這個18不太明白為什麼要這樣子。可以將28定義在一個變數裡面,這個變數命名表明了這個值的含義$adult_age =
Time of Update: 2016-07-28
本文講述了php編譯安裝php-amq擴充的方法。分享給大家供大家參考,具體如下:用途:這個擴充是用來操作rabbitmq服務端的一、安裝總括1、編譯安裝librabbitmq庫這是一個開源c語言的庫。用來與rabbitmq進行通訊而php的php-amqp擴充就是使用這個庫與服務端通訊。所以必須先安裝這個開源庫。下載地址:https://github.com/alanxz/rabbitmq-c/點擊此處本站下載。2、編譯php-amqp擴充的源碼註:兩個的版本要指定,避免衝突。librabbi