Hello everyone,

I am trying to convert a php application into an hta application on windows so that I can take advantage of hta's abilities to control the browser window. Problem is when I change the file extension to ".hta", php does not preprocess anymore. I added an additional extension to the web server called ".hta" and pointed it at the php cgi but then the hta functionality does not work.

Any thoughts ?

Thanks

    Please excuse my ignorance, but what is hta?

    PHPdev

      hta is a microsoft thing called (html application). When you end the file name with an .hta extension, the IIS server let's you include code in your files that can be used to control the browser window and also relaxes security in ie. It allows the code to be treated as a trusted application. I am just trying to see if I can get it to run along with php somehow. Currently I use the windows scripting host to control the browser window but I would like to experiment with the other things hta has to offer.

      I'm not surprised you have not heard of it, being a microsoft product and all 😉 , but we run iis at work so that is how I learned about it. If you are interested, just google on hta applications and look for links from msdn

      Brian

        So is hta, a server side language, or client side. To me it would seem that inorder to controll the browser it has to be client side. But the way you talk about it, it could use headers or something to send out to the client.

        One way you have and the ohter way you dont....

        PHPdev

          I don't really think of it as a language at all. More like a plug-in (it requires a mime type to be registered; .hta hta application). I don't want to get into too much of an explanation of it because I have not even played with it that much. Basically it is worthless to me if I can't get it to work with php. It does have some interesting functionality that could be useful.

            what sort of functionality, can this be done with javascript, since javascript is the powerhorse of browser windows

              Write a Reply...