< All PHP topicsPHP (1)Java (1)

Exiting

Prematurely ending execution of a program

PHP:

Ending script execution.

Exit

Last updated at 01:39 PM on Wednesday 8th August, 2007 by Administrator


<?
exit;
?>

Exit upon failure of a process with an error message is very easy with php and can be done with die()[uk3.php.net]

<?
mysql_connect
($host$user$password
  or die(
"Connect to database failed");
?>


Comments (0)