[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Parsing HTML files



> > Can anyone tell me where I can find the code that inserts
> this text into
> the /etc/httpd/conf/vhosts/siteX files?
</snip>

On the RaQ4 its added by: /usr/lib/perl5/site_perl/5.005/Cobalt/Vsite.pm
Then add the lines:

687:
print HTCTMP "AddType application/x-httpd-php .htm\n";
print HTCTMP "AddType application/x-httpd-php .html\n";

Change line 701 to this:
if (/^AddType application\/x-httpd-php\d* .*/) {

(Note the .* instead of .php so that it matches all the new entries)

Many thanks guys - sorry I wasn't that clear before - still getting back to it after the w/e! The intention is for PHP to parse .HTML files as well as .PHP and .PHP3 files. It is to offer server wide functions (editable content) to clients. 

Anyway can't find that file - probably because I forgot to say I am using a 550!? Grepping takes ages and I lose my connection - any pointers to its location?

Many thanks for all the help (and patience!)

Matty


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.  If you have received this mail in error please notify
the system manager.
 
This footnote also confirms that this email message has been virus
checked.
**********************************************************************