So if i understand this correctly you want to access a folder in the Oxwall root from your plugin correct?
Do you need a logical address as in /home/username/...... or a URL
For the logical address do something like this:
$filepath = $_SERVER["DOCUMENT_ROOT"]."/foldername/filename";
use this method if you want your plugin to manage files and folders from within the server.
For a url you can do it several ways.
$file = OW_URL_HOME."directory/filename"; OW_URL_HOME already has a trailing slash /
or
$file = OW::getRouter()->getBaseUrl()."directory/filename"; getBaseUrl also has the trailing slash /
Hope that helps..
Dave
Are you putting files in a root dir folder so you can call them from your plugin, or are you putting them in a root folder for people outside the site to use? Tell me what your doing and ill try to help you. And are they images, text files, zip files?
Also how are you calling the file?
Update: the reason i am asking is that if you are calling the file from your plugin properly then you should have no problem. So i am guessing i am missing something here.
By root do you mean /home/username/public_html/yourfolder
if that is the case then you may need to add the file to your htaccess
http://www.oxwall.org/forum/topic/47116
however if this is for a plugin to use the file you need to put the folder in the oxwall dir (if it is a seperate dir)
I made changes in the htaccess file as said. It worked...Thanx a ton!!!