I am trying to start learning php but I can not run the file.
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
This is the basic code and I saved it as test.php
. When I type php -f test.php
it gives me the error "Could not open input file: test.php"
.
Thanks for your time.