开发者

Folder redirection php

开发者 https://www.devze.com 2023-01-17 01:10 出处:网络
Ok so what I am开发者_StackOverflow trying to do is have multiple folders pull from one folder. So if I have this structure:

Ok so what I am开发者_StackOverflow trying to do is have multiple folders pull from one folder. So if I have this structure:

/test1/some_folder
/test2/some_folder
/test3/some_folder

I would want all of those folders named some_folder to read from a master directory. I dont need them to be able to go that specific url just need it to include the files from the main directory in each of those. Imagine I was setting up shared functions and just wanted to store them in one place but be able to include them on any site. I didnt know what to google (tried folder redirection but didnt seem right) so if anyone can offer a suggestion as to what to google or wants to provide an answer it would be appreciated.


Add all of them to include_path

See also: set_include_path()


If it's possible, your best bet is just using a symlink. Even most version control packages understand those. Be sure to set FollowSymlinks to true for Apache.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号