Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Problem in General.PHP


jay_drive

Recommended Posts

Yes, it's another of 'those' white space messes everything up problems ??

 

 

Okay, first, the error message

"Warning: Cannot modify header information - headers already sent by (output started at /home/nipj/public_html/shop/includes/application_top.php:480) in /home/nipj/public_html/shop/includes/functions/general.php on line 29"

 

and then i can't find what's wrong with the file general.php

 

 

////

// 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

     }

   }

 

   header('Location: ' . $url);       *** I think it's this line

 

   tep_exit();

 }

 

Can anyone see what's wrong?

the whole file is here

http://www.sky-hook.net/osc-help/general.txt

 

It's driving me mad trying to find the problem!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...