This script is CLI-only. Run it from the command line (php backfill_stock_distributor_companyid.php), not a web browser.