I created a website using php, html, and css.
I used <link rel="stylesheet" src="main.css">
to call css file to the html document, but when i using php to write/echo/print the "<link rel="stylesheet" src="main.css">"
the css is not loaded even not detected on the consoles.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php $this->actn->getAction("pageTitle"); ?></title>
<?php
if(isset($preq[0]) && $preq[0] != "report" && $preq != "action") {
switch($preq[0]) {
default:
echo "<link rel=\"stylesheet\" src=\"".$purl."source/lib/css/main.css\"> \n";
echo "<link rel=\"stylesheet\" src=\"".$purl."source/lib/css/functional.css\"> \n";
echo "<link rel=\"stylesheet\" src=\"".$purl."source/lib/css/header.css\"> \n"; break;
}
} else {
return null;
} ?>
</head>
<body>
<div class="container">
<?php $this->sect->getSection(); ?>
</div>
</body>
</html>
the console that doesn't show anything
note: I'm using php 7.0.13