XML in series
Posted: Wed May 20, 2009 1:58 pm
Hello,
I would like to create many xml files (100000 for testing step). Here is the code to create them :
I add the do/while instruction to be sure that the xml is really there.
The problem : PHP going (maybe) too fast and create only 11000 xml.
Do I join an option to manage the creation ?
Do you have any suggest ?
Thanks a lot.
Steve.
I would like to create many xml files (100000 for testing step). Here is the code to create them :
Code: Select all
for($i=$start; $i<=NB_SQL_USER; $i++) {
//Begin XML
$user_account->set_u_id($i);
$user_account->create();
$user_info->set_u_id($i);
$user_info->create();
//End XML
do {
sleep(0.5);
}while(!file_exists($path_xml_infos.$i.'.xml'));
}
The problem : PHP going (maybe) too fast and create only 11000 xml.
Do I join an option to manage the creation ?
Do you have any suggest ?
Thanks a lot.
Steve.