Re: [PHP4BETA] additional headers in include and require functions

From: Date: Mon, 08 May 2000 10:27:02 +0000
Subject: Re: [PHP4BETA] additional headers in include and require functions
Groups: php.version4 
Request: Send a blank email to php-version4+get-14661@lists.php.net to get a copy of this message
Hi > AK>> $http_heads["My head"]="adasz"; > AK>> $http_heads["My head2"]="adasz2"; > AK>> > AK>> include("http://adasz.cnt.pl/gethead.php3"); > > Very nice idea. However: shouldn't $http_heads be a parameter? Making > special-purpose hardcoded-name variables are generally very bad idea, and > could break a lot of code. Also, it's harder to understand. > Think of it like $HTTP_GET_VARS & co, there are already hardcoded variables in PHP. And this patch doesn't break compatibility with existing files. If you used a parameter, how would you use it? Make a special funcion? Then you would break your scripts if used on different version of PHP. This is just a proposal, maybe there is better way? > But I think such feature is very useful and should be added to > fopen-wrapped calls, if possible. Though, I think including code from > non-authenticated foreighn site is very *bad* idea, but this idea could be > used for better things. > or intranets for example. -- Adam -- _/ _/ _/_/_/ ----- Adam Kropielnicki, adasz@wp.pl ----- _/ _/ _/ _/ _/ Wirtualna Polska SA http://www.wp.pl _/_/_/_/ _/_/_/ _/ _/ _/ --------==* Moja WP: http://moja.wp.pl *==----------

« previous php.version4 (#14661) next »