D
dorayme
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
[I have seen odd things like no formatting when looking at source
view on Windows machines. But never on Mac before on my sites)
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
[I have seen odd things like no formatting when looking at source
view on Windows machines. But never on Mac before on my sites)