Re: Tidy for PHP

"Adam Setzler" <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
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 <[email protected]> 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/
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.