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. 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? 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?' 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. 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? 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. 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 ? 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. 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
Archived
This topic is now archived and is closed to further replies.