Skip to content
⌘ NSIS Forum Archive

Save html page

11 posts

oldfriend#

Save html page

Hello.

Wonder if there any way to save HTML page which comes as a result of executing of PHP script? I know there are a few ways to display this result using ShellExecute or nsWeb plug-in. But I need to save result html page and than parse it.

Thanks.
Anders#
It you control the server it is much less work if you just return a .ini file or something like that.
oldfriend#
Originally Posted by Anders View Post
It you control the server it is much less work if you just return a .ini file or something like that.
Thank you, this probably would be the best and easiest way. But what if anyway I don't control server and can display result of executing php in the nsWeb windows or in bowser only?
Anders#
Use INetC to download the page to $pluginsdir. Maybe one of the XML plugins are able to open html files...
oldfriend#
Originally Posted by Anders View Post
Use INetC to download the page to $pluginsdir. Maybe one of the XML plugins are able to open html files...
Unfortunately, php script need to be execute first and for this purpose browser is needed. Installer is not recognized as browser 🙁
Yathosho#
Originally Posted by oldfriend View Post
Unfortunately, php script need to be execute first and for this purpose browser is needed. Installer is not recognized as browser 🙁
PHP is executed on the server. Did you even try using InetC? When you download a page, it will already be served as HTML.
oldfriend#
Originally Posted by Yathosho View Post
PHP is executed on the server. Did you even try using InetC? When you download a page, it will already be served as HTML.
Sure 🙂 Exactly with using inetc I get message like this

This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support 
Yathosho#
Let's pretend for a second that I understand the need to execute JavaScript inside an installer (other than annoying ads).

A couple of questions for you:

1. Did you download the required script (relative paths?)

2. Does IWebBrowser2 even support JavaScript execution?

3. Does your script run on IE7 or whatever ancient version the browser control is based on?
oldfriend#
Originally Posted by Yathosho View Post
Let's pretend for a second that I understand the need to execute JavaScript inside an installer (other than annoying ads).

A couple of questions for you:

1. Did you download the required script (relative paths?)

2. Does IWebBrowser2 even support JavaScript execution?

3. Does your script run on IE7 or whatever ancient version the browser control is based on?
You can kill me but inetc::get really works! My respect!
Anders#
INetC is not a browser, it does not run javascript or anything like that, it just uses WinInet to download files over http/ftp...