jandrews3 Posted December 20, 2008 Share Posted December 20, 2008 I need to use INCLUDE as an absolute link so I can place it within all files no matter what folder I put it in. I need each and every page to load append1.php at the end, but different pages are in different folders. I'm trying to standardize as much as possible. include 'append1.php'; - works but doesn't give me standardization include '../append1.php'; - also works but, again, doesn't give me standardization include 'http://www.ithf.org'; - doesn't work, gives me a "URL file-access is disabled" error Does anybody know a solution for me? Thanks. Link to comment https://forums.phpfreaks.com/topic/137809-include-as-an-absolute-link/ Share on other sites More sharing options...
MadTechie Posted December 20, 2008 Share Posted December 20, 2008 you could try include $_SERVER['DOCUMENT_ROOT']."/file.php"; Link to comment https://forums.phpfreaks.com/topic/137809-include-as-an-absolute-link/#findComment-720279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.