Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Technical easy question

Posted on 2002-04-11
7
Medium Priority
?
217 Views
Last Modified: 2006-11-17
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
Comment
Question by:neostudio
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:lokeshv
ID: 6933525
NO
0
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 60 total points
ID: 6933675
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
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 6933676
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:Richard Quadling
ID: 6933678
Yes.
0
 
LVL 3

Author Comment

by:neostudio
ID: 6933799
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
 
LVL 4

Expert Comment

by:lokeshv
ID: 6933812
I THINK U JUST ASKED FOR YES/NO ?

LK
0
 
LVL 3

Author Comment

by:neostudio
ID: 6933860
Yes I Did...
The Answer was YES
and yours was NO !!

any probelm here ??
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question