| 
	
 | 
 Posted by J.O. Aho on 11/20/06 21:10 
dorayme wrote: 
> In article <4sd1ofFuj88vU2@mid.individual.net>, 
>  "J.O. Aho" <user@example.net> wrote: 
>  
>> dorayme wrote: 
>>> In article <op.ti9416r5brft5s@kennis.local.lan>, 
>>>  "J.O. Aho" <user@example.net> wrote: 
>>> 
>>>> On Sun, 19 Nov 2006 20:48:43 +0100, dorayme   
>>>> <doraymeRidThis@optusnet.com.au> wrote: 
>>>> 
>>>>> 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 
>>>> This works, but you get the down side that all html files will be checked   
>>>> for php code, which increases the load on the server, far better to rename  
>>>>   
>>>> the page to something ending with .php 
>>>> 
>>>> 
>>> You mean to rename all the pages, they all have footers? 
>> Yes. 
>  
> Some sites I maintain have a lot of pages and changing the names  
> of all the files is the last thing I would do, not the first ;-) 
 
A small shell script fixes both file names and anchor urls, it's not that you  
must to rename files and fix links manually. 
 
http://www.faqs.org/docs/Linux-HOWTO/Bash-Prog-Intro-HOWTO.html#ss12.3 
 
and checking the man page for sed. 
 
 
> No, what I want is everything. I want the source view to look  
> sort of formatted to the extent of not being in one unbroken  
> unreadable line, I want to include footers and nav and repeatable  
> elements, I want nothing to be unduly slowed down, I want all  
> this to be easier than winning the lottery.  
 
Your editor using newline or something else to make a "line break"? 
 
 
  //Aho
 
  
Navigation:
[Reply to this message] 
 |