tibberous Posted July 16, 2007 Share Posted July 16, 2007 I have a bunch of code that is designed to run out a certain directory. I am integrating it with a bunch of code that is designed to run out of another directory. Now, I can change the include paths, but the includes include more includes, and it would be a mess to change everything. Is there some way I can set the base include directory, run the first bit of code, change the base include directory again, and run the second bit? Thanks Link to comment https://forums.phpfreaks.com/topic/60139-solved-changing-the-base-include-path/ Share on other sites More sharing options...
trq Posted July 16, 2007 Share Posted July 16, 2007 This will add three new paths to your current path. set_include_path(get_include_path().";/new/path;/other/new/path;/another/path"); Link to comment https://forums.phpfreaks.com/topic/60139-solved-changing-the-base-include-path/#findComment-299182 Share on other sites More sharing options...
tibberous Posted July 16, 2007 Author Share Posted July 16, 2007 Thanks! I actually looked through the doc's for a long time too! Link to comment https://forums.phpfreaks.com/topic/60139-solved-changing-the-base-include-path/#findComment-299189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.