I'm trying to build an Adobe Air app which runs from a PHP file.
Currently I have an
index.html file which then performs a
location.href to move to
realfile.php - this gets round the limitation that a root file has to be
My problem is that the
window.print to the Air version which works fine in
I read around a bit more and now know that Air will only run in a HTML page. Although there is no explanation that I could find that explains why this is...
How I think I can fix this:
My current idea is to add a
RewriteRule in my htaccess to make PHP files accessible via a
.html file extension. This should trick Air into thinking it's a HTML document, whilst the server is still able to process the PHP that is on the page.
When I get around to it, I'm more than happy to re-write the app to make it fully AJAX driven, which is what everyone else seems to be doing.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki