Here is what I use to make a backup library of MySQL daily that will keep backups for 30 days.
Quick example of how to set default expires headers. This will help prevent browsers from re-downloading the same images more than once and therefore reduce the load on your image server.
Some notes and commands I want to keep handy the next time I setup MySQL replication.
Generate thumbs by visiting a URL such as
your.com/thumbs/50x50/images/image.jpg. This will create a 50x50px thumbnail of
The thumb will be stored on your server at
your.com/thumbs/50x50/images/image.jpg so the next request for the same image will be loaded without loading php for ultra fast image cache.
This simple snippet will provide you with a HTTP or HTTPS Fully Qualified Domain Name URL and Base Path to your CakePHP installation. I use it for the HTML base tag.
Multiple slideshows per page are supported.
This php code can be used in a drupal block to display the most popular searches on your site.
If you want to use a view to get the power of pagers but you need it to render in a block then follow this guide.
This code snippet will allow you to only display a block on the node types you select. Simply paste into the PHP options.
This function will download the contents of any URL and return it as a string that you can save to a file or database.
It will use curl if it is installed. Otherwise it will use fopen/fread.
This example module will provide a form where you can enter your name and upon submission will display your name as a message on the following page. It is very basic but will give you a start to making your first module.
This example will show you how to choose which node types use the TinyMCE module.