Re: Why PHP ?

From: Date: Mon, 11 Dec 2000 07:24:10 +0000
Subject: Re: Why PHP ?
Groups: php.general 
Request: Send a blank email to php-general+get-29636@lists.php.net to get a copy of this message
Are you sure this can not be done. I remember we having a multi Language Project, where I did: <% if language = "E" then %> <!--#include file="english.asp"--> <% elseif language = "F" then %> <!--#include file="french.asp"--> ... <% end if %> Howeverwe only defined constants in the files included like that, so you might not be able to define functions in there, which would then again mean that PHP is superior, which it is. > Ack - another one. You can't do dynamic includes: > > PHP > <? if (blah) { include("blah.php"); } else { include("foo.php"); } ?> > > Just CAN NOT be done in ASP2.5. ASP3 introduces a workaround > by introducing server.execute as a server function - you can execute > another ASP script and include the results. End result should normally > be the same, but it's NOT including the second file in the first - they > CAN'T do that, and apparently don't want to, else they'd have done it. -- Florian Clever fc@clever-soft.com http://www.Clever-Software-Solutions.de/ PGP Key @ ldap://certserver.pgp.net/ "Always listen to experts. They'll tell you what can't be done, and why. Then do it. " -- Robert A. Heinlein

« previous php.general (#29636) next »