Does sitepoint use includes in PHP?
| SitePoint Sponsor |





Does sitepoint use includes in PHP?





Straight answer : yes.





Certain parts, like the top and footer of the page and menus are on nearly all sites that use PHP included using the PHP include() (or require() ) function.
It would be very unlogical to use SSI or static HTML pages.![]()
www.nyanko.ws - My web-, software- and game development company.
www.mayaposch.com - My personal site and blog.





The forum's HTML is pulled out of an SQL database - I'd imagine (though I'm not sure), that the HTML for the other pages is done the same way...
Are you talking about SSI or the PHP function include()?
As I see it, SitePoint uses SSI in some parts most notably the Newsletter Archives. However since the rest of the network is generated dynamically using PHP, it most likely uses templates and a series of files to build each page. Strictly speaking, I know the various "Active Topics" and the Forum Listing on the sitemap are separate files that are either included or required using functions in PHP.
With Server-Side Scripting languages like PHP, ASP and JSP, SSI like its partner CGI are needed less and less to develop state of the art sites.





I am talking about php's include()





OK, just asked to see whether i should use on my site





Yes, the vast majority of includes are PHP includes.
Bookmarks