Forum Moderators: coopster

Message Too Old, No Replies

php and SSI's

Can you handle "includes" with php?

         

gstick

2:57 pm on Jun 23, 2006 (gmt 0)

10+ Year Member



I have seen references to "includes" on this site and it sounds like something I need. I am currently learning php as probably the most promising of such scripting today.

Trying to figure out exactly what an "include" is I have found info on SSI's. Is "includes" just shorthand for SSI?

My host responds to a question about SSI's as follows:
"The easiest way around most of these issues is to incoporate your html into a php file, therefore running the html inside S-Box, which will then allow you to call php/cgi/perl files."

I have successfully constructed a few .php files.
So my solution to "includes" sounds easy. Or is it?

eelixduppy

2:59 pm on Jun 23, 2006 (gmt 0)



You can include a file into another file using include [us3.php.net]

Scally_Ally

3:46 pm on Jun 23, 2006 (gmt 0)

10+ Year Member



generally when i say that i include something it means a file.. this is done like include("myfile.php");
in this file you can have dumps of regularly used function or html layouts, whatever.

But everyone is different so i can imagine that loads of people mean server side includes when they say include, but also that loads of people mean what i mean..... if you catch my drift