![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
产品经理-龙杰
会编程的产品经理
展开
-
【php】php数据库操作
config.php(基础信息)class db{ public $host = "";//数据库地址 public $user = "";//数据库账号 public $pass = "";//数据库密码 public $name= "";//数据库名称}sql.php(数据库信息)<?php/**数据库操作对象**/include("config.php");$db=new db();$conn = @new mysqli($db->原创 2020-05-23 19:40:58 · 187 阅读 · 0 评论 -
【php】php使用阿里云OSS对象存储
up.php(前端上传)<!DOCTYPE html><html><head> <meta charset="utf-8"></head><body><form action="oss.php" method="post" enctype="multipart/form-data"> 请选择文件:<input type="file" name="filename"><br&g原创 2020-05-23 19:38:49 · 1319 阅读 · 0 评论 -
【php】php使用session完成简单的登录注册
登录页代码(login.html)<form action="login.php" method="post"> <fieldset> <legend>用户登录</legend> <ul> <li> <label>用户名:</label> <input type="text" name="username"> </li> &原创 2020-05-23 19:35:54 · 2738 阅读 · 3 评论