i'm working on new phonegap
application and the backend of my app written with php
i have a many page in my app and the header
section in all of the page is same,
in the php we using <?php include="header">
to call the header,
is there any way in phonegap
or javascript
to doing like so?
Asked
Active
Viewed 191 times
0
![](../../users/profiles/1897577.webp)
Hamed mayahian
- 2,217
- 6
- 23
- 45
1 Answers
1
No that is not possible, because PHP is a server-sided language. You need to realize your client logic with JavaScript. For implementing multiple html pages with jQuery (a JS library), take a look at this question.
Moreover, you can write a web service with PHP and access it via the ajax
-object in JS.
![](../../users/profiles/-1.webp)
Community
- 1
- 1
![](../../users/profiles/2059919.webp)
Cosmo Jasra
- 223
- 2
- 10