上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: rsync --delete-before -a -H -v --progress --stats /var/tmp/ 目标文件夹 阅读全文
posted @ 2017-02-23 10:23 在下刘彦直 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 类的权限修饰符,放在属性/方法的前面。用来说明属性/方法的权限特点。 三种权限修饰符 private 私有的 public 公共 protected 保护的 privata 的属性、方法只能在类中访问。 阅读全文
posted @ 2017-02-22 08:42 在下刘彦直 阅读(152) 评论(0) 推荐(0) 编辑
摘要: __construct() 构造函数传递参数,并影响对象。对象产生时,自动执行。 析构函数 __destruct() 对象销毁时自动执行。 class human{ public $name; public $age; public function __construct($name,$age){ 阅读全文
posted @ 2017-02-20 22:59 在下刘彦直 阅读(2278) 评论(0) 推荐(0) 编辑
摘要: 关于属性值,可以声明并且赋值,也可以先不赋值,初始值为null. 属性值不能是表达式的值,也不能是一个函数的返回值。 类中的方法函数名可以和其全局的函数名重名。 this→t();调用内部的函数t() 阅读全文
posted @ 2017-02-19 18:51 在下刘彦直 阅读(308) 评论(0) 推荐(0) 编辑
摘要: class 类名 { 属性==变量赋值 方法==函数 } class PPP{ public $name='猪'; public function chi() { echo '每天吃十斤大米'; } } 把类转换成对象 new 类名(); 对象赋值给一变量 $a= new ppp(); $a就变成了 阅读全文
posted @ 2017-02-19 17:54 在下刘彦直 阅读(135) 评论(0) 推荐(0) 编辑
摘要: location ^~/目录名/{ allow +ip地址; deny all; include eneable-php.conf; } 阅读全文
posted @ 2017-02-15 16:21 在下刘彦直 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: 表达式? 条件1 :条件二 如果表达式为真就返回条件一,如果为假就返回条件2. isset() 函数 isset用来判断函数变量是否存在。 $action=isset($_GET['id']) ? $_GET['id'] : ''; 这句话的意思就是:如果$_GET['id']已经被设置,即已经有值 阅读全文
posted @ 2017-02-11 10:54 在下刘彦直 阅读(4382) 评论(0) 推荐(1) 编辑
摘要: 函数原型 mixed str_replace (mixed $search,mixed $replace,mixed $object [,int &$count]) $search 搜索要被替换的字符串 $replace 替换成的字符串 $object 要操作的字符串 &$count要替换的次数。 阅读全文
posted @ 2017-02-10 15:20 在下刘彦直 阅读(1717) 评论(0) 推荐(0) 编辑
摘要: 首先,清除所有预设置 iptables -F 其次,设置只允许指定ip地址访问指定端口 1、在tcp协议中,禁止所有的ip访问本机的1521端口。 iptables -I INPUT -p tcp --dport 1521 -j DROP 2、允许192.168.1.123访问本机的1521端口 i 阅读全文
posted @ 2017-02-08 17:25 在下刘彦直 阅读(11299) 评论(1) 推荐(0) 编辑
摘要: 查看MYSQL数据库中所有用户 mysql> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; 查看数据库中具体某个用户的权限mysql> show grants for 'cac 阅读全文
posted @ 2017-02-08 17:14 在下刘彦直 阅读(30276) 评论(0) 推荐(1) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页