打印一条消息并终止当前脚本:
<?php
$site = "https://www.91xjr.com/";
fopen($site,"r")
or die("Unable to connect to $site");
?>
die() 函数是Export()功能。
die(
message)
Parameter | Description |
---|---|
message | Required. A message or status number to print before terminating the script. A status number will not be written to the output, just used as the exit status. |
返回值: | 没有什么 |
---|---|
PHP 版本: | 4+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!