解決PHP輸入完「許功蓋」後,反回「許\功\蓋\」的處理方法。 
解決PHP輸入完「許功蓋」後,反回「許\功\蓋\」的處理方法。

e.g.
$word = "許\功\蓋\";
echo str_replace("\\\\","\\",$word);

[ 發表回應 ] ( 14預覽 )   |  常註連結  |   ( 3 / 603 )
php 編譯、安裝應該注意的事項 
安裝步驟: Apache > MySQL > Php

Php 其它程式需求:
GNU Autoconf
GNU automake
GNU sed
gcc
GNU Make
flex
Bison
Perl
GNU Tar
libxml2
Apache
MySQL

Php Install Script :

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --enable-dbase --with-libxml-dir=/usr/local/include --with-gd --with-jpeg-dir=/usr/local/include --with-png-dir=/usr/local/include --with-zlib --enable-mbstring

./configure --with-apxs2=/usr/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --enable-dbase --with-libxml-dir=/usr/local/include --with-gd=/usr/local --with-jpeg-dir=/usr/local/include --with-png-dir=/usr/local/include --with-zlib --with-freetype-dir=/usr/local/include/freetype2 --with-xpm-dir=/usr/local/include --enable-mbstring

[ 發表回應 ] ( 9預覽 )   |  常註連結  |   ( 3.1 / 626 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |