I'm modifying an open-source PHP timecard program for use on a Windows Business Server 2003. In Linux (where it was written and where I did most of the major modifications), everything displays fine. But when ported to Windows, the text color = the background color in both Firefox and IE.
So PHP code like this:
<table border="0" cellpadding="2" cellspacing="2" bgcolor="<?= $default->light_bg_color ?>" text="<?= $default->dark_text_color ?>" align="center" valign="top">
(where light_bg_color = "#ffffff" and dark_text_color = "#000000")
creates source code like this:
<table border="0" cellpadding="2" cellspacing="2" bgcolor="#ffffff" text="#000000" align="center" valign="top">
But the output text is white!
I found by changing the light_bg_color and dark_text_color values that no matter what I tell the text color to be, it displays in whatever color is set for bgcolor. For example, if I set my background to purple and my text to red, my background and text are both purple.
I can't imagine why Windows would behave one way on this and Linux another. Is there a setting in my PHP.INI file that is incorrect?
Thanks for any help.