Time of Update: 2016-06-23
PHP 常量 dirname(__file__) __FILE__ :被稱為PHP魔術常量 ,返回當前執行PHP指令碼的完整路徑和檔案名稱,包含一個絕對路徑 1)dirname(__FILE__) 函數返回的是指令碼所在在的路徑。 比如檔案 b.php 包含如下內容: $basedir = dirname(__FILE__); echo $basedir
Time of Update: 2016-06-23
不知道怎麼會想要裝PHP^^前幾天弄了個WPblog和Boblog玩了下.感覺一個字"強" 一、安裝 PHP 1.php-5.1.2-Win32.zip,直接全部接壓至D:\php\目錄即可得PHP檔案存放目錄D:\php\ 2.再將PHP5為D:\php\和子檔案夾ext下的所有dll檔案拷到c:\Windows\system32(win2000系統為 c:/winnt/system32/)下,覆蓋已有的dll檔案
Time of Update: 2016-06-23
剛到公司配置ununtu的php環境,首先使用了php+apache,安裝很簡單,也不需要什麼配置。在網上看到nginx不錯,發現好多網站都用的nginx。於是乎,把apache撤了,裝nginx。那可是裝的我心都碎了。 安裝nginx,很簡單:sudo apt-get install nginx 然後是安裝php+mysql,也很簡單的:apt-get install php5-cli php5-cgi mysql-server-5.0 php5-mysql
Time of Update: 2016-06-23
安??明 http://files.cnblogs.com/Athrun/Win2003_set_php.rar URL?源 phphttp://www.php.net/downloads.php mysqlhttp://download.mysql.cn/http://www.mysql.com/downloads/mysql/http://dev.mysql.com/downloads/mirror.php?id=385573#mirrors
Time of Update: 2016-06-23
考慮過使用FASTCGI, 但是感覺安裝起來挺麻煩的,所以還是用ISAPI的方式 1. 下載PHP,我用的是PHP 5.2 (5.2.13), VC6 x86 Thread Safe (2010-Feb-24 15:33:12), Zip 2. 檔案解壓縮到c:\PHP 3. 配置環境變數path,添加C:\php;C:\php\ext; 4.開啟“ Internet 資訊服務(IIS)管理器”,在“ Web 服務擴充”裡,選擇“添加一個新的 Web
Time of Update: 2016-06-23
好久不碰PHP,略感生疏!不過將WEB 前端向PHP 遷移,勢在必行! 這裡介紹在Snow Leopard 上打造Nginx+PHP-CGI 開發環境! 有了MacPorts,一切都簡單了很多! 安裝Nginx sudo port install nginx 如果你和我一樣只想做開發環境,不想每次開機自動啟動Nginx的話,執行下面的命令: sudo launchctl unload -w
Time of Update: 2016-06-23
1. php-5.2.13-nts-Win32-VC6-x86.zip 解壓到 C:\PHP5 。 2. fcgisetup_1.5_x86_rtw.msi 進行安裝。 3. 於 C:\WINDOWS\System32\inetsrv> 執行 cscript fcgiconfig.js -add -section:"PHP" -extension:"php" -path:"C:\PHP5\php-cgi.exe" 4. 安裝
Time of Update: 2016-06-23
#author:zhxia 給php打上php-fpm 補丁 sudo tar jxvf php-5.2.14.tar.bz2sudo patch -d php-5.2.14 -p1 編譯php cd php-5.2.14/ sudo ./configure --prefix=/usr/local/php-5.2.14 --with-mcrypt --with-gettext --with-mysql --with-gd --with-jpeg-dir
Time of Update: 2016-06-23
轉自:http://www.21andy.com/blog/20100405/1799.html 有2種標準方法來使用 GeoIP 第一種方法: 先下載 GeoIP 資料檔案 wget -c http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz gunzip GeoIP.dat.gz
Time of Update: 2016-06-23
簡介:這是php 擷取 POST JSON 資料的詳細頁面,介紹了和php,php, post, json php 擷取 POST JSON 資料有關的知識、技巧、經驗,和一些php源碼等。 class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=359497' scrolling='no'>
Time of Update: 2016-06-23
php配置mongo擴充 a) 下載php_mongo.dll 官方下載地址: http://www.php.net/manual/en/mongo.installation.php#mongo.installation.windows 下載時看準檔案版本,要和你使用php的版本相同 如果版本使用錯了mongo擴充就無法啟用,下載後放到php擴充檔案夾下 b) 修改php.ini檔案 添加extension
Time of Update: 2016-06-23
1> 參考:http://www.cnblogs.com/zengxiangzhan/archive/2010/03/05/1679286.html 2> 下載 Microsoft Web Platform Installer.exe 來 下載 http://windows.php.net/downloads/releases/php-5.3.6-nts-Win32-VC9-x86.msi ,為了讓 IIS 支援 FastCGI IIS 5.1 和 IIS 6.0 安裝FastCGI :
Time of Update: 2016-06-23
第一步,裝apache 下載apache 的httpd-2.0.64-win32-x86-openssl-0.9.8o.msi到本地。 本來打算下新版2.2的,但是看頁面上顯示的是2.0的模組在2.2下可能會失效,所以就下得2.0的版本 然後設定檔httpd.conf 配置 DocumentRoot的為 我們網站的根目錄。 DocumentRoot "E:/apache_Dir/docRoot" 配置 DirectoryIndex 就是apache先載入的網頁檔案。
Time of Update: 2016-06-23
部分內容來源於網上,下載以下軟體包,可以選擇最新的 wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gzwget http://blog.s135.com/soft/linux/nginx_php/mcrypt/libmcrypt-2.5.8.tar.gz wget http://blog.s135.com/soft/linux/nginx_php/mcrypt/mcrypt-2.6.8.tar.gz wget
Time of Update: 2016-06-23
檔案目錄: --index.php --php --data_info.php index.php 這裡要require_once類所在的php檔案 setName("username"); $oneData->setPassword("password"); echo $oneData->getName(); echo $oneData->getPassword();?> data_info.php
Time of Update: 2016-06-23
php常見的區別 1. 單引號和雙引號 $abc=”world”; echo “ni hao $abc”; ---->輸出的是: ni hao world echo ‘ni hao $abc’; ----->輸出的是: ni hao $abc ?> 再如: echo “ni hao php”; ---->輸出的是: ni hao php echo ‘ni hao php’; ---->輸出的是: ni hao php ?>
Time of Update: 2016-06-23
簡介:這是PHP匯出Excel方法的詳細頁面,介紹了和php,有關的知識、技巧、經驗,和一些php源碼等。 class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=337300' scrolling='no'>使用定位字元、分行符號的方法 定位字元”\t”使用者分割同一行中的列,分行符號”\t\n”可以開啟下一行。
Time of Update: 2016-06-23
PHP技術交流群 170855791PHP有多個redis的擴充程式,我本人使用的是phpredis擴充 首先下載擴充程式PhpRedis,下載地址:https://github.com/nicolasff/phpredis 解壓後既可安裝擴充程式 進入phpredis目錄,執行以下命令: phpize./configuremake && make install 註:phpize命令存放在php安裝檔案的bin檔案夾下,如我的php安裝在/usr/local/
Time of Update: 2016-06-23
1.修改windows 網域名稱C:\WINDOWS\system32\drivers\etc\hosts127.0.0.1 localhost 192.168.0.100 abc127.0.0.2 a 2.修改apache的虛擬目錄C:\xampp\apache\conf\extra\httpd-vhosts.conf ServerName tradesns DocumentRoot D:/tradesns Options FollowSymLinks
Time of Update: 2016-06-23
With the release of Windows Server 2008 and IIS 7, Microsoft has included PHP5 FASTCGI support. ISAPI is still faster in my opinion, and if used correctly, very stable. PHP uses a 32-bit DLL so it will not work with an x64 system. There are several