Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

exit and echo php

//exit — Output a message and terminate the current script
<?php

$filename = '/path/to/data-file';
$file = fopen($filename, 'r')
    or exit("unable to open file ($filename)");

?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #exit #echo #php
ADD COMMENT
Topic
Name
6+4 =