Often times we have to share the same files for multiple web applications on a hosting server.
Let's say we have 3 multiple web applications in production server as follows:
public_html/operations/public_html/supports/public_html/business/
For those 3 web applications, we have to use the same shared files that will be stored outside of those 3 folders, and we want to save it into:
public_html/resources/uploads/
Now let's assume we want to develop 3 web applications for operations, supports, and business above, and each of it will be separated into 3 different PHPMaker project files.
To do this, then each PHPMaker project file must be setup as follows:
- Go to Tools > Advanced Settings > Local file system root (relative to project folder), change from default value
.(single dot) to new value..(two dots); without quotes, - Go to PHP > General Options > File Upload > Upload folder, then enter:
resources/uploads/(without quotes) - Re-generate ALL the script files using PHPMaker.
This will make each web application will share the same folder; both for upload and view the files by using File control type under Edit Tag pane of Fields setup.