Guest Posted July 7, 2003 Share Posted July 7, 2003 Hi, I'm just working on Templates for the catalog. But I get the following error: Warning: Cannot modify header information - headers already sent by (output started at C:wampp2htdocscatalogincludestemplate.php(111) : eval()'d code:190) in C:wampp2htdocscatalogincludesfunctionsgeneral.php on line 56 That's happening because of the following function: // Redirect to another page or site function tep_redirect($url) { if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } $url = preg_replace('#^/?(.*?)/?$#', '/1', trim($url)); header('Location:' . $url); tep_exit(); } Could anybody help me with this. please? Thx a lot, Milchbazi Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.