Php In Xhtml?

Discussion in 'Gaming' started by K.Peezie.exe, Nov 29, 2008.

  1. K.Peezie.exe

    K.Peezie.exe Well-Known Member

    Age:
    37
    Posts:
    256
    Likes Received:
    0
    Joined:
    Sep 22, 2006
    Location:
    Portland, OR
    Ok I recently have finished my website design and now Im on to the coding process. It is fully coded into XHTML, but I want to include external files in my web-pages like a menu file or some other such content that is the same on every page but needs editing from time to time. I want to be able to just edit the one file which will make my job alot easier than having to code every single page for just small changes. Makes sense right?

    With that said, I went to google and typed in "Converting HTML to PHP" which basically and briefly informed me about some PHP include or require functions, and that all I needed to do was change my .html extentions to .php in order to have an official PHP site. I changed them.

    Then, I made the include file called "tips.php" that I want to appear on all of my pages and saved it in a folder named "includes' which looks exactly like this:

    Code:
    <div id="tips">
                
      <ul class="list">
        <li class="goldlist">[url=""]How to get that Robotic Voice Effect[/url] 
        <li class="goldlist">[url=""]Making a Remix [/url]
        <li class="goldlist">[url=""]Creating the ol' school Pac Man bass[/url]
        <li class="goldlist">[url=""]Earn Money with Your Site[/url]
        <li class="goldlist">[url=""]Optimize your Traffic[/url]
      [/list]
    
    </div>

    And then I tried to use the include function inside of my "index.php" document like this:

    Code:
    <td width="237" height="93" background="images/blaqhouze_21.gif" valign="top">
    <?php
    include ('includes/tips.php');
    ?>
    </td>
    And here's what this code looked like BEFORE I inserted the include:

    Code:
    <td width="237" height="93" background="images/blaqhouze_21.gif" valign="top">
    <div id="tips">
    
                
      <ul class="list">
        <li class="goldlist">[url=""]How to get that Robotic Voice Effect[/url] 
        <li class="goldlist">[url=""]Making an official Remix [/url]
        <li class="goldlist">[url=""]Creating the ol' school Pac Man bass[/url]
        <li class="goldlist">[url=""]Earn Money with Your Site[/url]
        <li class="goldlist">[url=""]Optimize your Traffic[/url]
      [/list]
    
    
    </div>
    </td>
    With all this said and done, I cant see the "tips.php" data at all. I even tried to put my whole site in my stand-alone Mambo server directory. Still nothing the space is completely blank, no links. Can someone who knows PHP help me or guide me in the right direction to getting this done the right way?


    10 credits and a +1 rep is up for grabs!

    ----------------------------------------------

    FOUND IT!!! PROBLEM SOLVED!!!
     
  2. K.Peezie.exe

    K.Peezie.exe Well-Known Member

    Age:
    37
    Posts:
    256
    Likes Received:
    0
    Joined:
    Sep 22, 2006
    Location:
    Portland, OR
    bump!
     
  3. .//XeN-

    .//XeN- Well-Known Member

    Age:
    35
    Posts:
    1,387
    Likes Received:
    0
    Joined:
    Sep 18, 2005
    ...

    If you're going to bump a topic at least wait over 24 hours to do it. I'd advise 48-72 actually, but I'll still hate you no matter how long you leave to bump it.
     
  4. K.Peezie.exe

    K.Peezie.exe Well-Known Member

    Age:
    37
    Posts:
    256
    Likes Received:
    0
    Joined:
    Sep 22, 2006
    Location:
    Portland, OR
    and your point is... <_<
     
  5. .//XeN-

    .//XeN- Well-Known Member

    Age:
    35
    Posts:
    1,387
    Likes Received:
    0
    Joined:
    Sep 18, 2005
    my point is dont bump a topic that no-one gives a ---- about, especially not in the same day.
     
  6. K.Peezie.exe

    K.Peezie.exe Well-Known Member

    Age:
    37
    Posts:
    256
    Likes Received:
    0
    Joined:
    Sep 22, 2006
    Location:
    Portland, OR
    Well I dont give a sh*t who cares, all I need is a lil info. Obviously u give a sh*t about it, u looked here and posted. Get a life, don't you have better things to do than worry about who bumps a topic.

    Idiot... <_<
     
  7. .//XeN-

    .//XeN- Well-Known Member

    Age:
    35
    Posts:
    1,387
    Likes Received:
    0
    Joined:
    Sep 18, 2005
    oh wow a revenge rep, well done.
     

Share This Page