Running php file
Posted: 04. January 2010 08:48
I installed XAMPP. Now i created a test php file called hello.php and it is located in C:\xampp\htdocs
The hello.php contains the following:
How do i run that file?
The hello.php contains the following:
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello in PHP</title>
</head>
<body>
<h1>Hello in PHP</h1>
<?php
print "Hello, world!";
phpInfo();
?>
</body>
</html>
How do i run that file?