What is the difference between include and include_once ?
Which is one is good in terms of performance ?
Answers were Sorted based on User's Feedback
u may include a single file several times by using
include() but by using include_once() its ensured tht the
specific file would be included only once no matter how
many times u wrote it ;)
-Abhishek Dilliwal
http://abhishek.x10hosting.com
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / ankit
By Using include() function we can include a file any
number of times.But if you will face a Fatal error that is
a connect() or any function can not be redeclared then just
use include_once(), it will include that file only once,
then it doesn't matter how many times u include that
file. :)
| Is This Answer Correct ? | 5 Yes | 3 No |
Hi, I want to upload an image ito database and display image in a table in php how it is possible
When to use self over $this?
What is a variable cost example?
Where do I run php code?
Explain what is memcache?
What is the use of header() function in php?
What is the use of inner join in mysql?
Which functions are used to remove whitespaces from the string?
What is faster?
Whether it is possible to share a single instance of a memcache between multiple php projects?
What is nan value?
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani