Skip to content
Advertisement

Tag: require-once

require_once returns true instead of expected object

Both vendor/autoload.php files are basically identical: In both files: This has had me digging into Composer’s autoload files (which has been insightful), but I’m still perplexed: Why does requiring the first file return boolean true, and not object(ComposerAutoloadClassLoader? Update I created a copy of vendor/autoload.php, vendor/aught.php and when I require that one, it returns the object. Answer require_once returns true

How to solve the fatal error in require_once

My project has two entry point for example File 1:/index.php ( first entry point) – here we include the config form the config folder File 2:service/service.php – here we include the config form the config folde if i call the File 2:service/service.php has no fatal error but when i call the File 1:/index.php it became the fatal error as failed

Advertisement