Cannot Modify Headers

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 24, 2010   (RSS)

Re: [GB39CA] Cannot Modify Headers

By Jason - March 24, 2010

Hi,

Try taking this part of the code:

<?php

require_once "/home/k7mmg8tt/public_html/cmsAdmin/lib/viewer_functions.php";

list($gallery_underfloor_heatingRecords, $gallery_underfloor_heatingMetaData) = getRecords(array(
'tableName' => 'gallery_underfloor_heating',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$gallery_underfloor_heatingRecord = @$gallery_underfloor_heatingRecords[0]; // get first record

// show error message if no matching record is found
if (!$gallery_underfloor_heatingRecord) {
header("HTTP/1.0 404 Not Found");
print "Record not found!";
exit;
}
?>
[/#000000]
and paste it at the very top of the page. Make sure there are no blank spaces before it.

Hope that helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [GB39CA] Cannot Modify Headers

By Active1965 - March 24, 2010

[:)]Thanks Jason - That worked