PHP Classes

HTML Error

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  HTML Error  >  (Un) Subscribe thread alerts  
Subject:HTML Error
Summary:test_http.php
Messages:3
Author:Karl Masche
Date:2008-05-13 20:04:23
Update:2008-06-19 08:49:11
 

  1. HTML Error   Reply   Report abuse  
Picture of Karl Masche Karl Masche - 2008-05-13 20:04:23
Hi,
I found some html error's in your script:

echo "<H2><LI>Response body:</LI</H2>\n<PRE>\n";

does it should be:
echo "<h2><li>Response body:</li></h2>\n<pre>\n";

I found some of these lines.

At the xhtml standard the tags should be small letters,
do you have a class to change the big letters to small
letters.

  2. Re: HTML Error   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-05-13 21:48:28 - In reply to message 1 from Karl Masche
This script does not generate a DOCTYPE header, so there is no requirement to be XHTML compliant.

Anyway, this is a just a script to demonstrate the HTTP class. The actual HTML output of the class results is not really relevant.

  3. Re: HTML Error   Reply   Report abuse  
Picture of Karl Masche Karl Masche - 2008-06-19 08:49:11 - In reply to message 1 from Karl Masche

But you like that this classes used in other projects:
"Applications that use this class:"

I think its easy done when I won't have to change the code to xhtml standard when I use this class. This is not only for this class
all classes on phpclasses.org could be involved easily and all
coders could use this class in xhtml. If the classes are written
in xhtml mostly they could take the classes in html 4.01 and
html 3.2 or any other former doctype of their website.

If anyone change their class to xhtml then only a few people
take a few minutes, if not all user have to change it by their own
and this take hours or day's together where they could build
new classes.