File Caching is powerful and is useful for files on web server that do not change. Images, pdf files and other static content can be cached, thus reducing the network traffic between the server and the client.
In this tutorial you'll learn how to do file caching using Apache .htaccess file.
There is a great tool: http://www.webpagetest.org/test that you can use to measure your performance. It would suggest your first load time and repeat time view as well along with suggestions.
In PHP, we have a nice open source library for PDF file generation, FPDF. This library has an extention FPDI that allows for manipulating PDF files. FPDI extracts the content of the pdf, allows you to change it and then output the changed pdf.
Download and unzip FPDF package and include it in your php script. The following code gives an example on how to create your first pdf file named myfile.pdf:
Browser v/s Server – Optimizing Site Using GZIP Compression
In the online world if ever a browser and server interacted in a chat environment, this is what would definitely come up:
This cheatsheet is a quick reference for using SVN,
To store projects in Subversion/SVN, first you must create a repository.
svnadmin create /svnrepos
svn import -m "import project" /home/xxxx/public_html file:///svnrepos/<project name>
svnserve
svnserve -d
Drupal cron getting stucked is quite a common problem with Drupal 6 and I found out an interesting way to figure out the reason why it is getting stuck.
As always, the solution is to log at the correct place. Drupal cron is invoked at includes/common.inc in the function drupal_cron_run (around line 2727), so we begin here logging into watchdog. We have to start logging when the cron starts for a particular module and when it finishes as follows: