# Controlling My PHP Page

**URL:** <https://forum.kirupa.com/t/controlling-my-php-page/265503>\
**Category:** programming\
**Created:** [July 9, 2008, 5:02pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503 "2008-07-09T17:02:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jamaica\_Valrie](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jamaica\_Valrie](https://forum.kirupa.com/u/Jamaica_Valrie)\
**Post date:** [July 9, 2008, 5:02pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503/1 "2008-07-09T17:02:07Z")

</div>

Good morning guys,

I have a php page and need to include the following, “header.php, footer.php and sidebar.php”.  
The thing is I am having problems, my page is all out of wack when I include these, can anyone assist, I am fairly new to PHP.

Thanks a million

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [July 9, 2008, 5:05pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503/2 "2008-07-09T17:05:04Z")

</div>

What do you mean “out of wack”? It may just be your HTML has gotten messed up.

---

<div class="post-metadata">

**Author:** ![Jamaica\_Valrie](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jamaica\_Valrie](https://forum.kirupa.com/u/Jamaica_Valrie)\
**Post date:** [July 9, 2008, 5:22pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503/3 "2008-07-09T17:22:49Z")

</div>

> [@Esherido;2355791](#):
>
> What do you mean “out of wack”? It may just be your HTML has gotten messed up.

Esherido, what I mean the page is messed up.  
Let me start from the beginning, like I said I am new to PHP… for my page layout I create a table, within that table I create three rows, the top one I place the code \<?php include (“header.php”); ?\> and in the bottom one I place the footer file, I split the middle row in two and place the side bar in the left most portion. In dreamweaver all I am seeing is the header and below my footer there is a large white space.

what did I do wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [July 9, 2008, 5:36pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503/4 "2008-07-09T17:36:42Z")

</div>

Well, those includes only show when you visit the processed page (EG: Start your webserver (Apache) and view the page in your browser.), Dreamweaver does not process PHP, so it will only show a little icon in your layout where the PHP code exists.

A few good resources on [[U]getting starting using PHP[/U] and its [URL=“http://www.kirupa.com/web/phpinclude.htm”][U]includes and requires system[/U]](http://www.kirupa.com/web/apache_php.htm) can be found at [kirupa.com](http://kirupa.com).

---

<div class="post-metadata">

**Author:** ![Jamaica\_Valrie](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jamaica\_Valrie](https://forum.kirupa.com/u/Jamaica_Valrie)\
**Post date:** [July 9, 2008, 6:43pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503/5 "2008-07-09T18:43:51Z")

</div>

[quote=Esherido;2355802]Well, those includes only show when you visit the processed page (EG: Start your webserver (Apache) and view the page in your browser.), Dreamweaver does not process PHP, so it will only show a little icon in your layout where the PHP code exists.

A few good resources on [[U]getting starting using PHP[/U] and its [URL=“http://www.kirupa.com/web/phpinclude.htm”][U]includes and requires system[/U]](http://www.kirupa.com/web/apache_php.htm) can be found at [kirupa.com](http://kirupa.com).[/quote]

Thank you very much for the advice.

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [July 9, 2008, 8:55pm UTC](https://forum.kirupa.com/t/controlling-my-php-page/265503/6 "2008-07-09T20:55:49Z")

</div>

Your welcome, glad I could help! 😃 Best of luck!
