# Problems with first PHP

**URL:** <https://forum.kirupa.com/t/problems-with-first-php/298206>\
**Category:** programming\
**Created:** [October 15, 2009, 4:26am UTC](https://forum.kirupa.com/t/problems-with-first-php/298206 "2009-10-15T04:26:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinwald](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kinwald](https://forum.kirupa.com/u/kinwald)\
**Post date:** [October 15, 2009, 4:26am UTC](https://forum.kirupa.com/t/problems-with-first-php/298206/1 "2009-10-15T04:26:13Z")

</div>

I am having problems with get php to show up in my browser. I am using xampp. Heres the code:  
\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”  
“[http://www.w3.org/TR/xhtml/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” xml:lang=“en” lang=“en”\>

\<head\>  
\<meta http-equiv=“Content-type” content=“text/html; charset=utf-8” /\>

```
&lt;title&gt;XHTML Template&lt;/title&gt;

```

\</head\>

\<body\>  
\<?php  
phpinfo();  
?\>  
\</body\>  
\</html\>

I have tried to connect with 127.0.0.1 or [http://localhost](http://localhost), and nothing works. going to localhost shows the me XAMPP saying everything is working. I am typing [http://localhost/phpinfo.php](http://localhost/phpinfo.php) in the browser. I am going to look around more to see what I can find but am lost on what to do or check or setup… lol Thanks for anyhelp.

Edit— I did not have files in the htdocs folder so it had no idea were to look.
