|
Sunday, 12 July 2009
|
HTML clipboard
To write PHP code inside an html page, we have several alternatives:
Include the code between <? ?>
Include the code between <?PHP ?>
Include the code block <SCRIPT LANGUAGE="php"> and </SCRIPT>
The result of the standard output of this code is written in the same
location of the html page.
Example:
<HTML>
<BODY>
<? PHP
echo ( "Hello world! <BR>);
>
</ BODY>
</ HTML>
Previous page, if saved as ejemplo.phtml and loaded with the browser, as a
result produces an HTML page with the text "Hello World." Needless to say, to
work, you need a web server with PHP support and involve the interpretation of
the PHP extension phtml
In the web of Bulma have information on how to install this, including the
source code of the web, data from the database and scripts for installing the
web bulma on any computer.
In subsequent examples, obviously marks <? PHP .. > HTML, BODY
|