ex1.php
**code inside
<?php
echo "hello world";
?>
I also tried this (ex2.html):
<html>
<head>
<title>A PHP script</title>
</head>
<body>
<b>
<?php
echo "hello world";
?>
</b>
</body>
</html>
thanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you need to run it from a webserver
or on the command line if php is installed in CLI you
Visit this site to see how to install MAMP on your mac and how it works.