php in a packaged app?

18 views
Skip to first unread message

17Seconds

unread,
Mar 9, 2012, 8:36:03 PM3/9/12
to Chromium-extensions
I'm in the VERY early stages of developing a packaged app for a
project and am having issues with PHP files loading within the app.
Rather than executing the files (example.php) it wants to download
them instead. Switching to HTML works fine but all my code is in php
so I'd rather not rewrite if possible.

Does php work in packaged apps?

I'd go with 'hosted' but I need offline access available for the
entire app.

Thanks for any help!

Mohamed Mansour

unread,
Mar 11, 2012, 4:47:53 AM3/11/12
to 17Seconds, Chromium-extensions
Hello,

Extensions are simply web pages. So the simple answer would be no, you cannot use PHP, and you would need to host your PHP externally. You can still do offline access by caching it with local storage, manifest cache etc.

If you *really* want to use PHP in a packaged extension, then you have to find a way to bundle the PHP Interpreter in NPAPI. I don't recommend that.

Thanks,
Mohamed Mansour






--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Reply all
Reply to author
Forward
0 new messages