Running php file

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Running php file

Postby philmetz » 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:
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?
philmetz
 
Posts: 2
Joined: 04. January 2010 08:39

Re: Running php file

Postby Izzy » 04. January 2010 09:03

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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Running php file

Postby philmetz » 04. January 2010 09:59

Ah right working now, some reason didnt work before i tried that. anyway thanks
philmetz
 
Posts: 2
Joined: 04. January 2010 08:39


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 177 guests