What are the differences between include() and include_once
() functions?
Answers were Sorted based on User's Feedback
Answer / anjali ashok arote
include()function is more time consuming because of redeclaration is more in include() file ...
where as include_once()function only declare one time...
in include()function refreshment of file is needed many time
but in include_once()function refreshment of page is only one time
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nishit
file1.php:
function check()
{
echo 'hello nishit';
}
file2.php
include('file1.php');
check();
file3.php
include('file1.php');[this is worn we should use here
include once.]
include('file2.php');
check();
while execute file3.php see what the error:
| Is This Answer Correct ? | 4 Yes | 5 No |
How the web server interprets php and interacts with the client?
how to change the div background color on every refresh..guys can u help me out.
1.<?php echo'bsfjbsnmfbs'; ?> 2.<? ech'hjndfjkshf'; ?> 3 <? echo'naskfdjnask'; three programs are exected but which is beter why
Why many companies are switching their current business language to php? Where php basically used?
What is exception in php?
What is a http session?
What are constructor and destructor in PHP?
Tell me how can I display text with a php script?
Which is the dependent variable?
What is use of preg_replace in php?
How can we take a backup of a mysql table and how can we restore it. ?
7 Answers Brain Infosys, Oracle,
Is rent a variable cost?