This is a discussion on clear_cache(); within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I am using a modified login page. if i login and go back and try to login again i get ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I am using a modified login page. if i login and go back and try to login again i get a error Warning: Cannot modify header information - headers already sent by (output started at /home/ripitups/public_html/Dealer/includes/languages/english.php:324) in /home/ripitups/public_html/Dealer/loginDealer.php on line 43 Warning: Cannot modify header information - headers already sent by (output started at /home/ripitups/public_html/Dealer/includes/languages/english.php:324) in /home/ripitups/public_html/Dealer/includes/functions/general.php on line 23 i think i have to clear cache any help on the code or how? |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| delete the extra blank lines after the closing php tag here: /home/ripitups/public_html/Dealer/includes/languages/english.php:324
__________________ Michael Sasek osCMax Developer
|
|
#3
| |||
| |||
| Quote:
I know this is a little late, but I just saw this post. I have a short snippet of php code that may be helpful to you. It goes to your cache directory and deletes all the files stored there. I do this automatically everytime I update my products (nearly 400,000 products updated every day). function purge($dir) { $handle = opendir($dir); while (false !== ($file = readdir($handle))) { if($file != "." && $file != "..") { if(is_dir($dir.$file)) { purge($dir.$file."/"); rmdir($dir.$file); } else { unlink($dir.$file); } } } closedir($handle); } purge("../catalog/tmp/"); // clear cache set this to the relative path of your cache directory Bill G. |
| Sponsored Links | ||
| ||
| |