[WSG] PHP includes
If I am including a menu using the PHP include command but the actuual menu is an html list does the included file need to have its code including the css style sheet or will it use the style sheet of the page it is included to. Also is their a preference in web standards for using PHP includes or something like SSI? -- Michael Horowitz Your Computer Consultant http://yourcomputerconsultant.com 561-394-9079 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] PHP includes
You don't need to add any styles to the include file. Keep in mind the php does its stuff long before any css rules get applied which happens only after the dom is loaded into the user's browser. I cannot speak for SSI as I've never used it once. Always did asp/php includes. Joseph R. B. Taylor /Designer / Developer/ -- Sites by Joe, LLC /Clean, Simple and Elegant Web Design/ Phone: (609) 335-3076 Fax: (866) 301-8045 Web: http://sitesbyjoe.com Email: [EMAIL PROTECTED] Michael Horowitz wrote: If I am including a menu using the PHP include command but the actuual menu is an html list does the included file need to have its code including the css style sheet or will it use the style sheet of the page it is included to. Also is their a preference in web standards for using PHP includes or something like SSI? *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***begin:vcard fn:Joseph Taylor n:Taylor;Joseph org:Sites by Joe, LLC adr:;;408 Route 47 South;Cape May Court House;NJ;08210;USA email;internet:[EMAIL PROTECTED] title:Designer / Developer tel;work:609-335-3076 tel;fax:866-301-8045 tel;cell:609-335-3076 x-mozilla-html:TRUE url:http://sitesbyjoe.com version:2.1 end:vcard
Re: [WSG] PHP includes
Quoting Michael Horowitz [EMAIL PROTECTED]: If I am including a menu using the PHP include command but the actuual menu is an html list does the included file need to have its code including the css style sheet or will it use the style sheet of the page it is included to. Any text that's in the PHP include file that is not PHP code is passed directly to the browser as part of the HTML code. Therefore it does not need it's own CSS style sheet. Ken *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] PHP includes
You can basically think of a PHP include as basically just copying everything from the included file into the file it is being included in. Ken Robinson wrote: Quoting Michael Horowitz [EMAIL PROTECTED]: If I am including a menu using the PHP include command but the actuual menu is an html list does the included file need to have its code including the css style sheet or will it use the style sheet of the page it is included to. Any text that's in the PHP include file that is not PHP code is passed directly to the browser as part of the HTML code. Therefore it does not need it's own CSS style sheet. Ken *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** -- Christian Snodgrass Azure Ronin Web Design http://www.arwebdesign.net/ http://www.arwebdesign.net Phone: 859.816.7955 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] PHP includes
Also is their a preference in web standards for using PHP includes or something like SSI? SSI stands for server side include which is essentially what a PHP include is. The only difference is the syntax used to call the include. -- Tyssen Design http://www.tyssendesign.com.au Ph: (07) 3300 3303 Mb: 0405 678 590 *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
CLOSED Re: [WSG] PHP includes
Hi This discussion is off topic for the WSG list. If you would like to respond to Michael, please do so off list. The list guidelines are available at the footer of each list email. Thanks James -- cc:core On Wed, 6 Feb 2008 07:34:22 am Michael Horowitz wrote: If I am including a menu using the PHP include command but the actuual menu is an html list does the included file need to have its code including the css style sheet or will it use the style sheet of the page it is included to. Also is their a preference in web standards for using PHP includes or something like SSI? *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***