RE: [PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-16 Thread Ford, Mike [LSS]
On 15 January 2004 22:39, Luke wrote: > ? Holy cow, this gets simpler all the time. Pretty soon, there'll be > ? nothing left on my page but PHP includes and echo functions! ? > ? Does this cut down on a website's file size? In other > words, are the php > ? includes effectively inactive when no o

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
Oops, I spotted some big errors in my included page already. Here's the new page: $todayDate = date("m-d-Y"); echo 'Freedomware > "$statename"'; echo ''; echo ''; echo ''; if($includena/a1 == TRUE){ echo ''; } echo ''; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
I wrote: ? But suppose there's a certain page where I don't want the style sheet in ? the middle - the one I named MIDDLE. Is there a way to mark it in the ? include page, then instruct the main page to either not import it or ? replace it with nothing ("")? Luke wrote: youd have to use a varia

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Luke
? Holy cow, this gets simpler all the time. Pretty soon, there'll be ? nothing left on my page but PHP includes and echo functions! ? ? Does this cut down on a website's file size? In other words, are the php ? includes effectively inactive when no one's viewing your main pages, ? leaving them emp

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
i just changed the opening and closing tags a little (you didnt need so many) but the main change is, now the variables come before the included file, so that the include file can access those variables too. Holy cow, this gets simpler all the time. Pretty soon, there'll be nothing left on my page

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Luke
hi Very simple problems, good to see ur getting the hang of it :) the first is, you have defined your variables after you include the page, so that the echo is outputting a blank variable... so instead of: make it '; include ("../../../../includes/javascript.php"); include ("../../../../i