You are here: Re: Ooeee! What caused source to lose formatting? « HTML « IT news, forums, messages
Re: Ooeee! What caused source to lose formatting?

Posted by Leonard Blaisdell on 11/20/06 01:40

In article
<doraymeRidThis-F6D497.14190819112006@news-vip.optusnet.com.au>,
dorayme <doraymeRidThis@optusnet.com.au> wrote:

> Was configuring a site of mine to understand an include in the
> html
>
> <? include "footer.inc"; ?>
>
>
> Instead of the repeated footer div at the bottom of each page, I
> got it to include the text from the one file in a folder called
> "includes" in which was footer.inc, the div text.
>
> In order to get it working I thought I had to add an .htaccess
> file (as I have done elsewhere successfully) with the text:
>
> AddType application/x-httpd-php .html
>
> php_value include_path /home/domainName/public_html/includes
>
> But there was already an .htaccess file on the server. So what to
> do? I added my spiel above to the end of it and loaded it back
> up. And yes, the footers all started working.
>
> Fine... in a way... but something has happened to the source
> view, it no longer appears formatted in the sense of line breaks,
> it is all strung together as on one line.
>
> Of course, I have my own html files that remain nicely readable.
> But wondering if there is anything anyone can see in the addition
> I did to the .htaccess that could cause this?
>
> Before, the .htaccess said (and this was just there, I did not
> put it there):
>
> # -FrontPage-
>
> IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
>
> <Limit GET POST>
> order deny,allow
> deny from all
> allow from all
> </Limit>
> <Limit PUT DELETE>
> order deny,allow
> deny from all
> </Limit>
> AuthName www.domainName.com.au
> AuthUserFile /home/domainName/public_html/_vti_pvt/service.pwd
> AuthGroupFile /home/domainName/public_html/_vti_pvt/service.grp
>
> and I added (after a couple of line breaks, is this latter
> significant?):
>
> AddType application/x-httpd-php .html
>
> php_value include_path /home/domainName/public_html/includes

Here goes nothing. How did you save the file on the server? I'm just
sure the root of this has to do with Mac/PC/Unix line endings.
But then, I could be wrong.

leo

--
<http://web0.greatbasin.net/~leo/>

 

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

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