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 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 Quote 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. Link to comment https://forums.phpfreaks.com/topic/275359-application-from-any-directory/#findComment-1417154 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.