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().
- C program 1-d array
- QTP launch application methods
- Citrix vdi and citrix xendesktop
- What is the difference body & neutral earthing ?
- What are the basic difference between re-insurance and insurance claim handling?
- How to convert varchar to date ?
- Business rule & business validation
- What is the difference between subnetmask and host
- Oracle cursors in PL/SQL
- File uploading in PHP
- Launch any application methods in QTP
- Xenapp 6.0 and xenapp 6.5
- Explain how structures can be used with in function
- UNIX shell script
- How to file sales tax for construction business?
- How to calculate interest for VAT delay payment and how to file the returns,from basic please explain me.
- Microstrategy differences
- What is the difference between a Java developer and Java designer?
- Cash management service