pyro.699
02-23-2006, 09:16 AM
Hello everyone,
I have spent the last few weeks trying to get this small script to work, and it seemes verry simple. But, as we all know with php, looks can be deciving...
When you go to install a fresh copy of vbulletin, and it is at step 3 (or greater) and is adding the tables, and inserting info into the MySQL Database. How the vBulletin has designed the script, to show the completion srcipt:
echo "<li>$explain[$key]</li>\n";
# Creating access table
# Creating adminhelp table
# Creating administrator table
# Creating adminlog table
# Creating adminutil table
...
Now, if by chance, the script runs into an error, it halts the script, and then it displays an error... what i want to know, is how did the make the text appear, as the scripts were being run? I have made a script, that makes alot of files, and i would like it to display the files that it has created. Now i know that i could just take the easy way out and go:
$d = dir("./directory/");
while (false !== ($entry = $d->read()))
{
if ($entry == "." or $entry == "..")
{}
else
{
//Stuff for if the files name is not . or ..
}
}
But, I would like to know the ones that it has just made... So, putting it in simple terms, i want something like "sleep{};" , but NOT sleep(); with Sleep, it adds up the ammont in to one large sum, i want some to appear, before that happens.
Ok, i hope i have supplied you with enough information. Thankyou to any help in advanced
-Cody Woolaver
I have spent the last few weeks trying to get this small script to work, and it seemes verry simple. But, as we all know with php, looks can be deciving...
When you go to install a fresh copy of vbulletin, and it is at step 3 (or greater) and is adding the tables, and inserting info into the MySQL Database. How the vBulletin has designed the script, to show the completion srcipt:
echo "<li>$explain[$key]</li>\n";
# Creating access table
# Creating adminhelp table
# Creating administrator table
# Creating adminlog table
# Creating adminutil table
...
Now, if by chance, the script runs into an error, it halts the script, and then it displays an error... what i want to know, is how did the make the text appear, as the scripts were being run? I have made a script, that makes alot of files, and i would like it to display the files that it has created. Now i know that i could just take the easy way out and go:
$d = dir("./directory/");
while (false !== ($entry = $d->read()))
{
if ($entry == "." or $entry == "..")
{}
else
{
//Stuff for if the files name is not . or ..
}
}
But, I would like to know the ones that it has just made... So, putting it in simple terms, i want something like "sleep{};" , but NOT sleep(); with Sleep, it adds up the ammont in to one large sum, i want some to appear, before that happens.
Ok, i hope i have supplied you with enough information. Thankyou to any help in advanced
-Cody Woolaver