php遇见的错误(一)

1、linux 执行脚本时报的错 Call to a member function on a non-object in    是没有实例化对象 解决方法 new类

2、在给一个表增加一个新字段或者改变表结构时先进行锁表,防止在改变时有其他人操作而引起数据问题(如数据丢失)

3、sleep 让程序间隔执行

4、substr_count() 函数计算子串在字符串中出现的次数。

5、htmlspecialchars() 函数把预定义的字符转换为 HTML 实体。

6、if ( 1e+014 <= $nAmount ) 这是一个很大的数

7、chown ftpd /www/prima/htdocs/store/*.php    将这个目录下的文件都改成ftpd所属主
    chgrp ftpd /www/prima/htdocs/store/*.php    将这个目录下的文件都改成ftpd所属组

8、************************************
没有权限报的错
*    User Agent/Browser: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
*    Request Method: POST
*    Remote Address: 124.205.32.10
*    Remote Port: 53241
    Referring Page: http://203.158.18.12/store/domainResult.php

    Server Administrator/Contact: [no address given]
    Server Name: 203.158.18.12
*    Server Port: 80
*    Server Protocol: HTTP/1.1
*********************************************

原文地址:https://www.cnblogs.com/gaogaoxingxing/p/5959430.html