Jump to content

SSI vs. include()/require()


leesiulung

Recommended Posts

Is there any reasons any more to even consider Server Side Includes over the include()/require() functionality implemented in PHP?

 

Also, according to the manual:

 

"Files for including are first looked in include_path relative to the current working directory and then in include_path relative to the directory of current script. E.g. if your include_path is ., current working directory is /www/, you included include/a.php and there is include "b.php" in that file, b.php is first looked in /www/ and then in /www/include/. If filename begins with ./ or ../, it is looked only in include_path relative to the current working directory. "

 

The last sentence in quoted paragraph mentions a way to force includes to only be relative. However, what do you do if you are on a windows system... "./c:\phpincludepath" ???

Link to comment
https://forums.phpfreaks.com/topic/52705-ssi-vs-includerequire/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.