Headers issue

Hello,

I would like to embed the php generates the album (index.php) into one of my pre existing files. When I do this, I get these errors -
Warning: Cannot modify header information - headers already sent by (output started at.....

Any simple way to overcome this?

Thanks

Comments

  • acrylian Administrator, Developer
    I assume you read this and the loads of forum threads about it?: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin
  • Thank you for that!
  • acrylian,

    Sorry to bother you again but I still have an issue with headers. I have not touched PHP in a long time so perhaps this is just beyond my understanding. The headers issue is still a problem.

    If I put that first cut of code
    <?
    define('ZENFOLDER', 'zp-core');
    define('WEBPATH', 'gallery');
    require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
    ?>

    into an existing page I still get Cannot modify header information - headers already sent by (output started
  • Normally you woujld start a PHP sequence with `<?php ...` not `<?...`
Sign In or Register to comment.