RE: [PHP] Re: PHP Includes and Echoes (Sorry; read this post firs t!)

From: Date: Fri, 16 Jan 2004 09:51:28 +0000
Subject: RE: [PHP] Re: PHP Includes and Echoes (Sorry; read this post firs t!)
Groups: php.general 
Request: Send a blank email to php-general+get-174769@lists.php.net to get a copy of this message
On 16 January 2004 00:30, Freedomware wrote: > I should have played with this some more before I posted more > questions. After fixing an error on the included page, I replaced > every instance of na/a1 on both pages with a1. That seemed to fix > everything; the first style sheet comes through, but the second one > is blocked - > and I don't > see any error messages. > > I have a couple more questions, though. First, how do I turn this > exclude function off on a page where I do NOT want to ban > style sheet na/a1? > > I tried deleting the following on the main page: > > if($pagetoshow == 'withouta1'){ > $includea1 = FALSE; > }else{ > $includeaa1 = TRUE; //(or false depending) > } > > Then I changed TRUE and FALSE in various combinations, but it > didn't work. Simple -- if you have a page where you want a1 to be unconditionally included, set the variable to TRUE unconditionally: $includea1 = TRUE; Similarly, if you want it to be unconditionally blocked: $includea1 = FALSE; The include file will test the value of $includea1 as before, and include it or not as you've specified. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#174769) next »