osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

clear_cache();

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-12-2003, 10:45 AM
New Member
 
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Skidude
Default clear_cache();

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 09-12-2003, 04:59 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,990
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

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


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-24-2004, 08:45 AM
Lurker
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
truedeals
Default

Quote:
Originally Posted by msasek
delete the extra blank lines after the closing php tag here:

/home/ripitups/public_html/Dealer/includes/languages/english.php:324
Hi,

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 05:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax