I am writing a script 'stockAvailibil ty.php' that creates a spreadsheet of stock availability from a MySql database.
But the MySql database needs updating from a MsSql database first, and
I have a script that succesfully does this 'updateStockLev el.php'..
So what is the best way to run 'updateStockLev el.php' from 'stockAvailibil ty.php'
prior to the rest of the script executing.
I prefer not to use 'include' because they both share similar classes and functions that will cause a redeclaration headache.
Also it needs to allow time for the MySql database to finish its UPDATE
But the MySql database needs updating from a MsSql database first, and
I have a script that succesfully does this 'updateStockLev el.php'..
So what is the best way to run 'updateStockLev el.php' from 'stockAvailibil ty.php'
prior to the rest of the script executing.
I prefer not to use 'include' because they both share similar classes and functions that will cause a redeclaration headache.
Also it needs to allow time for the MySql database to finish its UPDATE
Comment