Why incude causes only the first two script array?

each script works separately.
but everybody doesn't want to connect
by shuffling array values that are revealed a maximum of only the FIRST two of the script.... sometimes one
for the execution of each individual script takes 15-25 seconds.
<?php
$arrayUpdate = array();

$arrayUpdate[] = "update/DB_update_1.php";
$arrayUpdate[] = "update/DB_update_2.php";
$arrayUpdate[] = "update/DB_update_3.php";
$arrayUpdate[] = "update/DB_update_4.php";
$arrayUpdate[] = "update/DB_update_5.php";
$arrayUpdate[] = "update/DB_update_6.php";
$arrayUpdate[] = "update/DB_update_7.php";
$arrayUpdate[] = "update/DB_update_8.php";
$arrayUpdate[] = "update/DB_update_9.php";
$arrayUpdate[] = "update/DB_update_10.php";
$arrayUpdate[] = "update/DB_update_11.php";
$arrayUpdate[] = "update/DB_update_12.php";
$arrayUpdate[] = "update/DB_update_13.php";
$arrayUpdate[] = "update/14.php";

foreach ($arrayUpdate as $key => $value) {

 include $value;
}
April 7th 20 at 11:57
1 answer
April 7th 20 at 11:59
Filling numerousity names line by line is 5!
Include in the foreach is 5!

Use 302 redirect.
@elver, function_exists().
And it is better to keep the classes/functions and data manipulations - were in different files. - anibal.Aufderhar commented on April 7th 20 at 12:05
the names are not numbered, it is only in the example for readability.
Include in the foreach to make sure ;)
By connecting the error output as suggested above, I opened my eyes
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

the error was that I in some scripts if you copy-paste everywhere have changed the names of the functions. called error just when trying to re-declare the function, thanks for the advice. - Maxine72 commented on April 7th 20 at 12:02

Find more questions by tags PHP