I have a little HTML5 application that is called from an iframe of another website. The application has to be periodically updated, but because of some browser caching issue, we prefer to change the folder in order to prevent problems: www.mysite/tools/01/load.php and then 02, 03 etc.
We have no control over the iframe, so the address of the application should remain the same: let's say www.mysite/tools/index.php; the problem is that if in the index.php I use include (./01/load.php), the application doesn't work because it searches for files and subfolders inside /tools (where is index.php) and not into tools/01/ (where there are load.php and other files and subfolders).
Currently inside index.php I'm using a php redirect to ./01/load.php , but it slows a bit the access. Any idea on how to fix this issue without using the redirect? Thank you!