Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to phpanswers , where you can ask questions and receive answers from other members of the community.
Can we use include (”myfile.php”) two times in a PHP page and how will it affect to my output?
0
votes
interview
php
asked
2 years
ago
by
phpanswers
(
1,125
points)
edited
2 years
ago
by
phpanswers
1 Answer
0
votes
You can include a php file any number of times as needed. But content of that file will be appear repeated. Ideally a file should get included only once in a php script.
to make sure a file gets included only once, u can use include_once() or require_once() function.
answered
2 years
ago
by
kiran
(
230
points)
Related questions
0
votes
2
answers
I want to create mysql database dynamically.How can we create a database using PHP and mysql?
asked
2 years
ago
by
phpanswers
(
1,125
points)
interview
php
0
votes
1
answer
How can I embed a java programme in PHP file and what changes have to be done in PHP.ini file?
asked
2 years
ago
by
Neeraj Narkhede
(
1,670
points)
interview
php
technology
0
votes
3
answers
How can we take a backup of a mysql table and how can we restore it. ?
asked
2 years
ago
by
phpanswers
(
1,125
points)
interview
php
–1
vote
2
answers
What is the default session time in PHP and how can I change it?
asked
2 years
ago
by
Neeraj Narkhede
(
1,670
points)
interview
php
0
votes
1
answer
how payment gateway works and how to implement it in php
asked
2 years
ago
by
Neeraj Narkhede
(
1,670
points)
interview
php