• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

Technical easy question

Hi,

just answer me Yes or No, thats it !! :-P

main.php includes
=================
1- functions.inc
2- footer.inc

do i need to include functions.inc in footer.inc also ?
0
neostudio
Asked:
neostudio
  • 3
  • 2
  • 2
1 Solution
 
lokeshvCommented:
NO
0
 
Richard QuadlingSenior Software DeveloperCommented:
No.

But if you did, I would use include_once to save me having to remember that I already included it somewhere else.

include_once() was added in PHP 4.0.1pl2

Regards,

Richard.
0
 
Richard QuadlingSenior Software DeveloperCommented:
So, I suppose I could argue that the answer is Yes you DO need to include functions.inc in footer.inc as footer MAY be included in a file that does NOT have functions.inc included.

So.

Yes.

Using,

include_once('functions.inc');

Regards,

Richard Quadling.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Richard QuadlingSenior Software DeveloperCommented:
Yes.
0
 
neostudioAuthor Commented:
Thank You, From Now On, I Will Be Using Include_Once For The Functions.INC In All My Pages, This Seems To Solve The Things Here..


Thanks
0
 
lokeshvCommented:
I THINK U JUST ASKED FOR YES/NO ?

LK
0
 
neostudioAuthor Commented:
Yes I Did...
The Answer was YES
and yours was NO !!

any probelm here ??
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now