随笔分类 -  PHP

摘要:function generateImg($source, $text1, $text2, $text3, $font = './msyhbd.ttf') { $date = '' . date ( 'Ymd' ) . '/'; $img = $date . md5 ( $source ... 阅读全文
posted @ 2014-12-11 17:01 bigwhiteshark(云飞扬) 阅读(10896) 评论(0) 推荐(0)
摘要:array2json is a PHP function that will convert the array given as its argument into a JSON string. The created JSON string will be returned. This is very useful in Ajax apps usingJSON over XML. If you are using XML, you better off using myxml2array() JavaScript function.Note:This is an old function 阅读全文
posted @ 2014-04-04 14:45 bigwhiteshark(云飞扬) 阅读(1396) 评论(0) 推荐(0)
摘要:在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个"PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, 阅读全文
posted @ 2011-01-21 18:56 bigwhiteshark(云飞扬) 阅读(17232) 评论(0) 推荐(0)