jdemello@apcinc.com wrote:[color=blue]
> When using a multidimensional associative array to cross-reference data
> in a second, single-dimensional array, PHP stops processing data after
> a few iterations. Memory usage according to the task manager doesn't
> seem to spike and CPU usage only gets as high as 11 to 13 percent. A
> sample script is provided below, any help or alternative solutions are
> welcome. (By the way, the script below works fine on Linux with the
> same version of Apache and PHP. Possibly a PHP configuration issue?)
>
>
> OS: Win2k
> HTTPD Server: Apache 2.0
> PHP version: PHP 5.0.2
> =============================
>
>
> <html>
> <body>
>
> <?php[/color]
error_reporting(E_ALL);
ini_set('display_errors', '1');
[color=blue]
> $columnMap = array( "field1" => "u_field1",[/color]
<snip>
[color=blue]
> $columnList = array(
> array("Alpha", "field1", 5),[/color]
<snip>
[color=blue]
> echo '<table>';
> for( $i=0; $i < 520; $i++ )
> {[/color]
520 rows? Are you sure?
[color=blue]
> echo '<tr>';
> for( $j=0; $j < count($columnList); $j++ )
> {[/color]
Each row with 8 cells?
[color=blue]
> echo '<td>'.$i.', '.$j.'<br>';
> $colName = $columnList[$j][1];
> ## echo ' columnMap['.$colName.'] '.$columnMap[$colName].' ';[/color]
## Perhaps your setup doesn't like to access inexistent data.
## Replace the line above by these lines:
echo ' columnMap[', $colName, '] ';
echo isset($columnMap[$colName]) ? $columnMap[$colName] : '(not set)';
echo ' ';
<snip>
--
Mail to my "From:" address is readable by all at
http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!