Page 1 of 1

Running php file

PostPosted: 04. January 2010 08:48
by philmetz
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:
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?

Re: Running php file

PostPosted: 04. January 2010 09:03
by Izzy
Try typing http://localhost/hello.php in your browser's address bar after making sure that Apache and MySQL are running using your XAMPP Control Panel.

Re: Running php file

PostPosted: 04. January 2010 09:59
by philmetz
Ah right working now, some reason didnt work before i tried that. anyway thanks