PHP 4.0 Bug #8030: Cropping of long pages with thttpd/php
| From: | louis at sixnet dot net | Date: | Wed, 29 Nov 2000 11:08:09 +0000 |
| Subject: | PHP 4.0 Bug #8030: Cropping of long pages with thttpd/php | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39494@lists.php.net to get a copy of this message | ||
From: louis@sixnet.net
Operating system: RedHat 6.2
PHP version: 4.0.3pl1
PHP Bug Type: Other web server
Bug description: Cropping of long pages with thttpd/php
I'm using PHP 4.0.3pl1+thttpd to print out a table of users and their details from an mSQL
database. However, the page cuts short at random points and fails to display to the end. The
database has about 230 entries and will probably grow to over 1000 in future. When I run the exact
same script on Apache+PHP 4.0.1pl2 it works fine. Is this a PHP 4.0.3pl1 or a thttpd issue?
A slightly modified script (for security) so that you can replicate the error is here:
http://register.1shop.org:1234/users.php
The page should end with the user "yellowr" and then a link below the table to "View
disk space usages".
The snippet of code doing the table generation is:
<table cellpadding="5" bgcolor="Navy">
<tr
bgcolor="White"><td><b>User</b></td><td><b>Hosting
Option</b></td><td><b>e-mail Address</b></td><td>
</td></tr>
<?
// Read in the table of users from the database
$result=msql("oneshop","select user,hosting,email from users order by user");
// Output the users and hosting option assigned to them as the first two cells on the row
for($i=0;$i<msql_numrows($result);$i++)
{
echo "<tr bgcolor=\"White\"><td
nowrap>",msql_result($result,$i,"user"),"</td>\n<td
nowrap>";
switch(msql_result($result,$i,"hosting"))
{
case 1: echo "1shop & sub-directory"; break;
case 2: echo "1shop & own domain"; break;
case 3: echo "hosted elsewhere"; break;
default: echo "<b>Error in <i>users.php</i>:</b> Hosting
option invalid.";
}
echo "</td>\n";
echo "<td nowrap>*****(blanked intentionally)</td>\n";
// Now output radio boxes to offer deletion the user on that row
echo "<td nowrap><font size=\"-3\"><a
href=\"users-del.php?user=",msql_result($result,$i,"user"),"\">DELETE</a></font></td>\n</tr>";
}
?>
</table>
Thanks,
Louis
--
Edit Bug report at: http://bugs.php.net/?id=8030&edit=1