摘要:
要求:多个子表数据格式需一致 阅读全文
摘要:
const 修饰类属性 1 class Person 2 { 3 const HOST = 'localhost'; 4 5 public function say(){ 6 echo 'hello'; 7 } 8 } 9 10 echo Person::HOST; final 最终版本,不允许被继承:修饰类或方法 1 f... 阅读全文
摘要:
__construct 构造方法 1 class Person 2 { 3 public $name; 4 5 # 构造方法 6 public function __construct($n){ 7 $this->name = $n; 8 } 9 10 public function say(){ 11 ... 阅读全文
摘要:
抽象类:含有抽象方法的类【abstract 抽象关键词】 1 abstract class Usb 2 { 3 public function load(){ 4 echo "Usb is loading"; 5 } 6 7 public function start(){ 8 echo "Usb is starting... 阅读全文
摘要:
对象链原理 1 class Person 2 { 3 public function find(){ 4 echo 'find'; 5 return $this; 6 } 7 public function attr(){ 8 echo 'attr'; 9 return $this; 10... 阅读全文
摘要:
普通索引 添加索引:alter table t1 add index idx_name(name);删除索引:alter table t1 drop index idx_name; 唯一索引 添加索引:alter table t1 add unique uni_name(name);删除索引:alter table t1 drop index uni_name; 阅读全文
摘要:
字段添加 添加sex字段: alter table t1 add sex tinyint not null;在name字段后面添加sex字段: alter table t1 add sex tinyint not null after name;在第一列添加sex字段 alter table t1 add sex tinyint not null first; 字段删除 a... 阅读全文
摘要:
源表单据 汇总要求 两种sql方式实现 阅读全文
摘要:
1 function VerifiImag(){ 2 3 # 准备画面资源 4 $im = imagecreatetruecolor(100, 40); 5 6 # 准备涂料 7 $black = imagecolorallocate($im, 0, 0, 0); 8 $gray = imagecolorallocate($im... 阅读全文
摘要:
1 function UploadImg(){ 2 3 $sfile = $_FILES['img']['tmp_name']; 4 5 # 定义目标目录 6 $uploaddir = 'uploads'; 7 8 # 创建总目录 9 if (!file_exists($uploaddir)) { 10 mkdi... 阅读全文
摘要:
1 /** 2 * $src_file:原文件 3 * $dst_w:目标输出的宽 4 * $dst_h:目标输出的高 5 */ 6 7 function thumb($src_file,$dst_w,$dst_h){ 8 9 # 获取图片信息 10 $imarr = getimagesize($src_file); 11 12 # 获取图... 阅读全文
摘要:
注 : 根据图片名插入图片,测试共插入2000张图片约10秒 最终效果图如下: 1、表格中组合如下公式 注意: 2、公式回车后如下 3、把所有代码复制到一个新的记事本中 4、期间表格不调整数据顺序,因为代码是按原顺序复制走的 5、将表格代码列删除,加入图片列,并调整到可以放下图片的大小 6、将记事本 阅读全文
摘要:
桌面新建clean.txt (文件名可自定义) 复制如下代码到txt文件中 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f tas... 阅读全文
摘要:
C:\Windows\System32\Drivers\etc 点击hosts【属性】->【安全】->【高级】->【权限】->【添加】->【选择主体】->【高级】->【立即查找】 选择本机用户 ->【确定】 勾选所有基本权限 ->【确定】 查看权限列表已经添加了本机用户 阅读全文