PHP Caching Method - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-23-2010, 12:32 PM   #1 (permalink)
Junior Member
 
Join Date: Jan 2010
Posts: 4
Default PHP Caching Method

Hi guys,

I need to seek some advice from you in regards to the following questions:-

1) I found out there are many ways to cache a website content to make the website load faster. But I'm not sure which method is better than the others like for example HTTP Cookie and Server Caching. If a website like mine that uses MYSQL database and retrieve a lot of data to display on user's end, what caching solution is the best?

2) There are many PHP scripts available from the open source community and retail market. Some spec out the requirements and specifications in very details but unfortunately some don't. How can I be sure the script can support a big traffic site? Often I heard many scripts are written for website with small traffic in mind and they will start to behave strangely if the traffic started to grow.

Please do share your ideas and comments. Thank you.

Cheers,
junkeeper is offline   Reply With Quote
Sponsored Links
Old 06-29-2010, 08:43 AM   #2 (permalink)
Junior Member
 
Join Date: Jun 2010
Posts: 20
Default Re: PHP Caching Method

The HTTP header is sent before you send any HTML to the client.

Thus, if you have a single space in your code... anything at all before you call a function that makes use of the HTTP header (i.e. the "session" call).... it will fail, as the header has already been sent.

For this, you need to make sure your document starts with <?php , without any data before it... then immediately call the "session" function, or whatever resource you are using that makes use of the HTTP header.
alstonwillman is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 01:15 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting