What is difference between require_once(), require(), include().Becouse above three function usely use to call a file in another file.
Editorial / Best Answerbicu
Difference between require() and require_once(): require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page).
So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. This way you make sure you don't include the file more times and you will not get the "function re-declared" error.
Difference between require() and include() is that require() produces a FATAL ERROR if the file you want to include is not found, while include() only produces a WARNING.
There is also include_once() which is the same as include(), but the difference between them is the same as the difference between require() and require_once().
- Oracle connector stage and Oracle enterprise satge
- Change the configuration file during run-time
- Split the input columns into different target
- Track source file name in target file
- Print minimum & maximum salary of respective employee
- Generate the occurrence number in output file
- How to automate a datastage job with out using sequencer
- Load a date field value from sequencial file to databse table with out using transformer
- Store rejected record
- How to load 2 files data into a single file without using join stage
- Merge two columns into one column in target
- Change request (cr) and modification
- Nominal ledger
- Roll back and roll forward
- Load 10 input files into 10 target tables at a time
- Filters and restricted columns
- Abinitio date functions and file corruption
- Difference between mobile app testing and mobile app native testing
- Etl case and decode
- Array in function