Removing Extra Space

Discussion in 'PHP' started by DNBro, Oct 25, 2015.

  1. #1
    Hi

    While creating mini site using free template, I have converted html page to php by saving it as .php.

    Also called common header/footer files using below function

    <?php include ($_SERVER['DOCUMENT_ROOT'] . "/header.php"); ?>
    <?php include ($_SERVER['DOCUMENT_ROOT'] . "/footer.php"); ?>


    But it created extra space (1-3 line space) below header file and above footer file.

    How I can remove that extra space

    Support appreciated.

    Thanks
     
    DNBro, Oct 25, 2015 IP
  2. alexanderpaul

    alexanderpaul Member

    Messages:
    47
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #2
    Got to see your header.php
     
    alexanderpaul, Oct 25, 2015 IP
    siteslikecraigslist likes this.
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Yeah, without knowing what's in either file, no real way to help you.
     
    deathshadow, Oct 29, 2015 IP