Please forgive if this is a really easy question, I'm pretty new to this.
I'm working with
PHP v. 4.0.6; IE 5.50, AIX 4.3, apache 1.3.20.
I'm working on a website for our group which queries information from a Sybase (11.9.2) server on Aix 4.3. Everything has been working fine until I tried incorporating style sheets to make the pages more configurable.
I want to be able link an external style sheet to be used by many other pages so I set up the following
<!--<html xmlns:v="urn:schemas-microsoft-com:vml"-->
<!DOCTYPE HTML PUBLIC "-//w3c/dtd html 4.0//en">
<html LANG="EN">
<head>
<META HTTP-EQUIV='Content-Style-Type' TYPE='text/css'>
<title>Server/Database Statistics</title>
<style><LINK TYPE="text/css" HREF="/opt/apache/htdocs/newsite/style.css" REL="stylesheet">
@import url(/opt/apache/htdocs/newsite/style.css)
.subhead { font-family: Tahoma, Arial; font-size: 18px; color: #0000CC; font-weight: bold }
</style>
</head>
<body>
<P Class="subhead"> This was a good day </P>
<?php
#--This check makes sure the style-file is present--#
$stylefile="/opt/apache/htdocs/newsite/style.css";
if ( file_exists($stylefile) )
{
#echo "The style-file is present; $stylefile";
}
else
{
echo "The style-file is NOT present; $stylefile";
}
but I can't get it to utilize the style sheets. You'll notice that I also put the tags within this page along with a link to an external page to see if I could that to work but everything I have tried fails. I left everything in in case someone case see a point of a failure which could be using an external link along side the tags within the source. Originally I thought that it could not see the style-file but I set up a check for that so I know it's not the issue.
Is there any specific bug that we might be seeing with Apache that could be causing this? I tried creating the .css file as a .php file but that didn't work either.
Does anyone have any suggestions and thanks for any/all help!!
chris