1. Правильнее использовать SERVER_NAME или DOCUMENT_ROOT или ?
2. При таком коде php я получу ошибку:
Refused to apply style from 'http://site.ru/php/error.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Как это исправить? Указывать полный путь к css файлу?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
Ser8191
Здравствуйте.
Такой вопрос.
В корневом каталоге сайта есть два каталога:
[php] -> содержит -> 1.php
[error] -> содержит -> error.html и error.css
error.html
1.php
Теперь вопросы:
1. Правильнее использовать SERVER_NAME или DOCUMENT_ROOT или ?
2. При таком коде php я получу ошибку:
Refused to apply style from 'http://site.ru/php/error.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Как это исправить? Указывать полный путь к css файлу?
или нечто такое:
error.html
1.php
Link to comment
Share on other sites
1 answer to this question
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.
Note: Your post will require moderator approval before it will be visible.