|
Posted by dorayme on 11/19/06 19:48
Was configuring a site of mine to understand an include in the
html <? include "footer.inc"; ?>
In order to get it working I thought I had to add an .htaccess
file to the Unix remote server (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.
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)
--
dorayme
--
dorayme
Navigation:
[Reply to this message]
|