Posted by Jim Carlock on 11/16/05 06:29
"Jerry Stuckle" <jstucklex@attglobal.net> posted:
> As for the newline - you add it with \n. But HTML
> parsing will ignore newline characters (you can still
> see them if you view the source). Here you need to
> use an HTML <br>.
>
> And at least TRY to find the answer before asking
> questions!
Okay. :-)
The doctype.php file:
<?php
$sDocType='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n';
?>
The index.php file:
<?php
require ("doctype.php");
$sDoc=$sDocType.'<html>\r\n<head>\r\n';
$sDoc.='<title>Test.php</title>\r\n';
$sDoc.='</head>\r\n';
$sDoc.='<body>\r\n';
$sDoc.='<p align="center">hello world</p>\r\n';
$sDoc.='</body>\r\n';
$sDoc.='</html>\r\n';
echo ($sDoc);
?>
The html results:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n<html>\r\n<head>\r\n<title>Test.php</title>\r\n</head>\r\n<body>\r\n<p
align="center">hello world</p>\r\n</body>\r\n</html>\r\n
The html did not ignore the newline characters. The PHP
script ignored \n and \r. The newsreader broke up the
lines in this post because I can't set it greater than 128
characters. <shrug>
Parsing through
"custom 404" site:apache.org
returns some hits.
Another customized search...
"custom 404" group:alt.apache.configuration
at http://groups.google.com/ returns some links.
Nothing definitive yet... I'll keep looking. :-)
--
Jim Carlock
Post replies to the newsgroup, thanks.
[Back to original message]
|