Canon's Big-high quality cameras

Big Canon Lake Lodge in Northern Ontario is located in a remote area
 of northwestern Ontario, 25 miles northwest of Vermilion Bay,
accessible only by float plane.

Through the THINK BIG THINK CANON campaign, Canon aims to go beyond
technology and empower entrepreneurs with everything they need to
 take their business.

 Canon is a world leader in imaging products and solutions for the
digital home and office.
http://www.canon.co.uk
Canon Congratulates the Team of Imaging Professionals Who Captured
 the Iconic Moments of the Big Game.



Canon Congratulates the Team of Imaging Professionals Who Captured
 the Iconic Moments of the Big Game.
Features. Big Impact in a Compact Package. Full-featured, compact 8.0 Megapixel
 digital camera with a 12x Optical Zoom PowerShot S5 IS is compact and portable.

Discover the beauty of Canon cinema cameras, view collaborations within movies,
sports, & more. Check out the gallery from Canon Cinema EOS.

What is Ajax Request?

Some PHP programmers would argue that the most important use of JavaScript is to provide
Ajax functionality to your programs. Whether or not you agree, Ajax is certainly a central
part of today’s Internet. Standing for Asynchronous JavaScript and XML, Ajax is really a
misnomer because it often has little to do with XML as it can handle all manner of file types.
However, when Microsoft first introduced the feature in Internet Explorer 5 (back in 1999),
they named the new ActiveX object XMLHttpRequest, and the name has stuck ever since.
This plug-in is the pure JavaScript side of the Ajax equation, which requires two
programs, one on the client computer and one on the server, to interact with each other.

This and the next two plug-ins in this chapter are comprised entirely of JavaScript code,
rather than the amalgam of JavaScript and PHP used by the rest of the plug-ins.
The plug-in is a little more complicated than it ought to be due to the different methods
various browser creators have chosen to implement Ajax. For example, although Microsoft
came up with the XMLHttpRequestobject in Internet Explorer 5, it then decided to use an
entirely different approach for IE6. And then other browser developers chose yet another
away of doing things.

function PIPHP_JS_AjaxRequest()
{
try
{
var request = new XMLHttpRequest()
}
catch(e1)
{
try
{
request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch(e2)
{
try
{
request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch(e3)
{
request = false
}
}
}
return request
}

This means that there are three types of Ajax methods to take into account, according to
which browser is in use. Thankfully, there’s an easy way to apply these in turn without
creating errors, and that’s to use JavaScript’s try… catchsyntax. With it you can try a
command using a trystatement, and if it fails, program execution will continue at the
matching catchstatement. Furthermore, you can nest these inside each other, so you can
place another trystatement inside a catchstatement.
This is exactly the technique employed in this plug-in, except that I choose to test for
non-Microsoft browsers first by assigning the variable requestthe object returned by
calling up a new XMLHttpRequest()object. This will usually succeed on Firefox, Chrome,
Safari, and Opera (as well as other browsers), but will fail on all versions of Internet
Explorer. If this happens, an attempt is then made to assign requestthe value returned
from creating the new ActiveX object Msxml2.XMLHTTPby attempting to use the command
new ActiveXObject()with that argument.

Post Ajax Request

The previous plug-in provides a means of creating an XMLHttpRequestobject, with which
this plug-in makes a POSTrequest to the server to request some data to be transferred back
to the browser. Both of these requests happen seamlessly in the background with the user
generally unaware that such things are taking place. A POSTrequest is where data is sent to
the server within header messages, rather than as part of a URL tail or query string, as is
the case with GETrequests.

function PIPHP_JS_PostAjaxRequest(url, params, target)
{
request = new PIPHP_JS_AjaxRequest()
request.onreadystatechange = function()
{
if (this.readyState == 4)
if (this.status == 200)
if (this.responseText != null)
target.innerHTML = this.responseText
// You can remove these two alerts after debugging
else alert("Ajax error: No data received")
else alert( "Ajax error: " + this.statusText)
}
request.open("POST", url, true)
request.setRequestHeader("Content-type",
"application/x-www-form-urlencoded")
request.setRequestHeader("Content-length",
params.length)
request.setRequestHeader("Connection", "close")
request.send(params)
}
function PIPHP_JS_AjaxRequest()
{
try
{
var request = new XMLHttpRequest()
}
catch(e1)
{
try
{
request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch(e2)
{
try
{
request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch(e3)
{
request = false
}
}
}
return request
}
</script>

Note that the entire Facebook page is being loaded into the <div>, in the same way as if
you had included it within an <iframe>element. This is purely an example of how to
incorporate such a page, and you do not gain access to the Facebook API using this method.
Instead a surfer using such an embedded page to log in will be directed straight to the
Facebook servers for the remainder of the process.
To try this example for yourself, type it in and save it as ajaxpost.html. You can also
download it from the Download link at www.pluginphp.com. After extracting the file plug-ins.
zip, you will find the example in the location 11/ajaxpost.html.
However, don’t run the file until you also have the PHP part of the equation on the server.
It’s not a large program but it’s very important because it’s the part of the process that receives
requests from the browser and responds to them. In this case, it returns a requested web page:
<?php // ajaxpost.php
if (isset($_POST['url'])) echo file_get_contents($_POST['url']);
?>
What this program does is check whether the variable urlhas been posted to it.

How to create a thumbnail-PHP code

To create a thumbnail, you pass the function PIPHP_MakeThumbnail()a GD image object
and the maximum value of the greater dimension for the thumbnail. For example, the
following code loads in the image in test.jpgusing the imagecreatefromjpeg()function,
and then passes it to the plug-in, along with a maximum dimension of 100. The function
then returns the new thumbnail to the string variable $thumb, which is then saved to the file
thumb.jpgusing the imagejpeg()function.

$image = imagecreatefromjpeg("test.jpg");
$thumb = PIPHP_MakeThumbnail($image, 100);
imagejpeg($thumb, "thumb.jpg");
You can also output the thumbnail straight to the browser by first sending the correct
header, like this:
$image = imagecreatefromjpeg("test.jpg");
header("Content-type: image/jpeg");
imagejpeg(PIPHP_MakeThumbnail($image, 100));

The PHP GD library is so powerful that it can perform a variety of image manipulations you
would normally only find in a graphics program. In fact, you could probably build quite an
advanced image editor using them.
<?php
function PIPHP_MakeThumbnail($image, $max)
{
$thumbw = $w = imagesx($image);
$thumbh = $h = imagesy($image);
if ($w > $h && $max < $w)
{
$thumbh = $max / $w * $h;
$thumbw = $max;
}
elseif ($h > $w && $max < $h)
{
$thumbw = $max / $h * $w;
$thumbh = $max;
}
elseif ($max < $w)
{
$thumbw = $thumbh = $max;
}
return PIPHP_ImageResize($image, $thumbw, $thumbh);
}
?>

To perform an Edge Detect transformation on a file called photo.jpg,
you could use the following code, which will load a GD image object using the
imagecreatefromjpeg()function, and save the transformed image with the function
imagejpeg()
<?php
function PIPHP_ImageAlter($image, $effect)
{
switch($effect)
{
case 1: imageconvolution($image, array(array(-1, -1, -1),
array(-1, 16, -1), array(-1, -1, -1)), 8, 0);
break;
case 2: imagefilter($image,
IMG_FILTER_GAUSSIAN_BLUR); break;
case 3: imagefilter($image,
IMG_FILTER_BRIGHTNESS, 20); break;
case 4: imagefilter($image,
IMG_FILTER_BRIGHTNESS, -20); break;
case 5: imagefilter($image,
IMG_FILTER_CONTRAST, -20); break;
case 6: imagefilter($image,
IMG_FILTER_CONTRAST, 20); break;
case 7: imagefilter($image,
IMG_FILTER_GRAYSCALE); break;
case 8: imagefilter($image,
IMG_FILTER_NEGATE); break;
case 9: imagefilter($image,
IMG_FILTER_COLORIZE, 128, 0, 0, 50); break;
C h a p t e r  4 :  I m a g e  H a n d l i n g  71   C h a p t e r  4 :  I m a g e  H a n d l i n g  71
case 10: imagefilter($image,
IMG_FILTER_COLORIZE, 0, 128, 0, 50); break;
case 11: imagefilter($image,
IMG_FILTER_COLORIZE, 0, 0, 128, 50); break;
case 12: imagefilter($image,
IMG_FILTER_EDGEDETECT); break;
case 13: imagefilter($image,
IMG_FILTER_EMBOSS); break;
case 14: imagefilter($image,
IMG_FILTER_MEAN_REMOVAL); break;
}
return $image;
}
?>

PHP Functions
Php tutorial - imagemagick
php.ini Basics
PHP Sessions
Cookies Versus Sessions
PHP Web-Related Variables
PHP ERRORS
maximum size of a file uploaded
Php Image upload
php file_get_contents
MySQL Data on the Web
What are GET and POST
php and pdf
$_ENV and $_SERVER
PEAR with php
SELECTING DATA PHP
prevent hijacking with PHP
LAMP
PHP MySQL Functions
PHP Zip File Functions
Substrings PHP
PHP Variable names
PHP magic methods
How to get current session id
Add variables into a session
$_GET , $_POST,$_COOKIE
different tables present in mysql
PHP CURL
php Sessions page
PHP-sorting an array
PHP-count the elements of array
Operators for If/Else Statements
PHP file uploading code
PHP global variables
Testing working using phpinfo
PHP Code for a Valid Number
PHP-Associative Arrays
PHP mvc tutorial
PHP get_meta_tags-Extracts
difference between print and echo
PHP best tutorial-PHP variables
Reading DOC file in PHP
PHP interview questions
convert time PHP
PHP implode array elements
header function-PHP
PHP-Renaming Files Directories
PHP Classes
in_array function in PHP
keep your session secure PHP
Web Application with PHP
What is SQL Injection
PHP-extract part of a string
PHP urlencode
PHP- know browser properties
PHP- Extracting Substrings
Checking Variable Values /Types
PHP-best 20 Open Source cms
IP AddressPHP
PHP-Scope Resolution Operator
how create new instance of object
how eliminate an object
PHP- ob_start
XML file using the DOM API
PHP- MVC
PHP- CAPTCHA
PHP- Position of a Value in an Array
PHP-Mail Functions
PHP-difference include vs require
calculate the sum of values in an array
PHP-total number of rows
Show unique records mysql
MySQL Triggers
MySQL data directory
MySQL Subqueries
PHP- Networking Functions
PHP- Operators
Restore database
Conditional Functions mysql
PHP-function overloading
Friend function
mysql_connect /mysql_pconnect
PHP-Error Control Operators
what is IMAP
Apache-Specific Functions
Send Email from a PHP Script
SQL inherently
WAMP, MAMP, LAMP
Php tutorial-SYMBOLS
Table Types-MySQL
PHP-Encryption data management
PHP Array
Running MySQL on Windows
Maximum Performance MySQL
XML-RPC
PHP-static variables
Advanced Database Techniques
FTP
Codeigniter
Apache Pool Size
Why NoSQL
MySQL Server Performance
Database software
SQL Interview Answers
PHP Redirect
PHP Interview Questions with Answers
Advanced PHP

Free Windows Drivers Downloads

Free Windows Drivers Downloads

Downloads for Windows - Free Downloads and reviews

The most downloaded Downloads software, including Realtek High Definition Audio Codec (Windows 2000/XP/2003), Waterfox (64-Bit), and Data Lifeguard Diagnostic for Windows

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including uTorrent, Ad-Aware Free Antivirus +, and Smart Defrag 3

Downloads for Windows - Free Downloads and reviews - CNET Download.com
The most downloaded Downloads software, including Avast Free Antivirus 2014, KMPlayer, and AVG AntiVirus Free 2014

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including Avast Free Antivirus 2014, KMPlayer, and AVG AntiVirus Free 2014

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including Avast Free Antivirus 2014, KMPlayer, and AVG AntiVirus Free 2014

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including Free DivX Player, BF4 Emblem Generator, and Free M4V Player

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including Avast Free Antivirus 2014, KMPlayer, and AVG AntiVirus Free 2014

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including Avast Free Antivirus 2014, KMPlayer, and AVG AntiVirus Free 2014

Downloads for Windows - Free Downloads and reviews
The most downloaded Downloads software, including Avast Free Antivirus 2014, KMPlayer, and AVG AntiVirus Free 2014

Downloads for Windows - Free Downloads and reviews -
The most downloaded Downloads software, including Realtek High Definition Audio Codec (Windows 2000/XP/2003), Predator Free Edition (64-bit), and nVidia Graphics Driver (Windows XP Professional x64 Edition/Server 2003 x64 Edition)

The Most Important Item in SEO - All Links

http://seo-tips-tech.blogspot.com/2011/09/seo-tips.html
http://seo-tips-tech.blogspot.com/2012/06/analytics-and-tracking.html
http://seo-tips-tech.blogspot.com/2012/07/advanced-techniques-for-seo.html
http://seo-tips-tech.blogspot.com/2012/07/create-seo-friendly-urls.html
http://seo-tips-tech.blogspot.com/2012/07/html-intro.html
http://seo-tips-tech.blogspot.com/2012/07/html-tags_11.html
http://seo-tips-tech.blogspot.com/2012/07/html.html
http://seo-tips-tech.blogspot.com/2012/07/off-page-seo-strategies.html
http://seo-tips-tech.blogspot.com/2012/07/seo-articles-targeted-clients.html
http://seo-tips-tech.blogspot.com/2012/07/seo-tips-for-google.html
http://seo-tips-tech.blogspot.com/2012/07/use-email-newsletters-for-traffic.html
http://seo-tips-tech.blogspot.com/2012/09/character-entities.html
http://seo-tips-tech.blogspot.com/2012/09/improve-structure-of-your-urls.html
http://seo-tips-tech.blogspot.com/2012/09/key-factors-effecting-link-quality.html
http://seo-tips-tech.blogspot.com/2012/09/picking-right-keywords.html
http://seo-tips-tech.blogspot.com/2012/09/sectioning-html5-elements.html
http://seo-tips-tech.blogspot.com/2012/09/to-include-inline-javascript-code-place.html
http://seo-tips-tech.blogspot.com/2012/09/web-application-with-php.html
http://seo-tips-tech.blogspot.com/2012/10/search-ranking-algorithm-social-sharing.html
http://seo-tips-tech.blogspot.com/2012/10/seo-research-and-analysis.html
http://seo-tips-tech.blogspot.com/2012/10/seoo-traffic-sources.html
http://seo-tips-tech.blogspot.com/2012/10/top-search-engine-ranking-factors.html
http://seo-tips-tech.blogspot.com/2013/01/search-engine-indexing.html
http://seo-tips-tech.blogspot.com/2013/01/selecting-data-in-php.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-india.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-new-york.html
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-united-states.html
http://seo-tips-tech.blogspot.com/2013/03/blog-marketing.html
http://seo-tips-tech.blogspot.com/2013/03/business-with-seo.html
http://seo-tips-tech.blogspot.com/2013/06/advanced-seo-interview-questions.html
http://seo-tips-tech.blogspot.com/2013/06/article-submission-site-list.html
http://seo-tips-tech.blogspot.com/2013/06/enabled-seo-in-opencart.html
http://seo-tips-tech.blogspot.com/2013/06/how-disallow-sub-domain-using-robotstxt.html
http://seo-tips-tech.blogspot.com/2013/06/plan-out-your-seo-strategies.html
http://seo-tips-tech.blogspot.com/2013/06/seo-tips-for-wordpress.html
http://seo-tips-tech.blogspot.com/2013/06/server-side-includes.html
http://seo-tips-tech.blogspot.com/2013/06/site-indexation-tool.html
http://seo-tips-tech.blogspot.com/2013/06/steps-to-keywords-to-target.html
http://seo-tips-tech.blogspot.com/2013/07/advanced-seo-tips-2013.html
http://seo-tips-tech.blogspot.com/2013/07/brand-marketing-publishing-information.html
http://seo-tips-tech.blogspot.com/2013/07/choose-right-keyword-set.html
http://seo-tips-tech.blogspot.com/2013/07/create-valuable-keyword-focused-content.html
http://seo-tips-tech.blogspot.com/2013/07/creating-outbound-links-seo-tips.html
http://seo-tips-tech.blogspot.com/2013/07/examining-seo-and-social-media.html
http://seo-tips-tech.blogspot.com/2013/07/facebook-marketing-tips.html
http://seo-tips-tech.blogspot.com/2013/07/inbound-links-pointing-with-online.html
http://seo-tips-tech.blogspot.com/2013/07/internet-marketing-for-b2b-and-b2c.html
http://seo-tips-tech.blogspot.com/2013/07/magic-seotips-keyword-based-competitor.html
http://seo-tips-tech.blogspot.com/2013/07/major-online-directories.html
http://seo-tips-tech.blogspot.com/2013/07/mobile-seo-tips-mobile-optimizing.html
http://seo-tips-tech.blogspot.com/2013/07/need-of-seo.html
http://seo-tips-tech.blogspot.com/2013/07/optimize-your-site-for-speed.html
http://seo-tips-tech.blogspot.com/2013/07/query-strings.html
http://seo-tips-tech.blogspot.com/2013/07/ranking-fluctuations-seo.html
http://seo-tips-tech.blogspot.com/2013/07/search-engine-marketing-metrics.html
http://seo-tips-tech.blogspot.com/2013/07/search-engine-marketing-metrics_15.html
http://seo-tips-tech.blogspot.com/2013/07/seo-fanda-nofollow-link-attribute.html
http://seo-tips-tech.blogspot.com/2013/07/seo-keyword-tuning-with-ppc-testing.html
http://seo-tips-tech.blogspot.com/2013/07/seo-marketing-tips.html
http://seo-tips-tech.blogspot.com/2013/07/seo-tips-adding-your-links-everywhere.html
http://seo-tips-tech.blogspot.com/2013/07/small-business-seo-and-sem-strategy.html
http://seo-tips-tech.blogspot.com/2013/07/smo-is-effective-for-seo.html
http://seo-tips-tech.blogspot.com/2013/07/tips-of-internet-marketing.html
http://seo-tips-tech.blogspot.com/2013/07/types-of-search-engines-and-web.html
http://seo-tips-tech.blogspot.com/2013/07/web-site-content-affect-seo.html
http://seo-tips-tech.blogspot.com/2013/08/additional-seo-tips-increase.html
http://seo-tips-tech.blogspot.com/2013/08/advanced-database-techniques.html
http://seo-tips-tech.blogspot.com/2013/08/alternatives-way-to-paypal.html
http://seo-tips-tech.blogspot.com/2013/08/apache-pool-size.html
http://seo-tips-tech.blogspot.com/2013/08/bing-webmaster-seo-tools.html
http://seo-tips-tech.blogspot.com/2013/08/cracker-seo-tips.html
http://seo-tips-tech.blogspot.com/2013/08/dedicated-servers-vs-virtual-servers.html
http://seo-tips-tech.blogspot.com/2013/08/defining-block.html
http://seo-tips-tech.blogspot.com/2013/08/drupal-bootstrap-process.html
http://seo-tips-tech.blogspot.com/2013/08/drupal-optimizations.html
http://seo-tips-tech.blogspot.com/2013/08/drupals-seo-tips.html
http://seo-tips-tech.blogspot.com/2013/08/how-to-creating-web-site.html

Nubia Z7 flagship-ZTE

ZTE has started the teaser campaign about for its new flagship - the Nubia Z7. First it was the CEO of ZTE's smartphone division, Ni Fei, and now a peek at the back of the device. It bears the characteristic Nubia mark of a red circle used both on the Home key and around the camera lens.

Official ZTE Nubia Z7 teaser image The first teaser image shows only the camera and the LED flash on the back. MyDrivers may be ahead of the curve with two additional images that show the Home button from the side, revealing square metallic sides that are very similar to an iPhone or Ascend P6/P7. Leaked ZTE Nubia Z7 teasers The rumored specifications for the ZTE Nubia Z7 are a 5" 1080p screen, Snapdragon 805 chipset with 3GB RAM and a 16MP optically stabilized camera. The phone will feature a new iteration of ZTE's custom UI, Nubia UI 2.0. There's a press release by ZTE that details the Nubia Z7,
 unfortunately our Chinese is quite rusty.

A quick pass through Google translate reveals mentions of a fingerprint scanner and eight cores though the context of that is unclear the Snapdragon 805 has a quad-core processor). If any Chinese speakers can post a translation in the comments it would be very helpful. A press release about the ZTE Nubia Z7 Anyway, the ZTE Nubia Z7 will be unveiled this month and will cost CNY 2,700.

Xolo Q1200

Xolo has outed details and availability of the Q1200. The phone packs a 5.0" 720p IPS
display protected with a Gorilla Glass 3 and comes in a very thing 6.8mm body. The Xolo Q1200 is powered by MediaTek's MT6582 chipset with a quad-core 1.3GHz Cortex-A7 CPU, Mali-400MP2 graphics and 1GB RAM. You also get 8GB expandable storage.

An 8MP rear camera with 1080p recording, there is a 2MP front snapper too, plus a 2,000 mAh battery. The connectivity package includes GSM, 3G with HSPA, Bluetooth 4.0 and Wi-Fi N. The phone is running on Android 4.2.2 Jelly Bean out of the box, but Xolo promises it will deliver KitKat update later this year. Xolo Q1200 supports Dual Windows functionality and gesture control. White and black flavors of Xolo Q1200 are already available on pre-order for INR13,999

Top Accounting Software


Start your small business with QuickBooks accounting and financial software from Intuit. Tackle tax, budgets and personal finance with TurboTax, Quicken and Mint. - Skip to main content PRODUCTS Checks & Supplies Intuit Payroll Services QuickBooks for Accountants See All Intuit Products COMMUNITIES Accountants News Central Intuit Small Business...
http://www.intuit.com
 
 
Online accounting software for small businesses and freelancers, recommended by 99.5% of users. Register now for a free trial and take control of your finances. - Accountants & Partners Log In Log in to your FreeAgent Account Forgot it? FreeAgent Accounting software, simplified Thousands of freelancers and small businesses are discovering a...
http://www.freeagent.com/
 
Need to manage your accounts? Simple, effective, small business accounting software that removes the hassle of doing books in record time. Read more... - KashFlow Close “ The ideal accounting software for small business owners. ” Create your first invoice in minutes Click here for Pricing and your free trial Unlimited 14 day free trial (with no...
http://www.kashflow.com
 
Financial Accounting Software iCash 6.1 30. January 2010 · Write a comment · Categories: Shareware iCash is a software intended to control your personal finance, keeping track of incomes, expenses, credits, debts and Banks transactions for you. (Mac & Windows). As simple as creating the accounts you need and move money between them! You don’t...
http://financial-accounting-software.info
 
Top 20 Accounting Systems and Accounting Software from 2020software.com. Your internet source for accounting software such as Dynamics, eEnterprise, Epicor, BusinessWorks, MAS 90 and Best Enterprise Suite Accounting Software - Compare By Application Business Intelligence Construction Software Small Business Software Construction Software...
http://www.2020software.com

Best Accounting Software, we review, rank and rate the 2010 Best accounting software for your Mac, Windows 7, Windows Vista or Windows XP 32 bit & 64 bit laptop & computer with our expert rankings, reviews, and free trials for purchase and download - Accounting Software for Microsoft Windows and Mac OSX Accounting software is a class of computer...
http://best-accountingsoftware.com
 
Accounting Software World Offers Independent Reviews of Today's Top Accounting and Financial Management Solutions along with many additional resources. - Accounting Software Independent Reviews and Resources Accounting Software Solutions Accounting Software World is sponsored by K2 Enterprises and is intended to augment our continuing...
http://www.accountingsoftwareworld.com
 
The Sage Group plc is a leading supplier of business management software and services to 5 million customers worldwide. From small start-ups to larger organisations, we make it easier for companies to manage their business processes. - By using the Sage Group website, you consent to the use of cookies in accordance with the Sage Group cookie...
http://www.sage.com
 
Accounting software for small business. Online accounting system for invoicing, accounts payable, bank reconciliation & bookkeeping. Try Xero accounting software for free! - Xero Beautiful accounting software Beautiful accounting software Try Xero for free This year, discover a new way to run your business Hear Erica's story See how Xero keeps...
http://www.xero.com
 

Adding New User Privileges to MySQL

You can add users two di erent ways: by using GRANT statements or by manipulating the
MySQL grant tables directly. The preferred method is to use GRANT statements, because
they are more concise and less error-prone.

The examples below show how to use the mysql client to set up new users. These examples
assume that privileges are set up according to the defaults described in the previous section.
This means that to make changes, you must be on the same machine where mysqld is
running, you must connect as the MySQL root user, and the root user must have the
insert privilege for the mysql database and the reload administrative privilege. Also, if you
have changed the root user password, you must specify it for the mysql commands below.
You can add new users by issuing GRANT statements:

shell> mysql --user=root mysql
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@localhost
IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO monty@"%"
IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT RELOAD,PROCESS ON *.* TO admin@localhost;
mysql> GRANT USAGE ON *.* TO dummy@localhost;
These GRANT statements set up three new users:

monty A full superuser who can connect to the server from anywhere, but who must use
a password 'some_pass' to do so. Note that we must issue GRANT statements
for both monty@localhost and monty@"%". If we don't add the entry with
localhost, the anonymous user entry for localhost that is created by mysql_
install_db will take precedence when we connect from the local host, because
it has a more speci c Host eld value and thus comes earlier in the user table
sort order.
admin A user who can connect from localhost without a password and who is granted
the reload and process administrative privileges. This allows the user to execute the mysqladmin reload, mysqladmin refresh, and mysqladmin flush-*
commands, as well as mysqladmin processlist .
No database-related privileges are granted. They can be granted later by issuing additional GRANT
statements.

dummy A user who can connect without a password, but only from the local host. The
global privileges are all set to 'N' | the USAGE privilege type allows you to
create a user with no privileges. It is assumed that you will grant databasespeci c privileges later.
You can also add the same user access information directly by issuing INSERT statements
and then telling the server to reload the grant tables

e-mail parameters-Codeigniter

The next thing that we will need to do is to set our e-mail parameters, the sender,
the recipient, any e-mail address to send a carbon copy or blind carbon copy to, the
subject of our e-mail, and the message body. Take a look at the following code and
see if you can distinguish the different parts of our e-mail:

$this->email->from('you@example.com', 'Your Name');
$this->email->to('someone@example.com');
$this->email->cc('another@person.com');
$this->email->bcc('theboss@example.com');
$this->email->subject('Email Test');
$this->email->message('This is a simple test we wrote for the email
class.');


Hopefully you can read the previous code example pretty easily. This is one of the
benefits of CodeIgniter and its libraries. It's very easy to read CodeIgniter code. In
the first line of code we set our e-mail address, which is the address that we will send
the e-mail from, and also pass along a name to identify ourselves. In the next line,
we set the recipient, who is the person that we are sending the e-mail to. The next
line down is an e-mail address to send a carbon copy of the e-mail to. A carbon copy
is simply a copy of the e-mail, just sent to another person. The final line of the first
block is the e-mail address to which we will send a blind carbon copy to. A blind
carbon copy is the same as a carbon copy, except for the other recipients of the
e-mail do not know that this person also has received a copy of this e-mail.


Now, to send our e-mail we simply call the sendfunction of the e-mail library. Here's
how we do it.
$this->email->send();

There is another function available to us from this library. It's a debugger that echo's
out some information provided to us by the various mail sending protocols, and
we are also notified what has been sent and whether or not the e-mail was sent
successfully. To show the debugging information, we use the following line of code:
echo $this->email->print_debugger();

code looks like this:

$this->load->library('email');
$this->email->from('you@example.com', 'Your Name');
$this->email->to('someone@example.com');
$this->email->cc('another@person.com');
$this->email->bcc('theboss@example.com');
$this->email->subject('Email Test');
$this->email->message('This is a simple test we wrote for the email
class.');
$this->email->send();
echo $this->email->print_debugger();


You are not just limited to sending e-mail from inside Controllers; e-mails can also be
sent from Models.