Re: Re[3]: How to argue with ASP people...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Richard Davey <rich@xxxxxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux