Re: Re[3]: [PHP] How to argue with ASP people...
| From: | Chris Shiflett | Date: | Wed, 05 Jan 2005 00:58:43 +0000 |
| Subject: | Re: Re[3]: [PHP] How to argue with ASP people... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205636@lists.php.net to get a copy of this message | ||
--- Richard Davey <rich@launchcode.co.uk> wrote:
> Perhaps this is a better example for you:
>
> script1.asp
> <%
> StrName = "bob"
> %>
>
> script2.asp
> <!--#include file="script1.asp"-->
> <%
> Response.Write "Hello " & StrName
> %>
>
> Clearer now?
It looked to me like he understood before. If your example is the only way
to include files, it demonstrates that ASP cannot do it (ASP stuff happens
between <% and %>), but that this limitation doesn't prevent an ASP
developer from modularizing code when there is support for SSI.
The point is that you're relying on a mechanism in the server (e.g.,
Apache or IIS) and not in the language. The include and require language
constructs in PHP can be used independently of support for SSI.
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming Soon http://httphandbook.org/