Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php quit

exit();		// Normal exit

exit(1);	// Exit with an error code

exit('Error!');	// Exit and print an error message
Comment

php exit

exit;
Comment

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)");

?>

Comment

php exit

if( !file_exists("") ) {
  exit("File not found on line 145: customers.txt. Hope you weren't buying anything ...");
} else {
  $file = fopen("customers.txt, "r");
  // rest of code here
Comment

PREVIOUS NEXT
Code Example
Php :: laravel set date format 
Php :: php copy array 
Php :: php date 
Php :: php generate unique id for word 
Php :: laravel project make 
Php :: php, Africa timezones 
Php :: laravel mail cc 
Php :: download file laravel s3 
Php :: laravel reading log file 
Php :: laravel restrict route 
Php :: php join 
Php :: foreach sort orderby php 
Php :: set cookie on button click JavaScript 
Php :: database, counts,php, 
Php :: php compare dates 
Php :: How to use Query builder with eloquent in Laravel 8? 
Php :: php input radio 
Php :: laravel error messages 
Php :: defining constant in config laravel 
Php :: php api 
Php :: how to check if query is successfully inserted laravel 
Php :: deprecation notice on phpmyadmin localhost | phpmyadmin deprecation notice 
Php :: How to Get Radio Button Value in PHP Without Submit 
Php :: WordPress Plugin Definition 
Php :: Clear any previous error php 
Php :: @method overide form laravel 
Php :: Laravel SPA cors 
Php :: spatie laravel pdf image 
Php :: get 1 data from get laravel 
Php :: laravel eloquent with query parameter 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =