RE: [PHP] <?include?>... another dumb question

From: Date: Tue, 05 Mar 2002 14:35:33 +0000
Subject: RE: [PHP] <?include?>... another dumb question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87266@lists.php.net to get a copy of this message
Yes, this is acceptable. Normally, include and require go at the top of the page out of convention. However, there is no requirement that they be there. Just be careful. it's an accepted convention because it's a good idea. Make sure you know what you are doing when you break with the tradition. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -----Original Message----- From: Team GotFusion [mailto:tami@gotfusion.com] Sent: Tuesday, March 05, 2002 6:59 AM To: php-general@lists.php.net Subject: [PHP] <?include?>... another dumb question I have people telling me that I MUST put the <?include?> file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the <?include?> whereever I need it on the page. Actually have it embedded in an IF statement, so that if the conditions are not met, the script is not run and there is no need to pull in the script. It works fine.... Is placing the include at the top absolutely required, good programming convention or just preferred? thanks, Tami Team GotFusion

« previous php.general (#87266) next »