# Php include problem

**URL:** <https://forum.kirupa.com/t/php-include-problem/12136>\
**Category:** Uncategorized\
**Created:** [January 27, 2003, 3:00pm UTC](https://forum.kirupa.com/t/php-include-problem/12136 "2003-01-27T15:00:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joso](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@joso](https://forum.kirupa.com/u/joso)\
**Post date:** [January 27, 2003, 3:00pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/1 "2003-01-27T15:00:05Z")

</div>

hi,

i’ve got a site using php inlculde just for a column on the left side of the page that i wanna add affiliate buttons to. Problem is when i add a button to it the button won’t show, its just an outline with a red ‘x’ in the top left corner. I know all the paths are correct but it wont work…

anyone know whats up with it?

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 3:03pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/2 "2003-01-27T15:03:01Z")

</div>

do you have a url to it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 3:04pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/3 "2003-01-27T15:04:10Z")

</div>

[http://www.atreyuonline.cjb.net](http://www.atreyuonline.cjb.net) under where it says ‘Affiliates’

the url should be .com but everything is going wrong…i mean EVERYTHING :\*(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 3:09pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/4 "2003-01-27T15:09:19Z")

</div>

well right around your javascript include file there is another part where you do head and meta tags again. Take those out. thats probly what is causing the problem.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 3:42pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/5 "2003-01-27T15:42:49Z")

</div>

sorry…:\*( im a total retard when it comes to stuff like this, i’ve attached the files, couldnt have a look at it could you???

it’ll look abit crap cause i didn’t include the CSS sheets in the .zip just the 1’s you need. 🙂

thanks…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 4:02pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/6 "2003-01-27T16:02:46Z")

</div>

I can’t right now. I have class until 6. Someone may be able to help between now and then. For now, go to your site and view the source, you will see that you have two sets of “head” and “meta” and “body” tags. i’m sure its because of the include…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 4:14pm UTC](https://forum.kirupa.com/t/php-include-problem/12136/7 "2003-01-27T16:14:07Z")

</div>

your include file should look like this:

```php

<?
print "<TABLE width=\"100\" height=\"33\" border=0 align=\"left\" cellPadding=0 cellSpacing=0>
      <TR> 
      <TD height=\"33\" align=\"left\" valign=\"top\"> <table width=\"90\" border=\"0\" cellspacing=\"0\">
          <tr> 
            <td width=\"88\" height=\"33\" align=\"left\" valign=\"top\"><p><font color=\"#000000\" size=\"1\" face=\"Tahoma\"><a href=\"http://36cf.digital-noise.net/\" target=\"_blank\"><img src=\"36crazyfists.jpg\" width=\"88\" height=\"31\" border=\"0\"></a></font></p></td>
          </tr>
          <tr> 
            <td height=\"33\" align=\"left\" valign=\"top\"><a href=\"http://www.hopesfall.vze.com/\" target=\"_blank\"><img src=\"hopefall_btn.jpg\" width=\"88\" height=\"31\" border=\"0\"></a></td>
          </tr>
        </table></TD>
    </TR>
</TABLE>";
?>

```
