摘要: include 语法:include 'filename'; require 语法:require 'filename'; 两者差距 出错时 require会生成致命错误,并停止脚本 include只生成警告,并且脚本会继续 使用场景 include:希望继续执行,并向用户输出结果,即使包含文件已丢 阅读全文
posted @ 2021-02-09 23:36 ceiling~ 阅读(63) 评论(0) 推荐(0)
摘要: 语法 date(format,timestamp) format 规定时间戳的格式(必须) timestamp 规定时间戳,默认是当前时间和日期(可选) 用途 获得简单的日期 <html> <body> <?php header("content-type:text/html;charset=utf 阅读全文
posted @ 2021-02-09 22:36 ceiling~ 阅读(165) 评论(0) 推荐(0)
摘要: #表单处理 收集表单数据 $_GET $_POST 举个例子(以POST方式为例,GET和POST类似,直叙改方式为get,\(_POST为\)_GET) <html> <body> <form action="welcome.php" method="post"> Name:<input type 阅读全文
posted @ 2021-02-09 16:28 ceiling~ 阅读(99) 评论(0) 推荐(0)