RE: [PHP] something like SSI ?

2001-08-15 Thread [EMAIL PROTECTED]

include("/path/to/the/include/file.inc");

Original Message:
-
From: Martin [EMAIL PROTECTED]
Date: Wed, 15 Aug 2001 03:21:42 +0200
To: [EMAIL PROTECTED]
Subject: [PHP] something like SSI ?


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]


Mail2Web - Check your email from the web at
http://www.mail2web.com/ .


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




Re: [PHP] something like SSI ?

2001-08-14 Thread Michael Kimsal

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]




Re: [PHP] something like SSI ?

2001-08-14 Thread Daniel Adams

check out the require, include, and require_once functions in the manual
on php.net
- Dan :-)

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]




Re: [PHP] something like SSI ?

2001-08-14 Thread Philip Murray

Quoting Martin <[EMAIL PROTECTED]>:
> 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 ?
> 

Check out

include();
require();
include_once();
require_once();

It's all in the manual

-- 

 -  -- -  -   -
Philip Murray - [EMAIL PROTECTED]
http://www.open2view.com - Open2View.com
- -  -- -   -


-- 
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] something like SSI ?

2001-08-14 Thread Martin

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]