★ wanayoo — archive 1999 http://fr.php.net/manual/en/function.die.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousdefinedevalnext
Last updated: Fri, 27 Sep 2002
view the printer friendly version or the printer friendly version with notes or change language to Brazilian Portuguese | Chinese | Czech | Dutch | Finnish | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Slovak | Spanish | Swedish | Turkish

die

die -- Alias of exit()

Description

This function is an alias of exit().

User Contributed Notes
die
add a note about notes
lee200082 at hotmail dot com
08-Jul-2002 03:41

void die(string msg)

Calling this function halts the scripts execution and outputs msg to screen.

This is as near as I can tell what this function does. I just thought I'd post this becaus there was no official description.

xagent_ at hotmail dot com
04-Sep-2002 12:22

Note that using the die() function will stop the entire script after that point from being run, so if you issue the die function within a open HTML tag, the HTML tag will remain open, which can seriously effect the browsers output to the user, expecially if its used inside an open <TABLE> tag.
stephane-wantiez at tiscalinet dot be
11-Sep-2002 04:35

So when you use die() after an open <html> tag, don't forget to use die like this : die("blabla\n\n</body>\n\n</html>") ; This will close the body and html tags.
add a note about notes
previousdefinedevalnext
Last updated: Fri, 27 Sep 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Sun Sep 29 04:15:54 2002 CEST