07 2022 档案

摘要:解决:2步1.找到网站最右侧的管理工具 选择【修改】,选择 【高级配置】将目录索引设置为on 2.选择设置,选中vhost.conf文件 点击下面出现的文件在options 之后添加indexes,重启服务器。我的问题解决了,希望对你也有用 阅读全文
posted @ 2022-07-31 13:18 SHACK元 阅读(914) 评论(0) 推荐(0) 编辑
摘要:1.连接数据库 /* 通过调用驱动程序创建一个PDO实例 */ $dsn = 'mysql:dbname=lv;host=127.0.0.1'; $user = 'root'; $password = 'root'; try { $pdo = new PDO($dsn, $user, $passwo 阅读全文
posted @ 2022-07-30 13:49 SHACK元 阅读(117) 评论(0) 推荐(0) 编辑
摘要:function deldir($path){ //如果是目录则继续 if(is_dir($path)){ //扫描一个文件夹内的所有文件夹和文件并返回数组 $p = scandir($path); //如果 $p 中有两个以上的元素则说明当前 $path 不为空 if(count($p)>2){ 阅读全文
posted @ 2022-07-28 15:51 SHACK元 阅读(166) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>C语言中文网——PHP文件上传</title> </head> <body> <form action="" method="post" enctype="mu 阅读全文
posted @ 2022-07-28 15:18 SHACK元 阅读(80) 评论(0) 推荐(0) 编辑
摘要:1.为 “label” 标签添加 “for” 属性 可以绑定同步点击 “for” 属性值为 “checkbox” 的 “id” 2.将 “checkbox” 移入 “label” 标签内部 阅读全文
posted @ 2022-07-22 17:43 SHACK元 阅读(506) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示