Creating Email Templates in PHP
Published on : 07.03.2010
Category : PHP Viewed : 10 times.
The technique is simple
The template text (including variables and html tags) will be stored in database. We will create a table with 2 fields i.e name and text. Each template will be give a unique name. A sample entry is shown in the image below
A PHP script will read template text from the database, update varlues of variables and will send the email
For this tutorial, i haved created a table to store all the templates a webiste needs. See a snapshot of this table below
Every... |
Creating a Basic Template System in PHP
Published on : 07.03.2010
Category : PHP Viewed : 16 times.
After implmenting this template system in your webistes, you will achieve the following benefits
If you have a lot of pages that use the same design. If you want to make a layout change in the header, menu, footer or right section then you don't have to update numerous files. You will have to edit a single php file
You will have less vertical scrolling when typing PHP code as the whole section will be replaced by a single line of php (i.e we will use php include function to include... |
Create a KVM-based virtual server in 3 steps
Published on : 02.03.2010
Category : Linux Viewed : 51 times.
The Linux Kernel-based Virtual Machine (KVM) is free, open source virtualization software for Linux based on the Intel VT-X and AMD-V hardware virtualization extensions and a modified version of QEMU (work is underway to get the required changes upstream). KVM—in the form of kvm.ko, a loadable kernel module that provides the core virtualization infrastructure and processor-specific modules kvm-intel.ko... |
Creating Quality Document Scans
Published on : 02.03.2010
Category : Linux Viewed : 25 times.
While we can all dream about the world of paper being replaced with computers and electronic documents, we all know that is still only a dream. In the course of doing my graduate studies, I have often needed to make copies of articles and books reserved in the library. I've grown accustom to scanning these documents and archiving them with the rest of my course work, and in the process I've learned to make high quality scans, suitable for printing if necessary, and still a ... |
Location-aware search with Apache Lucene and Solr
Published on : 01.03.2010
Category : Linux Viewed : 19 times.
Location, location, location! Just as location is king in real estate, search plus location awareness can yield significant dividends in helping users effectively and efficiently find information. For instance, if you are a business-directory provider (such as a "Yellow Pages" site), when a user searches for a plumber, the site should return results for plumbers near the user's home. If you run a tourism site, you might want to allow travelers to search for places of interest near their... |
Help With Modify Commands
Published on : 27.02.2010
Category : AutoCAD Viewed : 29 times.
Basic Modify Commands Here we'll cover the modify tools, which give us control over simple shapes we have created. As the name suggests - we can modify drawing elements. This is what the modify toolbar looks like (if you don't see it, check the modify box in 'view - toolbars'):
The modify tools (from left to right): Erase, Copy, Mirror,... |
Using Layers
Published on : 27.02.2010
Category : AutoCAD Viewed : 17 times.
Layers Layers are a way of managing, tidying and also controlling the visual layout of a drawing. A whole section of a drawing can be turned on or off, or simply one aspect can be controlled - text for example. This is all done by using layers within Autocad.
The concept of layers is used in other software applications, such as Paintshop... |
Working with Blocks
Published on : 27.02.2010
Category : AutoCAD Viewed : 19 times.
Blocks A block in Autocad is a collection of all of the line and arc entities that create an object, 'moulded' together to make one selectable object. Selecting one particular entity (such as a midpoint of a line for example) will select all objects contained within the block. They can be moved, rotated, mirrored etc and will always be treated... |
The Extend Command
Published on : 27.02.2010
Category : AutoCAD Viewed : 28 times.
Introduction
AutoCAD drawings are rarely completed simply by drawing lines, circles etc. Most likely you will need to Modify these basic drawing objects in some way in order to create the image you need. AutoCAD provides a whole range of modify tools such as Move, Copy, Rotate and Mirror. As you can see, the command names are easily understandable. However, the way these commands work is not always obvious. This tutorial is designed to show you how all of the Modify commands work. If... |
AutoCAD Creating Custom Bitmap Materials Tutorial
Published on : 26.02.2010
Category : AutoCAD Viewed : 25 times.
This tutorial describes how to create custom bitmap based materials in AutoCAD and how to create the bitmap tile from scratch in Photoshop. If you would like to follow this tutorial closely, you can download the Garden drawing used in the examples. See Download Sample Data, below.
In many cases, rendering using object colours or the use of materials from the AutoCAD Material Library is all that's required to produce a semi-realistic render of a scene. However, sometimes you might want ... |