colombian Posted May 17, 2007 Share Posted May 17, 2007 How do I include files in such a way that they would work with both a localhost and remote host? Relative paths are ok for some of the things, but the problems are the files that need to reference the entire path from root. Another include issue, is that I wish the paths within the include file, were taken relatively to the file calling it, instead of remaining relative to the include file. I trie the include dirname(__FILE__).'/../bla.php'); without any success at all. I have been developing and testing on a remote server for a long time. And I can get all these files to work with relative paths to the remote server, but I cannot get them to work for both remote and localhost - which would be great. Like the relative include for ASP. Yes, I searched google, the forums and just about everywhere, and I didn't see anything that addresses this directly. Thank you in advance for any help you can provide. Quote Link to comment https://forums.phpfreaks.com/topic/51919-include-hell-local-and-remote-host/ Share on other sites More sharing options...
colombian Posted May 18, 2007 Author Share Posted May 18, 2007 Anyone have a good resource, or know how work with includes very well? - thank you Quote Link to comment https://forums.phpfreaks.com/topic/51919-include-hell-local-and-remote-host/#findComment-256461 Share on other sites More sharing options...
colombian Posted May 21, 2007 Author Share Posted May 21, 2007 Bump - any pointers would be great. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/51919-include-hell-local-and-remote-host/#findComment-258337 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.