懒码农。。。。。。

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  PHP

摘要:strrev(PHP 3, PHP 4, PHP 5)strrev -- Reverse a stringDescriptionstring strrev ( string string )Returns string, reversed. 例子 1. Reversing a string with... 阅读全文
posted @ 2014-04-24 15:53 阿彬 阅读(242) 评论(0) 推荐(0)

摘要:转自: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 把前面的分号去掉第二... 阅读全文
posted @ 2010-02-25 12:56 阿彬 阅读(876) 评论(0) 推荐(0)

摘要:轉自 : http://www.focuslib.com/article/php/1244913925.shtml也可使用 mb_strimwidth 函數,但是中英文都算一個字符,出來后長短還是不一~代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--... 阅读全文
posted @ 2009-11-27 12:33 阿彬 阅读(240) 评论(0) 推荐(0)

摘要:转自:http://hi.baidu.com/rokaye/blog/item/7fcb5b882b00e79ca4c272b3.html虽然是个小问题,不过常被忽略~哈哈~错误语句:file_put_contents("/home/web/upload/faxFailelog.txt",$v.'--------'.Comm::getNow().’\n‘.$faileStr... 阅读全文
posted @ 2009-07-20 09:17 阿彬 阅读(2778) 评论(0) 推荐(0)

摘要: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... 阅读全文
posted @ 2009-07-16 11:32 阿彬 阅读(211) 评论(0) 推荐(0)

摘要:echo preg_replace("/^\W+/","","$^&*&*(())fdsafdsa"); 阅读全文
posted @ 2009-06-02 23:27 阿彬 阅读(316) 评论(0) 推荐(0)

摘要:章 38. 文件上传处理错误信息说明从 PHP 4.2.0 开始,PHP 将随文件信息数组一起返回一个对应的错误代码。该代码可以在文件上传时生成的文件数组中的 error 字段中被找到,也就是 $_FILES['userfile']['error']。 UPLOAD_ERR_OK其值为 0,没有错误发生,文件上传成功。 UPLOAD_ERR_INI_SIZE其值为 1,上传的文件超过了 php.i... 阅读全文
posted @ 2009-04-22 00:29 阿彬 阅读(2564) 评论(0) 推荐(0)

摘要:[代码]简单东西被自己搞复杂阿门~ 阅读全文
posted @ 2009-04-17 01:15 阿彬 阅读(166) 评论(0) 推荐(0)

摘要:[代码]邮件内容太长的时候会有问题 加上chunk_split简单的发送html格式邮件的功能,环境为centos5、postfix 阅读全文
posted @ 2009-04-16 01:53 阿彬 阅读(297) 评论(0) 推荐(0)

摘要:[代码]引用了一个JSON.php类来生成json数据,php5.2以后的版本~貌似已经自带了~json函数了~jQuery.ajax函数简单调用来数据提交~ 阅读全文
posted @ 2009-04-16 00:52 阿彬 阅读(422) 评论(0) 推荐(0)

摘要:[代码]select * from tablename order by rand() limit 1 一句MYSQL其实就可以实现该功能 阅读全文
posted @ 2009-04-16 00:48 阿彬 阅读(379) 评论(0) 推荐(0)

摘要:[代码]利用socket~ 阅读全文
posted @ 2009-04-16 00:44 阿彬 阅读(325) 评论(0) 推荐(0)