I didn't see this was answered yet, so:

SSI and ASP are different things that happen to live on the same server.
The ASP designers thought it would be easier to simply use the SSI engine
rather than write that functionality into ASP itself (to let VBScript and
others 'hook' into it).

You notice there's no VBScript command to 'include' anything.  It's just
not there.  In PHP, which is a language, it's there in the form of
'include'.  Go to http://www.php.net/include to learn more about it.

One of the truly cool things you can do with include() in PHP is include()
something dynamically (HTML, text files, or other PHP pages).

$file = "cow.php";
include($file);

This will include() whatever the variable $file points to, and it'll
process/parse and display it accordingly.

Because ASP and SSI are separate engines, and SSI gets processed before
ASP processes things, you can not do this in ASP.  Well, *sort of*, now,
in ASP3, in the form of Server.Execute(), but it's not really the same
feel.  (and it took them long enough to catch up!)  :)


-------------------------------
Michael Kimsal
http://www.tapinternet.com/php/
PHP Training Courses
734-480-9961



On Wed, 15 Aug 2001, Martin wrote:

> Ok, this may seem like a dumb newbie question...
>
> Is there an function like ASP's Server Side Include in PHP ? Or what is best
> to use instead, fread ?
>
> /marco
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to