W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2008

Re: Tidy for PHP

From: Adam Setzler <adam.setzler@gmail.com>
Date: Wed, 22 Oct 2008 17:50:03 -0500
Message-ID: <d1e4dad30810221550p19f15238l23e2d2680ee41d53@mail.gmail.com>
To: "Susan Penter" <susan.penter@gmail.com>
Cc: html-tidy@w3.org
If you're using Tidy to clean code you've written, run it through
Tidy, then cut and paste the output.

If you're dead-set on using it the way you've described, which isn't
bad per se, you could do insert following the following code wherever
you would normally be adding you SSI's::

<?php include_once("your-menu-file.php"); ?>

-- Adam

"The trouble with the rat race is that even if you win, you're still a
rat." — Lily Tomlin

"Courage is not the absence of fear, but rather the judgment that
something else is more important than fear." — Ambrose Redmoon




On Wed, Oct 22, 2008 at 12:59 PM, Susan Penter <susan.penter@gmail.com> wrote:
> I am in the process of going from casual web design to doing it full time.
> At the moment I am writing in html but using php includes for my menus and
> saving the files as .php extensions.  Is  there either a php version of tidy
> or a way of doing includes without php?
>
> I have tried doing it like this and saving the files as html  <!--#include
> file="_includes/mainmenu.html" --> the code cleaned up and corrected the one
> error (I use Screem) however the include didn't work on my website.
>
> I'm not sure whether this is because my site supports php but not this sort
> of include or what else could have happened.
> Any advice would be greatfully received.
>
> Susan
>
> --
> OPC for Lanteglos-by-Fowey
> http://www.cornwall-opc.org/Par_new/l_m/lanteglos_fowey.php
>
> OPC coordinator for Wiltshire
> http://www.rootsweb.ancestry.com/~engwopcp/
>
> Secretary to the PCC St. Michael's Headingley
> http://www.st-michaels-headingley.org.uk/
>
>
>
Received on Friday, 24 October 2008 07:35:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:59 GMT