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 |
Which is used to maintain the value of a variable over different pages?
What are arguments in php?
hi, i have knowledge about PHP/MYSQL,i am fresher M.Sc-IT 2009 pass out,any recruitment in PHP please let me know.
What are the differences between Get and post methods in form submitting, give the case where we can use get and we can use post methods?
11 Answers HCL, Rushmore Consultancy, Thursday Technology,
How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?
Is laravel easy to learn?
What is difference between web service and api?
How do you end a function in python?
Is empty function c++?
How can we submit a form without a submit button?
2 Answers Rushmore Consultancy,
What is urlencode and urldecode in php?
What is the difference between echo, print and printf()?