note 14596 added to function.die.php

From: Date: Mon, 06 Aug 2001 00:09:47 +0000
Subject: note 14596 added to function.die.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16356@lists.php.net to get a copy of this message
When I used die() in a file that was included and I was using Netscape the original calling script would also die. example is: In the main script include (whatever.php); in whatever.php if a==1 { echo "test"; } else { die(); } In netscape the calling script kills everything and you end up with a blank page. The easy fix was to replace die() with return. This is with PHP 3.06 http://www.php.net/manual/en/function.die.php

« previous php.notes (#16356) next »