Embedding PHP in Web Pages

Author Topic: Embedding PHP in Web Pages  (Read 4310 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • We Helpline
Embedding PHP in Web Pages
« on: 06-07-2016, 05:54:36 »
Although it is possible to write and run standalone PHP programs, most PHP code is embedded in HTML or XML files. This is, after all, why it was created in the first place. Processing such documents involves replacing each chunk of PHP source code with the output it produces when executed.

Because a single file contains PHP and non-PHP source code, we need a way to identify the regions of PHP code to be executed. PHP provides four different ways to do this.

As you’ll see, the first, and preferred, method looks like XML. The second method looks like SGML. The third method is based on ASP tags. The fourth method uses the standard HTML <script> tag; this makes it easy to edit pages with enabled PHP using a regular HTML editor.


Related Topics

  Subject / Started by Replies Last post
1 Replies
Last post 04-30-2021, 00:09:26
by Yuga
0 Replies
Last post 11-15-2011, 01:17:59
by manvbf
off-pages seo

Started by vgkumar « 1 2 3 4 » SEO Basics

34 Replies
Last post 01-29-2014, 03:56:17
by mickyrobert
4 Replies
Last post 04-13-2013, 00:44:01
by GeorgeKappa
0 Replies
Last post 06-17-2015, 15:46:12
by cjrosero