Hello I have INCLUDED a PHP file in the end of an HTML page. Now I want to add a style file before the end of the tag HEAD. But I need to do this via this php file, I have no choice.
I have and index.php
file and at the end of this file I am loading script.php
I need to add a script in the header of index page using the script.php
Folder structure:
- index.php
- script.php
The index.php
file have this code:
<!DOCTYPE html>
<html>
something
</head>
<body>
something
</body>
</html>
<?php
include "script.php"
?>
How can I put something in the head of the HTML/PHP when I have the script.php file at the end of a page.