|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-08-07 08:55 UTC] hramrach_l at centrum dot cz
My script is <?php phpinfo() ?> Output includes: <body><table border="0" cellpadding="3" cellspacing="1" width="600" bgcolor="#000000" align="center"> <tr valign="middle" bgcolor="#9999cc"><td align="left"> [img left out] <h1>PHP Version 4.2.2</h1> </td></tr> </table><br /> As you may see there is background set several times but text/link/vlink color is not set at all. Because my text color is not readable on the background I cannot read the info. I think something like <body text="#000000" bgcolor="#f0f0ff" link="#0000ff" vlink="#ff00ff" alink="#0000ff"> instead of simple <body> would give correct page that looks as intended. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 06:00:01 2025 UTC |
They should not be ok. Default text color may be black, white, gray, violet, yellow, anything. When you set background, you should set text color to ensure it is visible on the background. Here is body tag from this page, which renders correctly. <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff" text="#000000" link="#000033" alink="#0099ff" vlink="#000033"> Here's a patch, hopefully correct --- php-4.2.2/ext/standard/info.c~ Thu Mar 14 19:39:37 2002 +++ php-4.2.2/ext/standard/info.c Wed Aug 7 15:19:06 2002 @@ -165,7 +165,8 @@ php_uname = php_get_uname(); PUTS("<head>"); php_info_print_style(); - PUTS("<title>phpinfo()</title></head><body>"); + PUTS("<title>phpinfo()</title></head>"); + PUTS("<body text=\"#000000\" bgcolor=\"#f0f0ff\" link=\"#0000ff\" vlink=\"#ff00ff\" alink=\"#0000ff\">"); php_info_print_box_start(1); if (expose_php) {