0

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?

Hamed mayahian
  • 2,217
  • 6
  • 23
  • 45

1 Answers1

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.

Community
  • 1
  • 1
Cosmo Jasra
  • 223
  • 2
  • 10