1. 傳送簡訊 調用 TextMagic API。<?php// Include the TextMagic PHP librequire('textmagic-sms-api-php/TextMagicAPI.php');// Set the username and password information$username = 'myusername';$password = 'mypassword';// Create a new instance of TM$router =
1、刪除內容中的超連結ereg_replace('<a([^>]*)>([^<]*)</a>','<font color="red">\\2</font>',$content);ereg_replace("<a [^>]*>|<\/a>","",$content); 2、消除包含特定詞的超連結$find="this string is my find";$string='<font
作者:Tank http://hi.baidu.com/uroot 2008.1.31 Tank原創配置: httpd.conf中 設定檔寫法同Linux版本相同.使用環境:apache 2.2.x ,WIndows Server 2003 or Windows XP首先保證你的apache2.2.x能正常啟動,並提供服務。IE訪問伺服器HTTP時出現It works 字樣。1:你需要到http://www.zlatkovic.com/pub/libxml/ 下載一個iconv-1.9
PHPTeam Dev在發布了兩個更新版本,分別是5.4.14和5.3.24,修複了大約10個bug,建議所有的PHP使用者升級到PHP5.4.14。以下是ChangeLog:Version 5.4.1411-April-2013 Core: Fixed bug #64529 (Ran out of opcode space). Fixed bug #64515 (Memoryleak when using the same variablename two
<?php//This is a PHP 無組件產生BMP驗證碼來源程式,改自ASP無組件BMP驗證碼產生程式// Author: Wilson Chen// QQ: 36935338// Email: oeichenwei@yahoo.com// 通過程式內嵌的"0-9A-Z"的BMP字型庫產生真彩色BMP(當然也非常的小)// 為了儘可能的避免被crack,建議動態改變背景色,下載後適當變換字形庫。// 為了便於處理,驗證碼的位元必須為偶數位,比如4、6、8....//
This is a good news. PHP 5.2 support json. It's very easy to use. I like it, because I can transfer data between javascript and php freely accroading to this functions.json_encode(PHP 5 >= 5.2.0, PECL json:1.2.0-1.2.1)json_encode — Returns the