Haifa linux club:PHP lecture
Prev Next


Hello, PHP !


simple output : ("CGI Style")
<? echo "<html>\n<head>\n</head>\n<body>\nHello world!<br>\n</body>\n</html>"?>

simple output 2 : (embeded style)
<html>
<head></head>
<body>
<?= "Hello world!" ?><br>
</body>

More ways of Escaping from HTML :
PHP3 style:
<?php
echo "Hello world!"
?>

the "<script>" tag:
<script language="php"> 
echo "Hello world!";
</script>
ASP style ():
<% echo "hello world"; %>




HOME