Results 1 to 2 of 2

Thread: PHP require

  1. #1
    Join Date
    May 2004
    Posts
    4

    Default PHP require

    Hello--

    Newbie question here. I added the following tag in the HEADER.HTML template so that all pages will display a global navigation code.

    <?php require("../sidebar.htm"); ?>

    It doesn't seem to work, and I can't really tell why. My other tags (HTML only) displayed. My relative url for the sidebar.htm file is correct. I even put a separate test.php file just to see if I can display the sidebar from within the directory where INDEXU is installed. I don't get it.

    I tried searching the forum for an few hours... but only find partially related queries.

    Hope this doesn't sound too dumb. Help!


    Alphonso
    Last edited by alphonso; 05-24-2004 at 06:04 PM.

  2. #2
    Join Date
    May 2004
    Posts
    4

    Default

    Figured it out by myself. Apparently, it doesn't work if the php code is in the header.html template. It has to be in a php file. So I added the code to index.php. Now it works.

    Great software.

    Al

Similar Threads

  1. search error: php results
    By hdesign in forum v5.x
    Replies: 0
    Last Post: 04-16-2004, 01:40 PM
  2. PHP include problem
    By manuel_pr in forum v5.x
    Replies: 6
    Last Post: 01-23-2004, 09:23 AM
  3. php or html?
    By esm in forum Pre-Sales Questions
    Replies: 11
    Last Post: 06-11-2003, 04:31 PM
  4. Replies: 1
    Last Post: 06-24-2002, 06:23 PM
  5. Require Admin Approval
    By Hart_House in forum v3.2
    Replies: 0
    Last Post: 06-21-2002, 06:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •