D
D
DEnisLEB2018-04-15 11:29:23
PHP
DEnisLEB, 2018-04-15 11:29:23

How to properly connect files to php?

I need to include other files in php, in this case css and js. include outputs their contents, but not the processed request. How can I organize this? Executing scripts, not outputting code...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Lyskov, 2018-04-15
@DEnisLEB

echo '<link rel="stylesheet" href="main.css">'

M
maiskiykot, 2018-04-15
@maiskiykot

css - generally html=headers - no? And scripts anywhere on the page can be connected like this construction -

<script type="text/javascript" src="scr.js"></script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question