PROJET AUTOBLOG


le hollandais volant links

Site original : le hollandais volant links

⇐ retour index

What are the differences in die() and exit() in PHP? - Stack Overflow

lundi 12 juillet 2021 à 12:04

Au niveau de PHP, aucune différence.

Au niveau des requêtes client/serveur, par contre :

// die():
HTTP/1.1 304 Not Modified 
Connection: close
// exit():
HTTP/1.1 304 Not Modified 
Connection: Keep-Alive 
Keep-Alive: timeout=5, max=100

die() ferme la connexion.
exit() ne ferme pas la connexion.


— (permalink)