Home > Backend Development > PHP Tutorial > Extract discuz installation progress display

Extract discuz installation progress display

WBOY
Release: 2016-07-25 09:02:06
Original
1018 people have browsed it
Extract the discuz installation progress display, such as what data table is created and what file is created!

A classmate asked a question yesterday http://www.oschina.net/question/13403_74988, it took some time to extract the discuz.
At first I thought it was ajax completion, but it turned out not to be the case. As for the progress bar and so on, you can play it freely. Extract discuz installation progress display
  1. Discuz! Installation Wizard
  2. < ;/head>
  3. //The message displayed after the detection is completed
  4. function showjsmessage($message) {
  5. echo ''."rn";
  6. flush();
  7. ob_flush();
  8. }
  9. //Simulate initialization data table
  10. for ($i = 1; $i <= 50; $i++) {
  11. showjsmessage("Create data table {$i} ... successfully");
  12. sleep(rand(0, 1));
  13. }
  14. ?>
  • Copy code


    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template