Jump to content

[SOLVED] I Guess Directory Structure?


Trium918

Recommended Posts

index.php and a folder named style are in the same directory.

Style contains a CSS file called test.css. I am trying to

access test.css from index.php by using ../

 

Which would be the equivalent to?

@import url(style/superiun.css );

 

@import url(./superiun.css );

or

@import url(../superiun.css );

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/55119-solved-i-guess-directory-structure/
Share on other sites

Imagine you had another folder named wombat in that same directory.  In your two examples, how would ./ or ../ guess whether to look in the folder named style or the folder named wombat?  Does that suggest that the folder name is an intrinsic requirement of the path?

Imagine you had another folder named wombat in that same directory.  In your two examples, how would ./ or ../ guess whether to look in the folder named style or the folder named wombat?  Does that suggest that the folder name is an intrinsic requirement of the path?

 

I don't understand! All I am trying to do is access the the content inside of the style folder.

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.