Print a message and exit the current script in PHP
Description
The following code shows how to print a message and exit the current script.
Example
/* w ww .j ava 2 s . c o m*/
<?php
$site = "http://www.java2s.com/";
fopen($site,"r")
or die("Unable to connect to $site");
?>