Connecting Tech Pros Worldwide Help | Site Map

is it Array have limited in javascrip code?

Newbie
 
Join Date: Mar 2008
Posts: 18
#1: Mar 26 '08
i have a question. May i know is it array had limited? Because once read more than 5000 something that show an error and can not continue to count. My data more than 10000 rows. My program show in below. Is it my program had problems? Got others way can slove?

var a = new Array();
var b = new Array();
var c = new Array();
var d = new Array();
var e = new Array();
var f = new Array();
function id_list()
{
<?
$myFileName = "data/list.txt";
$fh = fopen($myFileName, "r");
$Read = fread($fh, filesize($myFileName));
fclose($fh);
$list = explode("?", $Read);
$x= count($list);

for($i=0; $i<$x; $i++)
{
$list_data = explode(";", $list[$i]);
?>
a[<? echo $i ?>] = "<? echo $list_data[1] ?>";
b[<? echo $i ?>] = "<? echo $list_data[2] ?>";
c[<? echo $i ?>] = "<? echo $list_data[3] ?>";
d[<? echo $i ?>] = "<? echo $list_data[4] ?>";
e[<? echo $i ?>] = "<? echo $list_data[5] ?>";
f[<? echo $i ?>] = "<? echo $list_data[6] ?>";

<?
}
?> }
Newbie
 
Join Date: Mar 2008
Posts: 18
#2: Mar 26 '08

re: is it Array have limited in javascrip code?


i try to set the limit like
<script> a = new array(15000); </script>
then also can not run.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#3: Mar 26 '08

re: is it Array have limited in javascrip code?


Please read the forum guidelines on how to post questions (code tags)

Regards.
Reply