Solved

Technical easy question

Posted on 2002-04-11
7
204 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:
Richard Quadling 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: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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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…
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…
The viewer will learn how to dynamically set the form action using jQuery.

856 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