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

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

 




On Tue, 4 Jan 2005, Richard Davey wrote:

> Hello John,
>
> Tuesday, January 4, 2005, 2:52:27 PM, you wrote:
>
> JN> Standard comment in HTML, but it has another use with Apache, and I
> JN> didn't find any reference to this type of syntax for ASP.
>
> <!--#include file="whatever.asp" -->
>
> and
>
> <!--#include virtual="whatever.asp" -->
>
> are both perfectly valid ASP syntax that will work on **IIS**
>
> Obviously you can do the usual stuff as in PHP, with:
>
> <%
> filen = "header.inc"
> %>
> <!--#include file="<%=filen%>"-->

When you do %> then you have broken out of ASP and are now writing HTML.
You then do <%=filen%> to go back into ASP to get the value of the
variable into the HTML code that you wrote. ASP is not including the file,
it is only supplying a file name for SSI includes whether apache SSI or
IIS SSI. The server parsing the HTML recognizes the HTML comment is
sentax for server side include and includes the suppplied file name.


Ron Clark
Sysadmin/Webmaster
Armstrong Atlantic State University

-- 
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