HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Saving files with file extension in file name
Author: Andy
Date: 02/25/2011 15:37
 
Yes. Thanks. I understand that the extension needs to remain .html as the
content of the file is outputted html and not server side php code to be
processed. 

And yes, if you add a mime type of php=text/html is does create the file name
with a .php extension however this is not what I am asking.

I am asking whether the file name can include the original extension in the
file name (using the custom defined -N option for example). My unique
situation requires me to know (ideally in the file name) what was the
extension of the original file (e.g. something like SomeFile-php.html could
tell me that the original file was named SomeFile.php even though the final
file is actually a .html file). 

One way to achieve this is to look in the comments in the source of the actual
file (e.g. <!-- Mirrored from www.somesite.com/SomeFile.php by HTTrack Website
Copier/3.x [XR&CO'2010], Fri, 25 Feb 2011 13:39:00 GMT -->) but I was
wondering whether there is a way to include the file extension in the file
name itself?
Thanks.
 
Reply Create subthread


All articles

Subject Author Date
Saving files with file extension in file name

02/25/2011 14:08
Re: Saving files with file extension in file name

02/25/2011 15:18
Re: Saving files with file extension in file name

02/25/2011 15:37




c

Created with FORUM 2.0.11