Comentarios
PHP
Antes de trabajar con PHP tuve la oportunidad de trabajar con JAVA, desarrollando CGI. y en algunas otras oportunidades desarrollando applets, javabeans, y servlets con Tomcat e iPlanet. Despues tuve la necesidad de trabajar con PHP y la verdad es que con PHP puedo hacer todo lo que necesito en mis script. y mucho mas facil. Before of work with PHP, I had opportunity to work with JAVA, I was developing CGI, applets, javabeans, servlets with Tomcat and iPlanet, after that, I had need to work with PHP, and really, that was great, I can do everything I used to do with java but in an easier way.
Ejemplo sencillo de un script en PHP. (con PHP incrustado en HTML) Easy Example script with PHP. (with PHP embed the HTML)
1
2
3
4
5
6
7
8
9
10
11
12
<html>
<head>
<title>HTML and PHP</title>
</head>
<body>
<p>Example the PHP in HTML</p>
<?php
$mi_var = 'Hello world';   // assign the value in the variable
echo $mi_var;
?>
</body>
</html>
Todo con PHP All with PHP
1
2
3
4
5
6
7
8
9
10
11
12
<?php
echo "<html>"; 
echo "<head>";
echo "<title>HTML and PHP</title>";
echo "</head>"; 
echo "<body>";
echo "<p>Example the PHP in HTML</p>";
$mi_var = "Hello world ";   // assign the value in the variable
echo $mi_var;
echo "</body>";
echo "</html>";
?>