Re: A question that has been bugging me..
| From: | Jason Pruim | Date: | Thu, 16 Aug 2007 15:59:09 +0000 |
| Subject: | Re: A question that has been bugging me.. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260927@lists.php.net to get a copy of this message | ||
On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote:
On 8/16/07, Jason Pruim <japruim@raoset.com> wrote:Because I came as a HTML person into PHP and didn't even think about being able to include my headers, footers, nav etc in the php file... Just include the php in the html... I'll look into that later today if I have time :) Thanks helping me understand this... I finally feel like I'm remembering some stuff and might actually be able to help others on this list! :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comOn Aug 16, 2007, at 11:31 AM, Daniel Brown wrote:Then I'm lost... What do other people do when they need to make the page look good? Just do all the formatting in the php page? Or through includes with css files? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comUnless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunderstand what sessions are used for? :)You could definitely do it with sessions if you wanted, but youwon't be able to set a session from an SHTML file either.If you need to keep a .shtml extension for whatever reason, lookat either modifying your httpd.conf or .htaccess (if available) to process your .shtml as PHP.Otherwise, is there any reason you're not just doing somethinglike the following? <?include('templates/header.html'); // Data goes here include('templates/footer.html');?>