How to include a file in php:
There are two ways through which we can add the files.
They are done by using the following functions:
1. include("abc.txt");
2. require("abc.txt");
Php reads the content and execute the file where ever this function gets called.
Difference between include() and require() function. [link]
Difference between include() and require() function.
- The include() function in php file generates a warning
but the rest part of the script continues with execution
- The require() function in php file generates a fatal error and the execution stops than and there only.
Tuesday, April 14, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment