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 |
What is the php function that removes the first element of the array and returns it?
What are differences between PECL and PEAR?
what use of <?php
Do you know what are traits?
Can a php code encryted? Is it possible to execute the php file which is encrypted(without decrypting), if so pleaze tell me the way.
Explain the difference between $var and $$var?
How does php server work?
at present am learning lamp course sir ..i want to know the carrer prospectus in php ...is there any companies recruiting freshers in chennai ..for freshers how much can i demand as a fresher in php ....?i finished my mca ..please sugggest me to face interview in php asking salary details and all please suggest me how much can i ask as a fresher in php ? and also tel is there any openings in chennai for recruting php freshers send their emails and company info please ? please send ur valuable suggestions to kiranpulsar2007@gmail.com i hope u wil reply to my question thank u guys bye take care see u soon all the best to everyone
I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable
How can we take a backup of a mysql table and how can we restore it. ?
7 Answers Brain Infosys, Oracle,
What is session in php why it is use?
What is stripslashes php?