FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Include within an Include





Possum
Hi

I have used the include statement to include a menu in my pages. From that menu I also have used the include statement to include the search form.

I'm not happy doing this but it works.

Is that bad good or just normal practice in your opinion.. ?
Peterssidan
I don't see a problem with it. In C/C++ it is perfectly normal to include files that include other files, but then it's mostly declarations that are included so I'm not sure if it's a fair comparison.
rx9876
Possum wrote:
Hi

I have used the include statement to include a menu in my pages. From that menu I also have used the include statement to include the search form.

I'm not happy doing this but it works.

Is that bad good or just normal practice in your opinion.. ?


It's OK.
Including codes is trying to minimize the redundant codes spreading everywhere in your projects.
It decreases the efforts to maintain the codes.
eltole
I totally agree with that, it's a quite good solution.
Related topics
Microsoft gunning for Adobe's PDF format?
Bluetooth-ultrawideband compatibility on the way?
Is this hosting allowed to upload music?
Gigabyte to support four SLI graphics cards on one
Apple to NOT drop IBM's chips .. but to have them
Interview: Derek Liu, Gaia Online Anime Community
Creating a Favicon For Your Site
Site Nav Suggestions...
Tutorial: Image Rollovers w/ Javascript
Do we support php include and/or SSI?
Bluetooth
Windows Vista - An Introduction
how do i make a window/iframe in a table within php page..??
Message / Reply Notification
Form handling in php is a pain in the neck
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.