php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14777 Style Sheets not interpreted when sent through Apache/PHP
Submitted: 2001-12-30 14:39 UTC Modified: 2001-12-31 04:22 UTC
From: webmaster at gdmtec dot de Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.0 OS: Windows ME
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at gdmtec dot de
New email:
PHP Version: OS:

 

 [2001-12-30 14:39 UTC] webmaster at gdmtec dot de
Hi!

I've got the following configuration:
PHP 4.1.0 running as ISAPI-Module on Apache 1.3.22

The following "problem" results only (!) if I use .php as extension. 

I originally programmed the entire site with the extension .html. I used IE-specific CSS-elements to change the color/style of the scrollbar. It all worked fine.

Then I wanted to use .php as extension instead, so that I could use a prepend if necessary (e.g. include a config.php, etc.). It seemed to work fine still, PHP code is executed, the page is shown as usual. Only that the scrollbar is not shown with its changed appearance anymore. If I change back to .html everythings fine again.

I can't explain this because I have in mind, that everything that is outside of <?php-Tags is sent unchanged to the browser. And the Source-Code (right-click in Internet-Explorer) shows no differences between the two files. Still it doesn't seem to work with .php

Hereby the necessary files:

hp_mitte.php:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Pfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode</title>
<script type="text/javascript"><!--
function checkFrameset() 
  {if(!parent.oben) location.href="index.php";}
--></script>
<style type="text/css"><!--
body {margin-bottom:0px; margin-top:0px; margin-left:0px; margin-right:0px; 
      scrollbar-face-color:#FFFFFF; scrollbar-highlight-color:#43CBFF; 
      scrollbar-shadow-color:#43CBFF; scrollbar-3dlight-color:#43CBFF; 
      scrollbar-arrow-color:#43CBFF; scrollbar-track-color:#D5D5D5; scrollbar-darkshadow-color:#43CBFF;}
table {border:0px;}
--></style>
</head>
<body onLoad="checkFrameset()">
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
  <tr bgcolor="#D5D5D5">
    <td height="24px" colspan="3">
    <font style="font: bold 12pt Arial, Helvetica, sans-serif;">
      &nbsp;&nbsp;Startseite
    </font>
    </td>
  </tr>
  <tr>
    <td align="center" colspan="3" valign="middle">
        <img src="images/kirche.jpg" /><br />
        <font style="font:10pt Arial, Helvetica, sans-serif;">
        Pfarrkirche St. Maria Geburt
        </font>
    </td>
  </tr>
</table>
<body>
</html>

index.php:

<!DOCTYPE php PUBLIC "-//W3C//DTD php 4.0 Frameset//EN">
<html>
<head>
<title>Pfarrgemeinde St. Maria Geburt, Duderstadt-Gerblingerode</title>
</head>
<frameset frameborder="no" border="0" framespacing="0" rows="30px,*,24px">
  <frame src="hp_oben.php" noresize="noresize" scrolling="no" name="oben" marginheight="0" marginwidth="0">
  <frameset border="0" frameborder="no" framespacing="0" cols="159px,*,9px">
    <frame src="hp_links.php" noresize="noresize" scrolling="no" name="links" marginheight="0" marginwidth="0">
    <frame src="hp_mitte.php" noresize="noresize" name="mitte" scrolling="yes" marginheight="0" marginwidth="0">
    <frame src="hp_rechts.php" noresize="noresize" scrolling="no" name="rechts" marginheight="0" marginwidth="0">
  </frameset>
  <frame src="hp_unten.php" noresize="noresize" scrolling="no" name="unten" marginheight="0" marginwidth="0">
  <noframes>
    <body>
    </body>
  </noframes>
</frameset>
</html>

The other files are not really important, you can have empty files and the same problem results (or results not depending on the file-extension).

I hope you can help me!
Sincelery
Daniel Warner


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-30 15:31 UTC] daniel@php.net
check your DOCTYPE definition:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

it's WRONG. either chose the right one or leave it out.

Kind Regards,
  Daniel Lorch
 [2001-12-30 15:40 UTC] daniel@php.net
i forgot to +bogus
 [2001-12-30 17:49 UTC] webmaster at gdmtec dot de
Thanks, I tried changing the wrong DOCTYPE-Definition (I replaced all extensions .html with .php via Search and Replace, so also the DOCTYPE-Definition was wrong afterwords), aswell as deleting it from the file, but it didn't work out unfortunately.

Have you got another clue?
 [2001-12-30 17:53 UTC] imajes@php.net
Actually, it's to do with the IE engine not interpreting css correctly. Remember, that the scroll bar code is a: microsoft proprietary, and b: not standard compliant. Thus, the error is in the ie engine in the way it inteprets html. I have found that this works sometimes and sometimes not on .php files, and the same is true for .html files. Go yell at Microsoft. :)

 [2001-12-31 04:22 UTC] webmaster at gdmtec dot de
Hi,

I found the solution:

The Internet Explorer needs the following DOCTYPE-Definition:

<!DOCTYPE html public "-//W3C//DTD HTML 4.0 transitional//EN">

Thanks a lot for your help!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 19:01:30 2024 UTC