Problem with file inclusion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shara
    New Member
    • Dec 2006
    • 28

    Problem with file inclusion

    Hello,

    I have two scripts namely globalvars.php and full_report_exp orting.php on my server.I need the globalvars.php to be included in the full_report_exp orting.php and i did the same.This full_report_exp orting .php is intended to display an excelsheet which it is doing perfectly without the inclusion of globalvars.php. But after inclusion,it is just giving an irregular display.The globalvars.php contains a list of array variables that are declared and defined inside it.However,if i just paste the contents of globalvars.php in full_report_exp orting.php,it is giving me the intended display.I dont know where i am going wrong .could someone help me out on this issue.The following are the starting few lines of full_report_exp orting.php:




    <?php
    ob_start();
    session_registe r("SESSION");

    require_once("W orksheet.php");
    require_once("W orkbook.php");
    require("../include/smcconf.php");
    require("../include/smclib.php");
    require("../include/globalvars.php" );


    By the way its not working properly if i am including another file instead of globalvars.php also.

    Thanks,
    Shara.
Working...