| 
	
 | 
 Posted by Jerry Stuckle on 07/16/06 00:12 
vito wrote: 
>>Well, in this case you're trying to initialize 10,000 * 10,000 arrays,  
>>each with an integer.  On a 32 bit system that's something like  
>>400,000,000 bytes (close to 400 mb) of storage plus the overhead of the  
>>arrays themselves.  Probably a bit more than you have available - the  
>>default is around 8M. 
>> 
>>Why would you ever try to initialize this much memory (in either PHP or  
>>C/C++) anyway? 
>> 
>  
>  
> Indeed, i just hope to make an array of a[10000][3] and then can be used  
> later. i'd be glad if you could tell me how to initialize such an array.  
> Thanks.  
>  
>  
 
OK, here's a good place to start with arrays: 
 
http://us3.php.net/manual/en/language.types.array.php 
 
However, I still fail to see why you need to define 30K elements.  
That's an awful lot for a PHP routine.  But you know more about what  
you're doing. 
 
--  
================== 
Remove the "x" from my email address 
Jerry Stuckle 
JDS Computer Training Corp. 
jstucklex@attglobal.net 
==================
 
  
Navigation:
[Reply to this message] 
 |