php - Why in some files require /app/ works, in others doesn't? -


Some files require '/ app /' to work, in some, But do not need 'AAP /' works on pages where '/ app /' breaks like this? I can not use the __DIR __ , because it can not load css files.

This is because there are 2 types of Unix Path:

Full Path: / app / (always starts with / )

relative path: app / (relative to that place

Imagine you are in the You use / app / (abosolute) - you talk about the / app / folder

if you click the app / (where you are Are related to there) - You talk about / var / www / app / . This means that you want to use the directory "app" in the / var / www / directory.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -