Hello World in PhP
Example
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
3 ways to use PhP code in your php file
<?
echo 'hello world 1<br>';
?>
<script language="php">
echo 'hello world 2<br>';
</script>
<%
echo 'hello world 3<br>';
%>
Example 2
<?php
echo '<html>
<head>
<title>Title of the site</title> '.
'</head>';
echo "<body>hello world<br></body></html>\n";
?>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.