Solved

Technical easy question

Posted on 2002-04-11
7
178 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
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:lokeshv
ID: 6933525
NO
0
 
LVL 40

Accepted Solution

by:
RQuadling earned 15 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:RQuadling
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
Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 40

Expert Comment

by:RQuadling
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now