Posted by Kimmo Laine on 02/01/07 09:08
"Sanders Kaufman" <bucky@kaufman.net> wrote in message
news:Klgwh.2288$4H1.1860@newssvr17.news.prodigy.net...
> Nu wrote:
>
>> Also, does it matter if I put "require_once" lower down in the code after
>> some other code my abort it?
>
> No - and you may find this weird.
> An include/require will be included no matter what.
>
> For example:
> <? php
> if(TRUE){
> include "myfile.php";
> } else {
> include "yourfile.php";
> }
> ?>
>
> In the above example - BOTH files will be included no matter what.
Okay... suppose you wrote
if(FALSE){
eval('include("foo.php");');
}
Is foo.php included in this case? Can you eval an include statement?
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|