Jump to content

Cache folder in root directory ?


avvllvva

Recommended Posts

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.

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.

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 ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.