Embedding PHP in Web Pages

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 139
  • Karma: 0
    • No Addiction
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
0 Replies
Last post 10-10-2011, 03:30:24
by manvbf
0 Replies
Last post 11-15-2011, 01:17:59
by manvbf
off-pages seo

Started by vgkumar « 1 2 3 4 » SEO Basics

35 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