note 71487 deleted from reserved.variables by bobby
| From: | bobby@php.net | Date: | Fri, 08 Dec 2006 04:14:21 +0000 |
| Subject: | note 71487 deleted from reserved.variables by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120419@lists.php.net to get a copy of this message | ||
Note Submitter: thecrandallster at gmail dot com
----
This will work for validating a html uri for the w3c validator.
If you change parts of it around for your site you can get it to work for the css validator too.
*(also--dont shun me if someone else did this before me, I am pretty sure that if they did it isnt
very well publicized because I didn't find it the first 5 minutes of searching. Either way,
here is the story):
I was tired of making validation links and sick of seeing headers not going through firewalls, among
other issues. So to make it easy for me I put this little thing together:
hope it helps:
<a href="http://validator.w3.org/check?uri=<?php
$main = $_SERVER["SERVER_NAME"];
$path = $_SERVER["REQUEST_URI"];
echo "http://" . $main . $path;
?>">
<img src=" [image location here] " alt="Valid XHTML 1.1"/>
</a>