Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Struts (1)
Windows (1)
XHTML (173)
Other Resources:
require(), include() and include_once() Functions
What are the differences between require(), include() and include_once() functions in PHP?
✍: FYIcenter
All three functions are used to include and evaluate a
file into the current script execution.
The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again.
The major difference between include() and require() is that in failure include() produces a warning message whereas require() produces a fatal errors.
2007-02-27, 6344👍, 0💬
Popular Posts:
How Large Can a Single Cookie Be? - PHP Script Tips - Understanding and Managing Cookies How large c...
What is page thrashing? Some operating systems (such as UNIX or Windows in enhanced mode) use virtua...
Do You Know the Book "JUnit in Action"? You should know this book. It received some good reviews. Ti...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
How do I debug thread ? This window is only seen when the program is running in debug mode. In windo...