摘要:strrev(PHP 3, PHP 4, PHP 5)strrev -- Reverse a stringDescriptionstring strrev ( string string )Returns string, reversed. 例子 1. Reversing a string with...
阅读全文
随笔分类 - PHP
摘要:转自:http://www.hack41.cn/article.asp?id=309使用curl_init的时候,要报错?Fatal error: Call to undefined function curl_init() in XX:\XX\XX\XX.php on line 3?需要到哪里去设置呢?第一:找到php.ini修改extension=php_curl.dll 把前面的分号去掉第二...
阅读全文
摘要:轉自 : http://www.focuslib.com/article/php/1244913925.shtml也可使用 mb_strimwidth 函數,但是中英文都算一個字符,出來后長短還是不一~代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--...
阅读全文
摘要:转自:http://hi.baidu.com/rokaye/blog/item/7fcb5b882b00e79ca4c272b3.html虽然是个小问题,不过常被忽略~哈哈~错误语句:file_put_contents("/home/web/upload/faxFailelog.txt",$v.'--------'.Comm::getNow().’\n‘.$faileStr...
阅读全文
摘要:PHP_VERSION 常量 显示出当前Php版本 同phpversion()函数功能相同phpinfo()函数 可以带个int类型的参数以下来源PHP手册:bool phpinfo ( [int what] ) Name (constant) Value Description INFO_GENERAL 1 The configuration line, php.ini location, bu...
阅读全文
摘要:echo preg_replace("/^\W+/","","$^&*&*(())fdsafdsa");
阅读全文
摘要:章 38. 文件上传处理错误信息说明从 PHP 4.2.0 开始,PHP 将随文件信息数组一起返回一个对应的错误代码。该代码可以在文件上传时生成的文件数组中的 error 字段中被找到,也就是 $_FILES['userfile']['error']。 UPLOAD_ERR_OK其值为 0,没有错误发生,文件上传成功。 UPLOAD_ERR_INI_SIZE其值为 1,上传的文件超过了 php.i...
阅读全文
摘要:[代码]邮件内容太长的时候会有问题 加上chunk_split简单的发送html格式邮件的功能,环境为centos5、postfix
阅读全文
摘要:[代码]引用了一个JSON.php类来生成json数据,php5.2以后的版本~貌似已经自带了~json函数了~jQuery.ajax函数简单调用来数据提交~
阅读全文
摘要:[代码]select * from tablename order by rand() limit 1 一句MYSQL其实就可以实现该功能
阅读全文

浙公网安备 33010602011771号