JavaScript Editor Ajax software     Free javascripts 



Main Page

);
CREATE TABLE `cloak_update` (
`version` VARCHAR(255) NOT NULL,
`updated_on` DATETIME NOT NULL
);
6.
Type
exit
to exit the MySql console. After executing these commands, your console should
look like shown in Figure 11-3.
Figure 11-3
7.
Add the following highlighted constants to your
seophp/include/config.inc.php
file. (If you
don’t have the file from the previous exercises in this book, create it now with these contents.)
<?php
// defines database connection data
define(“DB_HOST”, “localhost”);
define(“DB_USER”, “seouser”);
define(“DB_PASSWORD”, “seomaster”);
define(“DB_DATABASE”, “seophp”);
?>
8.
Create a new file named
simple_cloak.inc.php
in your
seophp/include
folder, and type
the following code:
<?php
/*
// +
-------------------------------------------------------------
+
// | SimpleCloak |
// | Class for cloaking content |
// | http://www.SEOEgghead.com |
// +
-------------------------------------------------------------
+
225
Chapter 11: Cloaking, Geo-Targeting, and IP Delivery
c11.qxd:c11 11:01 225


JavaScript Editor Ajax software     Free javascripts