Okay, I have a quick question.
I have all my .php files from my /website/ using /website/includes/header.php
the only problem is that, /website/newdir/page.php (which is supposed to use /website/includes/header.php) doesn't read the /website/styles.css because /website/includes/header.php is set to:
<link href="styles.css" rel="stylesheet" type="text/css">
so i'm trying to change it to:
<?php
$rootdir = $_SERVER['DOCUMENT_ROOT'];
$rootdir .= 'website/';
<link href="<?php echo $rootdir; ?>styles.css" rel="stylesheet" type="text/css">
or even
<link href="<?php echo $rootdir . 'styles.css'; ?>" rel="stylesheet" type="text/css">
but for some weird reason.. they both don't work!
hmm, can anyone help? Thanks in advance!