<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Gianluca Baù ha scritto:
<blockquote cite="mid45C1ADA9.3090802@ihuri.it" type="cite"><br>
Come da oggetto, è possibile fare una exit() in in file incluso per
terminare SOLO la sua inclusione e non l'esecuzione del chiamante?
<br>
Sarebbe bello.....
<br>
<br>
</blockquote>
<br>
<p> Handling Returns: It is possible to execute a <a
href="http://it.php.net/manual/en/function.return.php"><b
class="function">return()</b></a> statement inside an included file in
order to terminate processing in that file and return to the script
which called it. Also, it's possible to return values from included
files. You can take the value of the include call as you would a normal
function. This is not, however, possible when including remote files
unless the output of the remote file has <a
href="http://it.php.net/manual/en/language.basic-syntax.php#language.basic-syntax.phpmode">valid
PHP start and end tags</a> (as with any local file). You can declare
the needed variables within those tags and they will be introduced at
whichever point the file was included. </p>
<br>
<pre class="moz-signature" cols="72">--
Michel 'ZioBudda' Morelli <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobudda.net">michel@ziobudda.net</a>
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: +39-3939890025 -- Fax: +39-0291390660
<a class="moz-txt-link-freetext" href="http://www.ziobudda.net">http://www.ziobudda.net</a> ICQ: 58351764
<a class="moz-txt-link-freetext" href="http://www.ziobuddalabs.it">http://www.ziobuddalabs.it</a> Skype: zio_budda
<a class="moz-txt-link-freetext" href="http://www.ajaxblog.it">http://www.ajaxblog.it</a>                         MSN: <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>
</pre>
</body>
</html>