avvllvva Posted January 17, 2010 Share Posted January 17, 2010 Hi, Can anybody answer following query...... I have a linux server on godaddy hosting, i just want to know whether there is a a default 'cache' folder in the root directory ? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/ Share on other sites More sharing options...
Daniel0 Posted January 18, 2010 Share Posted January 18, 2010 You mean like /tmp? Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997136 Share on other sites More sharing options...
avvllvva Posted January 18, 2010 Author Share Posted January 18, 2010 it maybe.... and also can u please explain more on '/tmp?' Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997155 Share on other sites More sharing options...
trq Posted January 18, 2010 Share Posted January 18, 2010 Hi, Can anybody answer following query...... I have a linux server on godaddy hosting, i just want to know whether there is a a default 'cache' folder in the root directory ? Thanks in advance. If you have an account why not take a look for yourself? Either that or get to the real question. Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997158 Share on other sites More sharing options...
avvllvva Posted January 18, 2010 Author Share Posted January 18, 2010 but there is no default 'cache' folder. then another doubt is what is the 'Absolute path' ($_SERVER[DOCUMENT_ROOT]) and what is the difference between root directory and absolute path? Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997203 Share on other sites More sharing options...
trq Posted January 18, 2010 Share Posted January 18, 2010 but there is no default 'cache' folder. Well, that answers your question then doesn't it. then another doubt is what is the 'Absolute path' ($_SERVER[DOCUMENT_ROOT]) Absolute path to what? Your document root? $_SERVER['DOCUMENT_ROOT'] should tell you. and what is the difference between root directory and absolute path? An absolute path is the absolute location to a file or directory. Your root directory refers to the 'base' directory of your web accessible file structure. Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997212 Share on other sites More sharing options...
avvllvva Posted January 18, 2010 Author Share Posted January 18, 2010 thank you then I tried following code <?php echo "--> ".$absolutepath_to_root = $_SERVER['DOCUMENT_ROOT']; // for me it gives something like this - /home/content/t/h/a/mywebname/html ?> <img src= "images/Header.jpg" /> <img src= '<?php echo $absolutepath_to_root."/images/Header.jpg" ?>' /> It output first image (usual way). But second one dosen't, as you mentioned this should also been worked, am I right? OR something wrong with me ? Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997258 Share on other sites More sharing options...
trq Posted January 18, 2010 Share Posted January 18, 2010 An absolute path to your servers root means nothing to a browser because it can't reach it via its absolute path. Instead, a browser reads / as being your servers root. Quote Link to comment https://forums.phpfreaks.com/topic/188774-cache-folder-in-root-directory/#findComment-997260 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.