girish.kc Posted March 7, 2013 Share Posted March 7, 2013 Hi, I have developer a PHP application which works fine in root directory [document_root]. No I have a situation that needs the application to work from any directory by changing few config parameters. I have used the root-relative links in allover the application. Is there any easy way to accomplish this? If not I have to change all the pages having the links. Please advice. Girish Quote Link to comment https://forums.phpfreaks.com/topic/275359-application-from-any-directory/ Share on other sites More sharing options...
trq Posted March 7, 2013 Share Posted March 7, 2013 Is there any easy way to accomplish this?That would completely depend upon how your application is written. When we write apps, we make sure to configure a base path config options that can be changed in a single place and yet used in many. Quote Link to comment https://forums.phpfreaks.com/topic/275359-application-from-any-directory/#findComment-1417154 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.