You are here: Re: Apache Server, PHP, home page « PHP Programming Language « IT news, forums, messages
Re: Apache Server, PHP, home page

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация