Solved

Technical easy question

Posted on 2002-04-11
7
215 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 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

623 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