jjf Posted August 4, 2006 Share Posted August 4, 2006 Hi, all. I'm new to PHP and could use a little help here. I tried googling this problem, but (for the first time so far in my forays with PHP) couldn't find any help.I dloaded and modified an open source online timecard program. It was originally written in Linux, I modified it in Linux, then ported it to my Windows partition (because it will eventually end up on a Windows SBS). The pages looked fine in Linux, but in Windows the background color is all wrong.The program has a file called defaults.php, which includes these lines:[code]/* Colors */$default->dark_bg_color = '#085d8b'; // Dark background color$default->light_bg_color = '#ffffff'; // Light background color$default->item_bg_color = '#cddeee'; // Light background color for input items $default->light_text_color = '#ffffff'; // Light text color$default->dark_text_color = '#000000'; // Dark text color...etc[/code]But my Windows config doesn't seem to follow the calls to $default->whatever_color. Here's an example:[code]<table border="0" cellpadding="2" cellspacing="2" bgcolor="<?= $default->light_bg_color ?>" text="<?= $default->dark_text_color ?>" align="center" valign="top">[/code]Under Linux, this worked fine. Under Windows, it doesn't. The table's background color reverts to dark blue in Firefox and bright red in IE. In fact all the colors are strange: the text colors (blue in Firefox, green in IE), the body bgcolor (same dark blue in Firefox, same bright red in IE). Any help? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/16596-bgcolor-wrong-when-ported-to-windows-server-right-on-linux-server/ Share on other sites More sharing options...
jjf Posted August 4, 2006 Author Share Posted August 4, 2006 It seems other pages also screw up right around this tag:[code]<?=[/code]Is there an extention I need to load? Quote Link to comment https://forums.phpfreaks.com/topic/16596-bgcolor-wrong-when-ported-to-windows-server-right-on-linux-server/#findComment-69482 Share on other sites More sharing options...
AndyB Posted August 4, 2006 Share Posted August 4, 2006 http://ca3.php.net/ini.corecheck that 'short' tags are allowed in the Windows php version. If not, change your code or change the ini file Quote Link to comment https://forums.phpfreaks.com/topic/16596-bgcolor-wrong-when-ported-to-windows-server-right-on-linux-server/#findComment-69484 Share on other sites More sharing options...
jjf Posted August 4, 2006 Author Share Posted August 4, 2006 THANK YOU!I'm so glad it was something quick and painless. I was having horrific visions of racing against the deadline in 60 hour work weeks as I rewrote pages of code. Quote Link to comment https://forums.phpfreaks.com/topic/16596-bgcolor-wrong-when-ported-to-windows-server-right-on-linux-server/#findComment-69505 Share on other sites More sharing options...
AndyB Posted August 4, 2006 Share Posted August 4, 2006 [quote author=jjf link=topic=103035.msg409886#msg409886 date=1154731785]THANK YOU!I'm so glad it was something quick and painless. I was having horrific visions of racing against the deadline in 60 hour work weeks as I rewrote pages of code. [/quote]OK, then you owe me a beer :) Quote Link to comment https://forums.phpfreaks.com/topic/16596-bgcolor-wrong-when-ported-to-windows-server-right-on-linux-server/#findComment-69515 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.