<?php ob_start();?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>会员系统</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<?php
function __autoload($_className){
require $_className.'.class.php';
}
//实例化主类
if(isset($_GET['index'])){
$_main = new Main($_GET['index']);
}else{
$_main = new Main();
}
//运行
$_main->_run();
?>
<?php
//__autoload() 尝试加载未定义的类
//function 自定义函数
//require 包含并运行指定文件
?>
</body>
</html>
PHP——使用OOP注册会员1
最新推荐文章于 2021-03-11 18:41:39 发布