Skip to forum content
CutePHP Forums
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
CutePHP Forums
You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
You are wrong FUNimations:
the site loads instant, because you tell the users web-browser that it can use previous downloaded files. Also, the server gets less work to do.
first time an user visits the site, the hole page have to be downloaded as ordinary. But if no changes has happend, next visit will use the browsers cache 
the server need to support php (offcourse) and some library for converting images into thums. I don't remember the name, but most common php-servers support it (i think). If you are hosting those site by your own, i guess you need to install them??
EDIT: I think you need to support "GD2 Lib". But once again: I'm not sure, it might be the wrong name i'm giving you 
I have some questions
1. Does it only have to put on index.php? Not on 'news.php' (which shows my last 25 news posts instead of 12) or 'archive.php'?
2. What does it really do? Doesn't it load the comments.txt or something when you refresh the page?
3. Does it work with al browsers?
1) Put it on every site that you want to load faster (most people only include news in the index.php-file)
2) The script tells the browser to use the old cache of that page.. so the server dosn't have to re-generate that spesific page. But if someone have posted a new article/comments the users ofcourse want to update the page. So it only re-load comments.txt if there have been any changes
3) It works with the most common browsers (browser that can handle cookies), such as Internet Explorer, FireFox, Opera, Netscape... I dont know if it works with non-graphic browsers, such as Lynx..?
even before the <!DOCTYPE - decleration??
yes. thats right!
Where are you finding this code? I mean the block that begins with "$update_file". It's not in addnews.mdu, as far as I can tell.
No, i think BadDog first wrote:
$update_file = fopen("./data/comments.txt", "a+");
flock($update_file, 2);
flock($update_file, 3);
fclose($update_file);
but then Flexer come up with a better idea, so BadDog then edited his first post. So dont care about it, just do whats written in post #1
This hack works great on my own server, but im haveing problems on an other.. Dont know why, guess its a server-related problem
(On the one with problems I have disabled comments, maybe thats why..? )
Posts found: 5