1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Calendar Express 2 In a Div - php include problems

Discussion in 'HTML, Graphics & Programming' started by ArmoVanBuuren, 3 Feb 2006.

  1. ArmoVanBuuren

    Hitman

    Joined: 19 Mar 2005

    Posts: 569

    Hi there I have recently brought Calendar Express 2 my calendar with test data currently looks like this what i want to do is include it in a my layout like this website who are currently using the same calendar scripts and the calendar is integrated. I have split my layout into seperate php files footer.php and header.php. Then in my caledar header page i have, which is addressed: calendar/templates/defaultblue/overallheader.tpl.php

    Code:
    <?php include '../../../library/header1.php'?>
    
    which is everything on my current layout at the top including the opening of article div where i want to put the calendar inside.

    Then in the footer page i have which is addressed: calendar/templates/defaultblue/overallheader.tpl.php

    Code:
    <?php include '../../../library/footer.php'?>
    
    which is everything downwards including my closing div for article.

    I just keep getting these errors in the header.

    Code:
    [b]Warning[/b]: main(): open_basedir restriction in effect. File(../../../library/header1.php) is not within the allowed path(s): (/home/toonight:/usr/lib/php:/usr/local/lib/php:/tmp) in [b]/home/toonight/public_html/calendar/templates/defaultblue/overallheader.tpl.php[/b] on line [b]55[/b]
    
    [b]Warning[/b]:  main(../../../library/header1.php): failed to open stream: Operation not permitted in [b]/home/toonight/public_html/calendar/templates/defaultblue/overallheader.tpl.php[/b] on line [b]55[/b]
    
    [b]Warning[/b]: main(): open_basedir restriction in effect. File(../../../library/header1.php) is not within the allowed path(s): (/home/toonight:/usr/lib/php:/usr/local/lib/php:/tmp) in [b]/home/toonight/public_html/calendar/templates/defaultblue/overallheader.tpl.php[/b] on line [b]55[/b]
    
    [b]Warning[/b]:  main(../../../library/header1.php): failed to open stream: Operation not permitted in [b]/home/toonight/public_html/calendar/templates/defaultblue/overallheader.tpl.php[/b] on line [b]55[/b]
    
    [b]Warning[/b]:  main(): Failed opening '../../../library/header1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [b]/home/toonight/public_html/calendar/templates/defaultblue/overallheader.tpl.php[/b] on line [b]55[/b]
    
    And these for footer

    Code:
    [b]Warning[/b]: main(): open_basedir restriction in effect. File(../../../library/footer.php) is not within the allowed path(s): (/home/toonight:/usr/lib/php:/usr/local/lib/php:/tmp) in [b]/home/toonight/public_html/calendar/templates/defaultblue/pagefooter.tpl.php[/b] on line [b]9[/b]
    
    [b]Warning[/b]:  main(../../../library/footer.php): failed to open stream: Operation not permitted in [b]/home/toonight/public_html/calendar/templates/defaultblue/pagefooter.tpl.php[/b] on line [b]9[/b]
    
    [b]Warning[/b]: main(): open_basedir restriction in effect. File(../../../library/footer.php) is not within the allowed path(s): (/home/toonight:/usr/lib/php:/usr/local/lib/php:/tmp) in [b]/home/toonight/public_html/calendar/templates/defaultblue/pagefooter.tpl.php[/b] on line [b]9[/b]
    
    [b]Warning[/b]:  main(../../../library/footer.php): failed to open stream: Operation not permitted in [b]/home/toonight/public_html/calendar/templates/defaultblue/pagefooter.tpl.php[/b] on line [b]9[/b]
    
    [b]Warning[/b]:  main(): Failed opening '../../../library/footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [b]/home/toonight/public_html/calendar/templates/defaultblue/pagefooter.tpl.php[/b] on line [b]9[/b]
     	
    Please would some kind person please help me to fix this so i can get the calendar integrated into my layout.

    Thanks in advance
    Leon