|
Posted by Baron Samedi on January 21, 2006, 7:36 am
Please log in for more thread options
hi,
I followed the instructions at
http://validator.w3.org/docs/install_win.html ("Installing the
W3C-Validator on a Apache under Windows") and it works perfectly. I can
locally validate HTML pages without an internet connection.
Unfortunately, I recently changed my website to make it all PHP, so
that I can include standard headers and footers, etc for menus, hit
counters and the like, so have index.php everywhere and not index.html
any longer.
When I try to validate such a page offline, I get a "No DOCTYPE found!"
error, because the doctype is declared in an included PHP file.
The page validates perfectly online, but not offline, which makes it
somewhat obvious that my locally installed PHP is not being invoked.
Does anyone have any idea how I should configure this?
Thanks a 1,000,000 in advance.
|
|
Posted by Baron Samedi on January 21, 2006, 8:02 am
Please log in for more thread options
btw, I followed "How to Install and Configure PHP4 to Run with Apache
on Windows" at http://www.thesitewizard.com/archive/php4install.shtml
but that isn't helping :-( I am guessing that it is an Apache config
problem (and, yes, I did restart Apache)
|
|
Posted by David Dorward on January 21, 2006, 1:04 pm
Please log in for more thread options
Baron Samedi wrote:
> The page validates perfectly online, but not offline, which makes it
> somewhat obvious that my locally installed PHP is not being invoked.
What is important is the markup being served to the end user, not the PHP
program code that generates that markup. It is the output markup that needs
to be validated, not the PHP script.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is
|
|
Posted by Baron Samedi on January 22, 2006, 1:31 am
Please log in for more thread options
Thanks, David,
I realised that. My problem, however, is that I need to force the PHP
to be executed in order to generate what is served up to the end user.
At first I thought to post to this group in case anyone else had
attempted the same exercise, but nwo I am thinking that I really need
to post to an Apache group, with respect to gettting the PHP runnnig.
All feedback gratefully received, though ...
|
|
Posted by David Dorward on January 22, 2006, 3:47 am
Please log in for more thread options
Baron Samedi wrote:
> I realised that.
Realised what?
http://www.safalra.com/special/googlegroupsreply/ http://oakroadsystems.com/genl/unice.htm#quote
> My problem, however, is that I need to force the PHP
> to be executed in order to generate what is served up to the end user.
You access it through a webserver.
> At first I thought to post to this group in case anyone else had
> attempted the same exercise, but nwo I am thinking that I really need
> to post to an Apache group, with respect to gettting the PHP runnnig.
Yes.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is
|
| Similar Threads | Posted | | Use local W3C validator on local site? | September 17, 2005, 11:56 am |
| Playing a local mpeg file from a local HTML file... | July 24, 2005, 6:02 pm |
| CSS: Problems with doubly defined colors (according to validator) | May 20, 2007, 5:26 pm |
| =?windows-1256?B?xdHbx+Mg08zkx8Eg3e0g5O3m7ebR3yDa4ewgxQ==?= =?windows-1256?B?0crPx8Egx+HN3cfWx8ohISAo1ebRySk=?= | December 13, 2007, 8:02 am |
in-client local src replace. Possible? | April 9, 2005, 3:42 pm |
| clearing only local floats | November 11, 2006, 11:22 am |
| Open local folder from a link in IE/Firefox + XP SP2 | November 17, 2004, 12:22 pm |
| Question about making links point to local | October 3, 2007, 7:56 pm |
| Problem with xhtml Validator at http://validator.w3.org/ | July 27, 2005, 5:06 am |
| Country list with iso1366 codes and local country names | November 8, 2005, 6:51 am |
|