21 users online (0 members and 21 guests)  


  Results 1 to 1 of 1

Related

  1. Question about asp includes    Forum: Search Engine Optimization - SEO - Forum
    Replies: 7
  2. Includes!    Forum: HTML Forum
    Replies: 3
  3. Server-side Includes    Forum: HTML Forum
    Replies: 2
  4. Need some advice about includes    Forum: Website Scripts Forum
    Replies: 2
  5. PHP includes    Forum: PHP Forum
    Replies: 19
  1. #1
    Variable's Avatar
    New User

    Status
    Offline
    Join Date
    May 2003
    Posts
    10

    quik question reguarding includes

    When i copy paste exactly what is in the includes into the file below - it works as it should. However, when i include the files header.php and footer.php, it generates the following errors. Parse error: parse error in /home/thevaria/public_html/tests/header.php on line 5 test Parse error: parse error in /home/thevaria/public_html/tests/footer.php on line 2


    <?
    $varone = 1;
    if ($varone == 1) {
    ?>
    <!-- just above here is where the header.php file would have ended. -->

    test

    <!-- just below here is where the footer.php file would have began. -->
    <?
    }
    ?>


    The file with the includes looks like this..


    <? include "header.php"; ?>

    test

    <? include "footer.php"; ?>


    Like i said the includes are copied exactly from the code you see at the top, php tags and all. Any help is appreciated thx in advance.

    *EDIT* for the heck of it i also tried include_once() with no luck :/
    Last edited by Variable; 06-12-2004 at 01:41 AM.



Tags for this Thread