I've installed magento and cakephp in my development server. I built a STL viewer by using cake php and gave path like this to upload files to STL viewer:
$mystlpath = $_SERVER['DOCUMENT_ROOT']."dastl/app/webroot/uploads/".$filetoinsertpost;
Now I want STL viewer to access STL files stored in magento directory. It is like accessing files from different directory which is outside root directory. How can I give a path so that STL viewer can access stl files from magento directory?
Can I try like this?
$mystlpath = $_SERVER['DOCUMENT_ROOT']."/../path_to_magento/".$filetoinsertpost;
Here is file structure to make this question more clear:
server root directory |www |dastl |magento