Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 17982  / 3 Years ago, thu, october 7, 2021, 10:53:12

I want to download a website that uses php to generate its pages. If I use



wget --convert-links --mirror --trust-server-names the_website.com


the php files are downloaded as php files. When I open the webpage locally, FF gives me a popup box asking whether I want to open the php file of a page with gedit.



Is there any way to download a full web page as plain html so that I can access them in a browser locally?


More From » downloads

 Answers
0

Alternatively, you can force wget to rename every extension to HTML on download with the --adjust-extension/-E flag:



wget --convert-links --mirror --trust-server-names --adjust-extension the_website.com

[#29071] Thursday, October 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
lowstonnequ questions
Wed, Oct 26, 22, 14:40, 2 Years ago
Tue, Feb 28, 23, 01:39, 1 Year ago
Wed, Dec 1, 21, 23:44, 2 Years ago
Thu, Apr 21, 22, 13:13, 2 Years ago
;