php
刘小明360
这个作者很懒,什么都没留下…
展开
-
phpmailer开源邮件类 部署到服务器上不能发送邮件
之前做了一个网站,用户注册时能够发送邮件给他,用的就是phpmailer开源邮件类,一直很不错的,在本地测试也很正常,可是等到正式部署到阿里云服务器时,问题出现了,注册时不能接收邮件,于是查找各种可能性,防火墙也是关掉的,还是不可以,又在网上各种搜,终于找到了一个方法,是fsockopen 函数的问题。在phpmailer下的class.stmp.php文件中找到转载 2014-12-19 13:00:55 · 3128 阅读 · 0 评论 -
PHP二维关联数组的对某一个值排序
Array( [0] => Array ( [id] => 169 [parent_id] => 0 [parent_ids] => [level] => 1 [group_id] => 10原创 2014-10-24 15:45:32 · 1615 阅读 · 0 评论 -
PHP中date()和strtotime()函数
checkdate(12,31,2000);//返回true或者falsedate();getdate();//数组信息microtime();//微秒mktime(0,0,0,12,36,2001);//超出自动延长strtotime("now");strtotime("3 October 2005");strtotime("+5 hours");strtotime("+1 we...原创 2018-06-14 23:16:40 · 386 阅读 · 0 评论 -
常见数组函数
$a = array("a"=>"Cat","b"=>"Dog","c"=>"Horse","d"=>"Cow");$b = array("a","b","c","d");$c = array('ca','cb'原创 2018-06-14 23:34:28 · 1863 阅读 · 0 评论 -
字符串处理函数
addslashes('Shanghai is the "biggest" city in China.');chop('hello world!','world!'); //函数移除字符串右端的空白字符或其他预定义字符 helloexplode(',','one,two,three,four');//Array ( [0] => one [1] => two [2] => ...原创 2018-06-14 23:35:22 · 272 阅读 · 0 评论 -
PHP基础知识总结
<?php/*标识符:字母数字下划线不能数字开头变量 以$开始,区分大小写常量:所有字母大写,出现多个单词时使用下划线进行分割。数据类型:整形、浮点型、字符串、bool型、数组、对象、资源、null*/define(标识符,值);define("PI",3.1415);/*包含代码*/include '1.php'; //在引用失败时产生一个警告,之后的代码继续运行require '1.p...原创 2018-06-14 23:36:16 · 290 阅读 · 0 评论