PHP array error
Posted: Mon Dec 28, 2009 9:10 pm
I'm getting an error Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 35 bytes) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wel1.php on line 9 in following code.
memory_limit = 128M in php.ini
php version 5.2.11
Apache version 2.2.14
Code: Select all
<?php
$count = 1;
while ($count <= 10 )
{
$vname = 'text'.$count;
$jokes[] = array('id' => '$count', 'name' => '$vname' );
++$count;
}
echo "will output later";
?>
php version 5.2.11
Apache version 2.2.14