Can anyone reproduce this problem? (requires a server with mysql and php)
Can anyone of you help me understand the behavior I get when visiting this page?

    <html>
    
    	<body>
    
    	<?php
    		$liendb = mysql_connect("localhost","","");
    
    		mysql_select_db ("test");
    		for($i = 0; $i < 418; ++$i)
    		{
    			echo("Any old text<br />");
    		}
    
    	
    		$resultatSQL = mysql_query("SELECT uid FROM nombres ORDER BY uid");
    
    		while($tab = mysql_fetch_array($resultatSQL, MYSQL_ASSOC))
    
    		{
    			echo("<p>".$tab['uid']."</p>");
    			echo("<br />\n");
    
    		}
    
    		mysql_close();
    
    	?>
    
    	</body>
    </html>

I exported the mysql table this example is based on so that we can work on the same table.. Here it is:

    -- phpMyAdmin SQL Dump
    -- version 3.2.0.1
    -- http://www.phpmyadmin.net
    --
    -- Servidor: localhost
    -- Tiempo de generación: 06-01-2010 a las 21:49:50
    -- Versión del servidor: 5.1.37
    -- Versión de PHP: 5.3.0
    
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    
    --
    -- Base de datos: `test`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Estructura de tabla para la tabla `nombres`
    --
    
    CREATE TABLE IF NOT EXISTS `nombres` (
      `uid` int(10) unsigned NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (`uid`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=43 ;
    
    --
    -- Volcar la base de datos para la tabla `nombres`
    --
    
    INSERT INTO `nombres` (`uid`) VALUES
    (1),
    (2),
    (3),
    (4),
    (5),
    (6),
    (7),
    (8),
    (9),
    (10),
    (11),
    (12),
    (13),
    (14),
    (15),
    (16),
    (17),
    (18),
    (19),
    (20),
    (21),
    (22),
    (23),
    (24),
    (25),
    (26),
    (27),
    (28),
    (29),
    (30),
    (31),
    (32),
    (33),
    (34),
    (35),
    (36),
    (37),
    (38),
    (39),
    (40),
    (41),
    (42);

In theory, I believe this page should print 418 lines of "Any old text", and then print all entries of table "nombres", so numbers 1 to 42. In practice, it does. But if I change that magic number, 418, problems happen. 

If I use a number smaller than 418, firefox offers to download the page instead of just showing it to me.. If I do download it, I get a blank file..

If I use a number larger than 418, I don't get all the entries to table "nombres". For example, when I use 419, I get only numbers 1 to 41. When I use 420, I get only numbers 1 to 40. And so on until 454, where I only get number 1.

If I use 455 or more, I don't get any numbers at all!


My questions:

Is anyone else able to reproduce this behavior?
How could you explain this behavior?
Can anyone reproduce this problem? (requires a server with mysql and php)
===

Can anyone of you help me understand the behavior I get when visiting this page?

    <html>
    
    	<body>
    
    	<?php
    		$liendb = mysql_connect("localhost","","");
    
    		mysql_select_db ("test");
    		for($i = 0; $i < 418; ++$i)
    		{
    			echo("Any old text<br />");
    		}
    
    	
    		$resultatSQL = mysql_query("SELECT uid FROM nombres ORDER BY uid");
    
    		while($tab = mysql_fetch_array($resultatSQL, MYSQL_ASSOC))
    
    		{
    			echo("<p>".$tab['uid']."</p>");
    			echo("<br />\n");
    
    		}
    
    		mysql_close();
    
    	?>
    
    	</body>
    </html>

I exported the mysql table this example is based on so that we can work on the same table.. Here it is:

    -- phpMyAdmin SQL Dump
    -- version 3.2.0.1
    -- http://www.phpmyadmin.net
    --
    -- Servidor: localhost
    -- Tiempo de generación: 06-01-2010 a las 21:49:50
    -- Versión del servidor: 5.1.37
    -- Versión de PHP: 5.3.0
    
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    
    --
    -- Base de datos: `test`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Estructura de tabla para la tabla `nombres`
    --
    
    CREATE TABLE IF NOT EXISTS `nombres` (
      `uid` int(10) unsigned NOT NULL AUTO_INCREMENT,
      PRIMARY KEY (`uid`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=43 ;
    
    --
    -- Volcar la base de datos para la tabla `nombres`
    --
    
    INSERT INTO `nombres` (`uid`) VALUES
    (1),
    (2),
    (3),
    (4),
    (5),
    (6),
    (7),
    (8),
    (9),
    (10),
    (11),
    (12),
    (13),
    (14),
    (15),
    (16),
    (17),
    (18),
    (19),
    (20),
    (21),
    (22),
    (23),
    (24),
    (25),
    (26),
    (27),
    (28),
    (29),
    (30),
    (31),
    (32),
    (33),
    (34),
    (35),
    (36),
    (37),
    (38),
    (39),
    (40),
    (41),
    (42);

In theory, I believe this page should print 418 lines of "Any old text", and then print all entries of table "nombres", so numbers 1 to 42. In practice, it does. But if I change that magic number, 418, problems happen. 

If I use a number smaller than 418, firefox offers to download the page instead of just showing it to me.. If I do download it, I get a blank file..

If I use a number larger than 418, I don't get all the entries to table "nombres". For example, when I use 419, I get only numbers 1 to 41. When I use 420, I get only numbers 1 to 40. And so on until 454, where I only get number 1.

If I use 455 or more, I don't get any numbers at all!


My questions:

Is anyone else able to reproduce this behavior?
How could you explain this behavior?