<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1781214005152132850</id><updated>2011-11-27T15:51:07.190-08:00</updated><category term='HTML Tips-Tricks'/><category term='MySQL'/><category term='Technology'/><category term='Wallpapers Tuts'/><category term='CSS'/><category term='HTML - Tips'/><category term='Tips n Tools'/><category term='PHP Scripts'/><category term='Tutorials'/><category term='ICONS'/><category term='Blogger Tips'/><category term='Photoshop'/><category term='Ajax Tools'/><category term='Drupal Customization'/><category term='Flash'/><category term='Corel Draw'/><category term='Linux'/><category term='Graffiti Tips'/><category term='Marketing'/><category term='Windows Tricks'/><category term='Downloads'/><category term='Jquery'/><category term='Vector Images'/><category term='Chit-Chat'/><category term='Articles'/><category term='Web-layout/Templates'/><category term='Illustrator'/><category term='Softwares'/><category term='3D MAX'/><title type='text'>Codes Pack</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default?start-index=101&amp;max-results=100'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>273</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-4768644349626044131</id><published>2010-04-07T22:37:00.000-07:00</published><updated>2010-04-07T22:37:02.078-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Copying a MySQL row to another table</title><content type='html'>My suggestion is to do the following three steps when you need to change&lt;br /&gt;an account name:&lt;br /&gt;&lt;br /&gt;1. Use UPDATE to change the account name in settings_a, even if though&lt;br /&gt;changes the first letter so the account doesn't belong in that table&lt;br /&gt;anymore.&lt;br /&gt;&lt;br /&gt;UPDATE settings_a SET account = 'bishop' WHERE account = 'ash';&lt;br /&gt;&lt;br /&gt;2. Copy the record to the correct table, according to the first letter.&lt;br /&gt;Use INSERT without specifying the columns, and SELECT * without&lt;br /&gt;specifying the columns.  If the number, type, and order of the columns&lt;br /&gt;in both tables match, it _should_ work.&lt;br /&gt;&lt;br /&gt;INSERT INTO settings_b&lt;br /&gt;SELECT * FROM settings_a WHERE account = 'bishop';&lt;br /&gt;&lt;br /&gt;3. Remove the old record from the old table.&lt;br /&gt;&lt;br /&gt;DELETE FROM settings_a WHERE account = 'bishop';&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-4768644349626044131?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/4768644349626044131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2010/04/copying-mysql-row-to-another-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/4768644349626044131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/4768644349626044131'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2010/04/copying-mysql-row-to-another-table.html' title='Copying a MySQL row to another table'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-473786098344240132</id><published>2010-04-07T22:34:00.001-07:00</published><updated>2010-04-07T22:34:25.237-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Export from MySQL to CSV</title><content type='html'>Using command line tools to export data from a MySQL database into a  CSV file is quite easy. Here's how:&lt;br /&gt;mysql -uexampleuser -pletmein exampledb -B -e "select * from  \`person\`;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' &amp;gt; filename.csv&lt;br /&gt;Here is some sample output of the above:&lt;br /&gt;"id","username","group","password"&lt;br /&gt;"1","tux","admin","5f4dcc3b5aa765d61d8327deb882cf99"&lt;br /&gt;"2","tlugian","admin","5f4dcc3b5aa765d61d8327deb882cf99"&lt;br /&gt;"3","saiyuki","admin","5f4dcc3b5aa765d61d8327deb882cf99"&lt;br /&gt;"4","fred","staff","5f4dcc3b5aa765d61d8327deb882cf99"&lt;br /&gt;"5","barney","staff","5f4dcc3b5aa765d61d8327deb882cf99"&lt;br /&gt;"6","wilma","admin","5f4dcc3b5aa765d61d8327deb882cf99"&lt;br /&gt;And now for the explanation:&lt;br /&gt;Starting with the MySQL command. I wont explain the -u and -p options  they are straight forward (if in doubt man mysql). The -B option will  delimit the data using tabs and each row will appear on a new line. The  -e option denotes the command to run once you have logged into the  database. In this case we are using a simple SELECT statement.&lt;br /&gt;Onto sed. The command used here contains three seperate sed scripts: &lt;br /&gt;s/\t/","/g;s/^/"/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;--- this will search and replace all  occurences of 'tabs' and replace them with a ",".&lt;br /&gt;;s/$/"/;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;--- This will place a " at the start of the line.&lt;br /&gt;s/\n//g&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;---- This will place a " at the end of the line.&lt;br /&gt;After running the result set through sed we redirect the output to a  file with a .csv extension.&lt;br /&gt;Regards, Bawdo2001&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-473786098344240132?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/473786098344240132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2010/04/export-from-mysql-to-csv.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/473786098344240132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/473786098344240132'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2010/04/export-from-mysql-to-csv.html' title='Export from MySQL to CSV'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-7152291170477508185</id><published>2010-02-15T22:10:00.000-08:00</published><updated>2010-02-15T22:10:07.605-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Installing rar and unrar programs in Linux or Unix</title><content type='html'>I recently notice that I got some visitors bump in this coder's talk blog, searching for How to create and extract rar files in linux and I do remember that I didn't put on how to install rar and unrar program in other distributions of linux. I'm so sorry, my mistake. &lt;br /&gt;&lt;br /&gt;However, I am a linux supporter and I don't want to make you upset while bumping into this blog and didn't really get what you need. So, here is how to install rar and unrar on other linux distributions...&lt;br /&gt;&lt;br /&gt;Under Debian Linux, you can use the same apt-get method as follows to install unrar program:&lt;br /&gt;&lt;br /&gt;$ apt-get install unrar&lt;br /&gt;&lt;br /&gt;If you are using Fedora core Linux then use yum command as follows:&lt;br /&gt;&lt;br /&gt;$ yum install unrar&lt;br /&gt;&lt;br /&gt;If you are using FreeBSD, you can use:&lt;br /&gt;&lt;br /&gt;$ pkg_add -v -r unrar&lt;br /&gt;&lt;br /&gt;If any of above, methods is not working, you can download binary package from official rarlab site and choose the right package for your machine... for example, i chose the latest (by the time i write this post):&lt;br /&gt;&lt;br /&gt;$ cd /tmp&lt;br /&gt;&lt;br /&gt;$ wget http://www.rarlab.com/rar/rarlinux-3.7.1.tar.gz&lt;br /&gt;&lt;br /&gt;then untar the file:&lt;br /&gt;&lt;br /&gt;$ tar -zxvf rarlinux-3.7.1.tar.gz&lt;br /&gt;&lt;br /&gt;Both rar and unrar commands are located in rar sub-directory. Just go to rar directory:&lt;br /&gt;&lt;br /&gt;$ cd rar&lt;br /&gt;&lt;br /&gt;$ ./unrar&lt;br /&gt;&lt;br /&gt;Now copy rar and unrar to /bin directory:&lt;br /&gt;&lt;br /&gt;$ cp rar unrar /bin&lt;br /&gt;&lt;br /&gt;Then you can use the same method on creating and extracting rar files in linux in my previous post.&lt;br /&gt;&lt;br /&gt;Another thing to add, you can also test the integrity of archive, with this command:&lt;br /&gt;&lt;br /&gt;$ unrar t filename.rar &lt;br /&gt;&lt;br /&gt;or list the files inside the rar file using this command:&lt;br /&gt;&lt;br /&gt;$ unrar l filename.rar&lt;br /&gt;&lt;br /&gt;that's it... hope it helps...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-7152291170477508185?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/7152291170477508185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2010/02/installing-rar-and-unrar-programs-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/7152291170477508185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/7152291170477508185'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2010/02/installing-rar-and-unrar-programs-in.html' title='Installing rar and unrar programs in Linux or Unix'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-1901330652644006216</id><published>2009-12-30T01:14:00.001-08:00</published><updated>2009-12-30T01:14:47.089-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>communicating-with-threads-in-php</title><content type='html'>Earlier this week, I suggested PHP could be multithreaded. The sample I provided was very simple and at least one reader quickly wondered how to communicate with threads.&lt;span id="more-124"&gt;&lt;/span&gt;&lt;br /&gt;If you haven’t already, take a look at &lt;a href="http://www.alternateinterior.com/2007/05/multi-threading-strategies-in-php.html"&gt;part 1&lt;/a&gt; to get some basic information about threads in PHP.&lt;br /&gt;It took a bit longer to get that part working that simple threads, but as of now, I have a functional prototype of an HVAC thread. &lt;br /&gt;&lt;h2&gt;HVAC.php&lt;/h2&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;&lt;pre&gt;require "ThreadInstance.php";&lt;br /&gt;class HVAC extends ThreadInstance {&lt;br /&gt;        var $currentTemp;&lt;br /&gt;        var $heaterOn;&lt;br /&gt;        var $acOn;&lt;br /&gt;        var $toggleOn;&lt;br /&gt;        function HVAC () {&lt;br /&gt;                $this-&amp;gt;setup();&lt;br /&gt;                $this-&amp;gt;currentTemp = 32;&lt;br /&gt;                $this-&amp;gt;heaterOn = false;&lt;br /&gt;                $this-&amp;gt;acOn = false;&lt;br /&gt;                $this-&amp;gt;toggleOn = 70;&lt;br /&gt;        }&lt;br /&gt;        function runHeater() {&lt;br /&gt;                $this-&amp;gt;heaterOn = true;&lt;br /&gt;                $this-&amp;gt;acOn = false;&lt;br /&gt;        }&lt;br /&gt;        function runAc() {&lt;br /&gt;                $this-&amp;gt;heaterOn = false;&lt;br /&gt;                $this-&amp;gt;acOn = true;&lt;br /&gt;        }&lt;br /&gt;        function process() {&lt;br /&gt;                switch (true) {&lt;br /&gt;                        case ($this-&amp;gt;heaterOn):&lt;br /&gt;                                return $this-&amp;gt;processHeater();&lt;br /&gt;                        case ($this-&amp;gt;acOn):&lt;br /&gt;                                return $this-&amp;gt;processAc();&lt;br /&gt;                }&lt;br /&gt;        }&lt;br /&gt;        function processHeater() {&lt;br /&gt;                if ($this-&amp;gt;currentTemp &amp;lt; $this-&amp;gt;toggleOn) {&lt;br /&gt;                        $this-&amp;gt;currentTemp++;&lt;br /&gt;                }&lt;br /&gt;        }&lt;br /&gt;        function processAc() {&lt;br /&gt;                if ($this-&amp;gt;currentTemp &amp;gt; $this-&amp;gt;toggleOn) {&lt;br /&gt;                        $this-&amp;gt;currentTemp–;&lt;br /&gt;                }&lt;br /&gt;        }&lt;br /&gt;        function apploop($command) {&lt;br /&gt;                $this-&amp;gt;process();&lt;br /&gt;                switch ($command) {&lt;br /&gt;                        case “”:&lt;br /&gt;                                // noop&lt;br /&gt;                                return;&lt;br /&gt;                        case “start heater”:&lt;br /&gt;                                $this-&amp;gt;runHeater();&lt;br /&gt;                                $this-&amp;gt;response (”ok”, NULL);&lt;br /&gt;                                return;&lt;br /&gt;                        case “start ac”:&lt;br /&gt;                                $this-&amp;gt;runAc();&lt;br /&gt;                                $this-&amp;gt;response(”ok”, NULL);&lt;br /&gt;                                return;&lt;br /&gt;                        case “get current temp”:&lt;br /&gt;                                $this-&amp;gt;response (”ok”, $this-&amp;gt;currentTemp);&lt;br /&gt;                                return;&lt;br /&gt;                        case “set temp”:&lt;br /&gt;                                $temp = intval($this-&amp;gt;getLine(true));&lt;br /&gt;                                if ($temp) {&lt;br /&gt;                                        $this-&amp;gt;toggleOn = $temp;&lt;br /&gt;                                        $this-&amp;gt;response (”ok”, NULL);&lt;br /&gt;                                } else {&lt;br /&gt;                                        $this-&amp;gt;response (”err”, “not a number”);&lt;br /&gt;                                }&lt;br /&gt;                                return;&lt;br /&gt;                        case “quit”:&lt;br /&gt;                                exit;&lt;br /&gt;                        default:&lt;br /&gt;                                $this-&amp;gt;response (”err”, “bad request - $command”);&lt;br /&gt;                                return;&lt;br /&gt;                }&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;$hvac = new HVAC();&lt;br /&gt;do {&lt;br /&gt;        sleep (1);&lt;br /&gt;        $hvac-&amp;gt;apploop($hvac-&amp;gt;getCommand());&lt;br /&gt;} while (true);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;ThreadInstance.php&lt;/h2&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;&lt;pre&gt;set_time_limit (0);&lt;br /&gt;require "ThreadUtility.php";&lt;br /&gt;class ThreadInstance {&lt;br /&gt;        var $stdin;&lt;br /&gt;        var $commandbuffer;&lt;br /&gt;        var $stdout;&lt;br /&gt;        function setup() {&lt;br /&gt;                $this-&amp;gt;stdin = fopen ("php://stdin", "r");&lt;br /&gt;                $this-&amp;gt;stderr = fopen ("php://stderr", "w");&lt;br /&gt;                stream_set_blocking ($this-&amp;gt;stdin, false);&lt;br /&gt;                $this-&amp;gt;commandbuffer = (array)NULL;&lt;br /&gt;                $this-&amp;gt;outbuffer = "";&lt;br /&gt;        }&lt;br /&gt;        function getCommand() {&lt;br /&gt;                $command = fgets ($this-&amp;gt;stdin, 1024);&lt;br /&gt;                $this-&amp;gt;commandbuffer[] = $command;&lt;br /&gt;&lt;br /&gt;                $command = array_shift ($this-&amp;gt;commandbuffer);&lt;br /&gt;                return trim($command);&lt;br /&gt;        }&lt;br /&gt;        function response ($status, $data) {&lt;br /&gt;                response ($status, $data);&lt;br /&gt;        }&lt;br /&gt;        function getLine ($wait = false) {&lt;br /&gt;                if ($wait) {&lt;br /&gt;                        $buffer = "";&lt;br /&gt;                        while (!strlen($buffer)) {&lt;br /&gt;                                $buffer .= fgets ($this-&amp;gt;stdin, 1024);&lt;br /&gt;                        }&lt;br /&gt;                } else {&lt;br /&gt;                        $buffer = fgets ($this-&amp;gt;stdin, 1024);&lt;br /&gt;                }&lt;br /&gt;                return trim($buffer);&lt;br /&gt;        }&lt;br /&gt;        function debug ($text) {&lt;br /&gt;                fwrite ($this-&amp;gt;stderr, $text);&lt;br /&gt;        }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;ThreadUtility.php&lt;/h2&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;&lt;pre&gt;function response ($status, $response) {&lt;br /&gt;        echo $status . "\n";&lt;br /&gt;        echo base64_encode(serialize($response)), "\n";&lt;br /&gt;}&lt;br /&gt;function processresponse ($string) {&lt;br /&gt;        $parts = explode ("\n", $string);&lt;br /&gt;        $status = $parts[0];&lt;br /&gt;        $data = unserialize (base64_decode ($parts[1]));&lt;br /&gt;        return array ("status" =&amp;gt; $status, "data" =&amp;gt; $data);&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Thread.php&lt;/h2&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;&lt;pre&gt;require "ThreadUtility.php";&lt;br /&gt;class Thread {&lt;br /&gt;        var $pref ;&lt;br /&gt;        var $pipes;&lt;br /&gt;        var $pid;&lt;br /&gt;        var $stdout;&lt;br /&gt;        function Thread() {&lt;br /&gt;                $this-&amp;gt;pref = 0;&lt;br /&gt;                $this-&amp;gt;stdout = "";&lt;br /&gt;                $this-&amp;gt;pipes = (array)NULL;&lt;br /&gt;        }&lt;br /&gt;        function Create ($url) {&lt;br /&gt;                $t = new Thread;&lt;br /&gt;                $descriptor = array (0 =&amp;gt; array ("pipe", "r"), 1 =&amp;gt; array ("pipe", "w"), 2 =&amp;gt; array ("pipe", "w"));&lt;br /&gt;                $t-&amp;gt;pref = proc_open ("php -q $url ", $descriptor, $t-&amp;gt;pipes);&lt;br /&gt;                stream_set_blocking ($t-&amp;gt;pipes[1], 0);&lt;br /&gt;                stream_set_blocking ($t-&amp;gt;pipes[2], 0);&lt;br /&gt;                usleep (10);&lt;br /&gt;                return $t;&lt;br /&gt;        }&lt;br /&gt;        function isActive () {&lt;br /&gt;                $this-&amp;gt;stdout .= $this-&amp;gt;listen();&lt;br /&gt;                $f = stream_get_meta_data ($this-&amp;gt;pipes[1]);&lt;br /&gt;                return !$f["eof"];&lt;br /&gt;        }&lt;br /&gt;        function close () {&lt;br /&gt;                $this-&amp;gt;tell("quit");&lt;br /&gt;                $r = proc_close ($this-&amp;gt;pref);&lt;br /&gt;                $this-&amp;gt;pref = NULL;&lt;br /&gt;                return $r;&lt;br /&gt;        }&lt;br /&gt;        function tell ($thought) {&lt;br /&gt;                fwrite ($this-&amp;gt;pipes[0], $thought . "\n");&lt;br /&gt;                $response = "";&lt;br /&gt;                do {&lt;br /&gt;                        $response = $this-&amp;gt;listen();&lt;br /&gt;                } while ($response == "");&lt;br /&gt;                return processresponse ($response);&lt;br /&gt;        }&lt;br /&gt;        function listen () {&lt;br /&gt;                $buffer = $this-&amp;gt;stdout;&lt;br /&gt;                $this-&amp;gt;stdout = "";&lt;br /&gt;                while ($r = fgets ($this-&amp;gt;pipes[1], 1024)) {&lt;br /&gt;                        $buffer .= $r;&lt;br /&gt;                }&lt;br /&gt;                return $buffer;&lt;br /&gt;        }&lt;br /&gt;        function getError () {&lt;br /&gt;                $buffer = "";&lt;br /&gt;                while ($r = fgets ($this-&amp;gt;pipes[2], 1024)) {&lt;br /&gt;                        $buffer .= $r;&lt;br /&gt;                }&lt;br /&gt;                return $buffer;&lt;br /&gt;        }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;hvac.php&lt;/h2&gt;&lt;code&gt; &lt;/code&gt;&lt;br /&gt;&lt;pre&gt;set_time_limit(0);&lt;br /&gt;include "Thread.php";&lt;br /&gt;$tHVAC = Thread::create("HVAC.php");&lt;br /&gt;$r = $tHVAC-&amp;gt;tell("start heater");&lt;br /&gt;echo "Start heater: ", $r["status"], "\n";&lt;br /&gt;if ($r["status"] == "err") {&lt;br /&gt;        $tHVAC-&amp;gt;close();&lt;br /&gt;        exit;&lt;br /&gt;}&lt;br /&gt;$tHVAC-&amp;gt;tell("set temp\n50");&lt;br /&gt;$goingUp = true;&lt;br /&gt;while ($tHVAC-&amp;gt;isActive()) {&lt;br /&gt;        echo $tHVAC-&amp;gt;getError();&lt;br /&gt;        $r = $tHVAC-&amp;gt;tell("get current temp");&lt;br /&gt;        if ($r["status"] == "ok") {&lt;br /&gt;                echo "Current Temperature: ", $r["data"], "\n";&lt;br /&gt;        }&lt;br /&gt;        if ($r["data"] == 50 &amp;amp;&amp;amp; $goingUp) {&lt;br /&gt;                $tHVAC-&amp;gt;tell("set temp\n35");&lt;br /&gt;                $tHVAC-&amp;gt;tell("start ac");&lt;br /&gt;                $goingUp = false;&lt;br /&gt;        } else if ($r["data"] == 35 &amp;amp;&amp;amp; !$goingUp) {&lt;br /&gt;                echo "Main Thread donenWaiting for HVAC Thread to end... ";&lt;br /&gt;                $tHVAC-&amp;gt;close();&lt;br /&gt;                echo "ok";&lt;br /&gt;                exit;&lt;br /&gt;        }&lt;br /&gt;}&lt;/pre&gt;Yes, it’s a lot of code for a sample.&lt;br /&gt;In the original example, I assumed a file would have a given task. If you needed to generate a report while running a lengthy query, generate.php and analyze.php would make good threads. But real life is not that simple. So what I’ve now done is made a REPL loop in HVAC.php (the thread). This loop is what facilitates communications. It constantly polls for commands.&lt;br /&gt;To understand this, let’s first ignore Thread.php, ThreadUtility.php and ThreadInstance.php. hvac.php is the stub application and HVAC.php is the HVAC unit and what we want threaded. REPL functionality is easily accomplished:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;$hvac = new HVAC();&lt;br /&gt;do {&lt;br /&gt;sleep (1);&lt;br /&gt;$hvac-&amp;gt;apploop($hvac-&amp;gt;getCommand());&lt;br /&gt;} while (true);&lt;/code&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;code&gt;sleep(1)&lt;/code&gt; is not strictly neccessary. It’s there to prevent real-time continuous polling. An initial delay is useful, but it doesn’t really need to be in the loop nor need it be so long. &lt;code&gt;apploop&lt;/code&gt; is the controller for this thread. &lt;code&gt;getCommand&lt;/code&gt; retrieves the oldest unprocessed command (typically, the only command) for to be executed.&lt;br /&gt;Inside of apploop, logic is carried out like normal. In place of a clean exit, though, commands return &lt;code&gt;response&lt;/code&gt;. This is an array comprised of a status and data. Status has two established values, &lt;code&gt;err&lt;/code&gt; and &lt;code&gt;ok&lt;/code&gt;. Data is a field allowing whatever data is useful to be passed back. It can be an object, however, the class must be defined in both contexts for it to be usable.&lt;br /&gt;On the stub side, the thread is set up the same way as before. The first difference is that calls to &lt;code&gt;tell&lt;/code&gt; return results. You will quickly know whether an operation succeeded without entering a &lt;code&gt;listen&lt;/code&gt; poll loop. &lt;br /&gt;One quirky statement is &lt;code&gt;$tHVAC-&amp;gt;tell("set temp\n50");&lt;/code&gt; Commands are only one line. The set temp command is defined to prompt for a temperature, and it happens that the command issuing stream is the stream on which the temperature is polled. Therefore, we prime the command stream with a second statement (50) before it’s polled. This is not an ideal way to operate, but at this time, there is no more formalized architecture.&lt;br /&gt;Finally, there’s a loop to set the temperature. With the heater turned on, the temperature is set to 50Âº. Once 50Âº is reached, the air conditioner is switched on and the temperature is lowered to 35Âº. Then the application exits.&lt;br /&gt;&lt;code&gt;isActive&lt;/code&gt; is not as accurate under this model. Since the thread is in a continuous loop, executon never truly stops. isActive will only stop if some error has taken down the thread. Therefore, one of the commands this thread supports is &lt;code&gt;quit&lt;/code&gt;. Also, the general thread class has been altered to dispatch a &lt;code&gt;quit&lt;/code&gt; instruction before it pulls the plug on the process. &lt;br /&gt;The main application will not exit until all spawned threads exit. Therefore, it’s important that you’ve set up some remote-controllable mechanism to end it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-1901330652644006216?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/1901330652644006216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/communicating-with-threads-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1901330652644006216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1901330652644006216'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/communicating-with-threads-in-php.html' title='communicating-with-threads-in-php'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-1749180192293934184</id><published>2009-12-15T03:30:00.001-08:00</published><updated>2009-12-15T03:34:09.498-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jquery'/><title type='text'>Building an Animated Cartoon Robot with jQuery</title><content type='html'>&lt;h3&gt;Why?&lt;/h3&gt;Aside from being a fun exercise, what purpose does something like this have? None that’s plainly obvious. Its about as useful as a miniature ship in a bottle. Yet it does have an underlying purpose. It could inspire someone to look beyond the perceived constraints of web designers and developers. &lt;br /&gt;&lt;a class="button" href="http://robot.anthonycalzadilla.com/"&gt;View Demo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Overview&lt;/h3&gt;This project was created by layering several empty divs over each other with transparent PNGs as background images. &lt;br /&gt;The backgrounds were animated at different speeds using a jQuery plug-in by Alexander Farkas. This effect simulates a faux 3-D animated background dubbed the “parallax effect” originating from old-school side scrolling video games. &lt;br /&gt;The robot is comprised similarly to the background animation scene by layering several DIVs together to create the different robot pieces. The final step, was animating the robot with some jQuery. &lt;br /&gt;&lt;img alt="" height="204" src="http://css-tricks.com/wp-content/csstricks-uploads/image-architecture.jpg" title="" width="400" /&gt;&lt;br /&gt;&lt;span id="more-1660"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3&gt;The Markup&lt;/h3&gt;&lt;pre&gt;&lt;code class="html"&gt;&lt;/code&gt;&lt;br /&gt;&lt;div id="wrapper"&gt;&lt;div id="cloud-01"&gt;&lt;div id="cloud-02"&gt;&lt;div id="mountains-03"&gt;&lt;div id="ground"&gt;&lt;div id="full-robot"&gt;&lt;div id="branding"&gt;&lt;h1&gt;Robot Head.&lt;/h1&gt;&lt;/div&gt;&lt;div id="content"&gt;Robot Chest.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div id="sec-content"&gt;Robot Pelvis.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div id="footer"&gt;Robot Legs.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;/pre&gt;The structure of the divs closely resembles our diagram. None of the DIVs has the width attribute specified so they will expand to fill the size of any browser window they are displayed on. &lt;b&gt;NOTE:&lt;/b&gt; All the images that make the background scenery parallax effect are 9999px wide. Well beyond the width of any computer display or television in common use. We’ll use CSS to place the background images exactly where we want within each particular div.&lt;br /&gt;&lt;h3&gt;The Style&lt;/h3&gt;The CSS for this project is just as simple as the markup.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;h1, p { position: absolute; left: -9999px; }&lt;br /&gt;&lt;br /&gt;div {position: relative;}&lt;br /&gt;&lt;br /&gt;#wrapper { background: #bedfe4 url(../images/sun.png) no-repeat left -30px; border: 5px solid #402309;}&lt;br /&gt;&lt;br /&gt;#cloud-01 { background: url(../images/clouds-01.png) no-repeat left -100px; }                                                         &lt;br /&gt;&lt;br /&gt;#cloud-02 { background: url(../images/clouds-02.png) no-repeat left top; }&lt;br /&gt;&lt;br /&gt;#mountains-03 { background: url(../images/mountain-03.png) no-repeat left bottom; }&lt;br /&gt;&lt;br /&gt;#ground { background: url(../images/ground-05.png) no-repeat left bottom; }&lt;br /&gt;&lt;br /&gt;#full-robot { width: 271px; }&lt;br /&gt;&lt;br /&gt;#branding {&lt;br /&gt; background: url(../images/robot-head.png) no-repeat center top;&lt;br /&gt; width: 271px;&lt;br /&gt; height: 253px;&lt;br /&gt; z-index: 4;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;#content {&lt;br /&gt; background: url(../images/robot-torso.png) no-repeat center top;&lt;br /&gt; width: 271px;&lt;br /&gt; height: 164px;&lt;br /&gt; z-index: 3;&lt;br /&gt; margin-top: -65px;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;#sec-content {&lt;br /&gt; background: url(../images/robot-hips.png) no-repeat center top;&lt;br /&gt; width: 271px;&lt;br /&gt; height: 124px;&lt;br /&gt; z-index: 2;&lt;br /&gt; margin-top: -90px;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;#footer {&lt;br /&gt; background: url('../images/robot-legs.png') no-repeat center top;&lt;br /&gt; width: 271px;&lt;br /&gt; height: 244px;&lt;br /&gt; z-index: 1;&lt;br /&gt; margin-top: -90px;&lt;br /&gt; }&lt;/code&gt;&lt;/pre&gt;Absolute positioning is used to pull any header or paragraph text 9999px to the left of the screen. Then we declare every DIV in the page position: relative. By making all the DIVs position: relative;, we now have the ability to the use the z-index property to reverse the natural stacking order of the robot DIVs.&lt;br /&gt;&lt;h3&gt;The jQuery JavaScript&lt;/h3&gt;Disclaimer: The original script to animate the robot was horrid. The good folks at &lt;a href="http://codingcyb.org/main/index.php?pv=robot"&gt;coding cyborg&lt;/a&gt; were kind enough to clean it up and re-write it.&lt;br /&gt;&lt;pre&gt;&lt;code class="javascript"&gt;$(document).ready(function(){&lt;br /&gt;$('#cloud-01').css({backgroundPosition: '0 -80px'});&lt;br /&gt;$('#cloud-02').css({backgroundPosition: '0 -30px'});&lt;br /&gt;$('#mountains-03').css({backgroundPosition: '0 50px'});&lt;br /&gt;$('#trees-04').css({backgroundPosition: '0 50px'});&lt;br /&gt;$('#ground').css({backgroundPosition: 'left bottom'});&lt;br /&gt;$('#branding').css({backgroundPosition: 'center 0'});&lt;br /&gt;$('#content').css({backgroundPosition: 'center 0'});&lt;br /&gt;$('#sec-content').css({backgroundPosition: 'center 0'});&lt;br /&gt;$('#footer').css({backgroundPosition: 'center 0'});&lt;br /&gt;$('#wrapper').css({overflow: "hidden"});&lt;br /&gt;&lt;br /&gt; $('#klicker').click(function(){&lt;br /&gt;  $('#cloud-01').animate({backgroundPosition: '(-500px -80px)'}, 20000);&lt;br /&gt;  $('#cloud-02').animate({backgroundPosition: '(-625px -30px)'}, 20000);&lt;br /&gt;  $('#mountains-03').animate({backgroundPosition: '(-2500px 50px)'}, 20000);&lt;br /&gt;  $('#ground').animate({backgroundPosition: '(-5000px bottom)'}, 20000);&lt;br /&gt;&lt;br /&gt; startHim();&lt;br /&gt;&lt;br /&gt; $("#full-robot").animate({left:"50%",marginLeft:"-150px"}, 2000);&lt;br /&gt; setTimeout("leaveScreen()",15000);&lt;br /&gt; });&lt;br /&gt;&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;var num = 1;&lt;br /&gt;&lt;br /&gt;function startHim(){&lt;br /&gt; num++;&lt;br /&gt; $("#sec-content").animate({top:"-=5px"},150).animate({top:"+=5px"},150);&lt;br /&gt; $("#content,#branding").animate({top:"-="+num+"px"},150).animate({top:"+="+num+"px"},150);&lt;br /&gt; if(num&amp;lt;4){&lt;br /&gt;  setTimeout("startHim()",300);&lt;br /&gt; } else {&lt;br /&gt;  setTimeout("bounceHim()",300);&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function bounceHim(){&lt;br /&gt; $("#sec-content,#branding").animate({top:"-=4px"},150).animate({top:"+=4px"},150);&lt;br /&gt;  $("#content").animate({top:"-=8px"},150).animate({top:"+=8px"},150);&lt;br /&gt; setTimeout("bounceHim()",300);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function leaveScreen(){&lt;br /&gt; $("#full-robot").animate({left:"100%",marginLeft:"0px"}, 2000);&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;We begin by re-affirming the original background position of all the images. &lt;br /&gt;Upon clicking the &lt;b&gt;‘#klicker’&lt;/b&gt; div, a function tells jQuery to animate the backgrounds from their current position all the way to the coordinates specified for each div. By separating all the different image layers into different DIVs we can animate the background elements at different speeds. Moving the elements at different speeds gives an illusion of a 3rd dimension. We move the elements in the background at a much slower rate than the elements in the foreground. Notice on this animation that the speed of the clouds in the background is slower than the speed of the mountains. And the mountains are slower than the ground which is the fastest of all. Finally after firing off all these commands to get the background moving the &lt;b&gt;‘#klicker’&lt;/b&gt; function calls on the &lt;b&gt;‘startHim()’&lt;/b&gt; function.&lt;br /&gt;The &lt;b&gt;‘startHim()’&lt;/b&gt; function, you guessed it right, starts our robot. It begins his little bounce and gets him moving to the center of the #wrapper div. The &lt;b&gt;‘startHim()’&lt;/b&gt; function calls on the &lt;b&gt;‘bounceHim()’&lt;/b&gt; function. And then it keeps looping.&lt;br /&gt;We need to make the robot seem like it was bouncing on a rough desert rode. To achieve that bouncy irregular effect we’ll use the &lt;b&gt;‘bounceHim()’&lt;/b&gt; function. It targets the separate robot DIVs and ‘bounces’ them 5px up and then 5px down. That wont be enough though, all the different pieces of the robot bouncing at the same rate looks too stiff. We need to make it look a bit more random and interesting. So we’ll take the div that makes the chest portion of the robot and move it at a different rate than the head and pelvis pieces. We’ll ‘bounce’ the chest part at 8px up and 8px down. This gives the robot a nice off-beat bouncy effect.&lt;br /&gt;The &lt;b&gt;‘leaveScreen()’&lt;/b&gt; function is the last function called. After 15 seconds (15000) it moves the robot 100% percent to the left of the screen which consequently moves the robot off to the right of the screen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-1749180192293934184?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/1749180192293934184/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/building-animated-cartoon-robot-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1749180192293934184'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1749180192293934184'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/building-animated-cartoon-robot-with.html' title='Building an Animated Cartoon Robot with jQuery'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-6512963860472224815</id><published>2009-12-15T03:26:00.000-08:00</published><updated>2009-12-15T03:28:46.496-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jquery'/><title type='text'>Color Fading Menu with jQuery</title><content type='html'>&lt;img alt="" height="126" src="http://css-tricks.com/wp-content/csstricks-uploads/fade-example.png" title="" width="400" /&gt;&lt;br /&gt;&lt;div style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: rgb(238, 238, 238) none repeat scroll 0% 0%; border: 1px solid rgb(204, 204, 204); padding: 10px;"&gt;&lt;i&gt;Editor’s note:&lt;/i&gt; When I first pushed out this latest redesign for CSS-Tricks, it featured a simple color fading animation in the main navigation. Liam quickly noticed a flaw in the code I was using to do it, where if you very quickly moused back and forth over the menu items some of the transitional color would “stick”. Liam generously rewrote the code to be a bit smarter for me, and I asked him to write this tutorial. Thanks Liam!&lt;br /&gt;&lt;/div&gt;Hello, I am Liam Goodacre, and Chris has asked me to write a short jQuery tutorial on how to achieve fading hover effects. I will demonstrate how to perform colour and image merging. We will be using &lt;a href="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js"&gt;jQuery&lt;/a&gt; and the &lt;a href="http://plugins.jquery.com/files/jquery.color.js.txt"&gt;jQuery Colour plugin.&lt;/a&gt;&lt;br /&gt;When I first wrote something like this, I set a background div to fade in on mouse hover, and fade out on mouse leave. I found that if I quickly moved my mouse over and out of the link, then the background kept flashing the same number of times as my mouse. I then told the animation to stop before I set new animations, this solved the problem, but produced a new one.&lt;br /&gt;The new problem: if I did the same test (repeated mouse hovering), then the link’s mouse out state, would slowly look the same as the hover state, therefore the background stopped fading out after a few times. I noticed that Chris had this same problem on his site.&lt;br /&gt;I then had an idea; on mouse hover, if I stopped the current animation, and reset the background to be invisible, then fade it in, rather than starting it fading from its current state. This seems to have solved the problem.&lt;br /&gt;&lt;br /&gt;&lt;a class="button" href="http://css-tricks.com/examples/ColorFadingMenu/"&gt;View Example&lt;/a&gt;   &lt;a class="button" href="http://css-tricks.com/examples/ColorFadingMenu.zip"&gt;Download Files&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Ok then, let’s get started…&lt;/h3&gt;What we need is a div containing two things; an anchor element and another div, which I will refer to as the subDiv. The subDiv will display the image that will fade in on mouse hover. The Anchor will overlap the subDiv and have a transparent background.&lt;br /&gt;&lt;h3&gt;The HTML&lt;/h3&gt;We will add the subDiv to the div dynamically using jQuery, to reduce the ammount of html we need to write. This is helpful, when having multiple links like this.&lt;br /&gt;This is our html code so far…&lt;br /&gt;&lt;pre&gt;&lt;code class="html"&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="hoverBtn"&gt;&lt;a href="http://css-tricks.com/"&gt;Go to CSS-Tricks&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/pre&gt;We have a div with a class of hoverBtn containing and a link to CSS-Tricks.&lt;br /&gt;&lt;h3&gt;The CSS&lt;/h3&gt;&lt;pre&gt;&lt;code class="css"&gt;div.hoverBtn {&lt;br /&gt; position:   relative;&lt;br /&gt; width:    100px;&lt;br /&gt; height:   30px;&lt;br /&gt; background:  #000 url(your_background_image.png) repeat-x 0 0 scroll;&lt;br /&gt;}&lt;br /&gt;div.hoverBtn a {&lt;br /&gt; position:   relative;&lt;br /&gt; z-index:   2;&lt;br /&gt; display:   block;&lt;br /&gt; width:    100px;&lt;br /&gt; height:   30px;&lt;br /&gt; line-height:   30px;&lt;br /&gt; text-align:   center;&lt;br /&gt; color:   #000;&lt;br /&gt; background:  transparent none repeat-x 0 0 scroll;&lt;br /&gt;}&lt;br /&gt;div.hoverBtn div {&lt;br /&gt; display:  none;&lt;br /&gt; position:   relative;&lt;br /&gt; z-index:   1;&lt;br /&gt; width:    100px;&lt;br /&gt; height:   30px;&lt;br /&gt; margin-top:   -30px;&lt;br /&gt; background:  #FFF url(your_hover_image.png) none repeat-x 0 0 scroll;&lt;br /&gt;}&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;The subDiv is now positioned underneath the anchor, and I have applied background graphics to the div and the subDiv.&lt;br /&gt;&lt;h3&gt;The JavaScript&lt;/h3&gt;I am going to assume you have a basic understanding of how to use jQuery, although, even if you don’t, the code is pretty much self explanatory.&lt;br /&gt;Here is our starting point…&lt;br /&gt;&lt;pre&gt;&lt;code class="javascript"&gt;//when the dom has loaded&lt;br /&gt;$(function(){&lt;br /&gt;&lt;br /&gt;});&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;I’m sure most of you are all fully aware, any code written within these two lines, will run as soon as the DOM has finished loading.&lt;br /&gt;We now need to add the subDiv. Which we an accomplish by using the ‘append’ method of jQuery objects.&lt;br /&gt;&lt;pre&gt;&lt;code class="javascript"&gt;//when the dom has loaded&lt;br /&gt;$(function(){&lt;br /&gt; //display the hover div&lt;br /&gt; $("div.hoverBtn").show("fast", function() {&lt;br /&gt;  //append the background div&lt;br /&gt;  $(this).append("&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;");&lt;br /&gt; });&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;I have wrapped the ‘append’ within the call-back of the show method, so that we can use ‘this’ to reference each div.hoverBtn element.&lt;br /&gt;Now we need to code the link’s hover event. We will fade the font colour, therefore we should specify a hover colour. We can also use the ‘rel’ attribute to store the initial colour of each anchor. This is useful for different coloured links.&lt;br /&gt;&lt;pre&gt;&lt;code class="javascript"&gt;var hoverColour = "#FFF";&lt;br /&gt;//when the dom has loaded&lt;br /&gt;$(function(){&lt;br /&gt; //display the hover div&lt;br /&gt; $("div.hoverBtn").show("fast", function() {&lt;br /&gt;  //append the background div&lt;br /&gt;  $(this).append("&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;");&lt;br /&gt;  //on link hover&lt;br /&gt;  $(this).children("a").hover(function(){&lt;br /&gt;   //store initial link colour&lt;br /&gt;   if ($(this).attr("rel") == "") {&lt;br /&gt;    $(this).attr("rel", $(this).css("color"));&lt;br /&gt;   }&lt;br /&gt;   //fade in the background&lt;br /&gt;   $(this).parent().children("div")&lt;br /&gt;    .stop()&lt;br /&gt;    .css({"display": "none", "opacity": "1"})&lt;br /&gt;    .fadeIn("fast");&lt;br /&gt;   //fade the colour&lt;br /&gt;   $(this) .stop()&lt;br /&gt;    .css({"color": $(this).attr("rel")})&lt;br /&gt;    .animate({"color": hoverColour}, 350);&lt;br /&gt;  },function(){&lt;br /&gt;   //fade out the background&lt;br /&gt;   $(this).parent().children("div")&lt;br /&gt;    .stop()&lt;br /&gt;    .fadeOut("slow");&lt;br /&gt;   //fade the colour&lt;br /&gt;   $(this) .stop()&lt;br /&gt;    .animate({"color": $(this).attr("rel")}, 250);&lt;br /&gt;  });&lt;br /&gt; });&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;So basically, what happens is;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;A hover colour is declared&lt;/li&gt;&lt;li&gt;When the DOM has loaded…&lt;/li&gt;&lt;li&gt;A subDiv is appended to the hoverBtn div&lt;/li&gt;&lt;li&gt;    On the hover event of the link:&lt;br /&gt;The initial colour is stored within the link’s rel attribute&lt;br /&gt;The subDiv’s animation is stopped&lt;br /&gt;It is hidden and then set to fade in&lt;br /&gt;The link’s animation is stopped&lt;br /&gt;It’s colour reset and set to fade to the hover colour   &lt;/li&gt;&lt;li&gt;    On the hover event’s call-back:&lt;br /&gt;The subDiv’s animation is stopped&lt;br /&gt;It is then set to fade out&lt;br /&gt;The link’s animation is stopped&lt;br /&gt;It is then set to fade to it’s initial colour   &lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;Further developments&lt;/h3&gt;You could try to improve this by dynamically loading the containing div. Which might also involve setting the containing div’s size to that of the anchor element.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-6512963860472224815?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/6512963860472224815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/color-fading-menu-with-jquery.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6512963860472224815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6512963860472224815'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/color-fading-menu-with-jquery.html' title='Color Fading Menu with jQuery'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-6613095975996700919</id><published>2009-12-15T03:21:00.000-08:00</published><updated>2009-12-15T03:24:26.645-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jquery'/><title type='text'>Fully Executing jQuery Animations Without Queuing</title><content type='html'>It is pretty common when using jQuery’s .animate() function that it is triggered by a mouseEnter or hover event. That’s all well and good, but it means that we need account for those events being triggered multiple times. If the element with the hover event attached is hovered over multiple times, that means the animation will be fired of several times, which is typically undesirable. The standard way to deal with this is using the &lt;a href="http://docs.jquery.com/Effects/stop"&gt;.stop() function&lt;/a&gt;, like:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code class="javascript"&gt;$(this).stop().animate({ width: "200px" });&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code class="javascript"&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;This is definitely not the cure-all solution though. So let’s explore.&lt;br /&gt;&lt;span id="more-4911"&gt;&lt;/span&gt;&lt;br /&gt;We already know that &lt;b&gt;not&lt;/b&gt; using .stop() is problematic, because then the animations queue up and it is kind of awkward with multiple quick hovers. But not using .stop() is also kind of perfect in a way, because the mouseEnter animation and mouseLeave animation execute completely and sequentially. It is that smoothness that I am after here, only without the queuing.&lt;br /&gt;&lt;br /&gt;Using .stop() prevents the queuing, &lt;b&gt;but it also prevents the animations from completing a full cycle.&lt;/b&gt; Mouse off, the stop function fires, and stops the animation that triggered on mouseEnter and begins the animation resetting things.&lt;br /&gt;&lt;br /&gt;The first thing I started messing with was in using .stop() prior to only one or the other of the animations, but that doesn’t help much. The .stop() function also has some parameters you can pass, the second of which dictates if the animation should be forced to complete first. If set to true, the animation will indeed finish, but it doesn’t do so smoothly, it jerks to it’s final state, which I find generally undesirable.&lt;br /&gt;The solution lies in &lt;b&gt;not beginning&lt;/b&gt; a new animation until the state of the element is not being animated. In that way, you don’t even need to worry about queuing, because only one animation can be running at a time anyway. There are a couple of ways to get there, but this I found the cleanest:&lt;br /&gt;&lt;pre&gt;&lt;code class="javascript"&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code class="javascript"&gt;$("div").hover(function(){&lt;br /&gt;    $(this).filter(':not(:animated)').animate({ width: "200px" });&lt;br /&gt;}, function() {&lt;br /&gt;    $(this).animate({ width: "100px" });&lt;br /&gt;});&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code class="javascript"&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;There was plenty of ideas on the journey here. Check out the demo below to see all the different options I went through, as well as an additional method that also works&lt;br /&gt;&lt;br /&gt;http://css-tricks.com/examples/jQueryStop/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-6613095975996700919?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/6613095975996700919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/fully-executing-jquery-animations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6613095975996700919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6613095975996700919'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/fully-executing-jquery-animations.html' title='Fully Executing jQuery Animations Without Queuing'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-290196181320502357</id><published>2009-12-08T12:24:00.000-08:00</published><updated>2009-12-08T12:27:02.258-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Marketing'/><title type='text'>Know The Right Approach To PR For You</title><content type='html'>&lt;img alt="ist2 2056823 be heard 300x199 Know The Right Approach To PR For You" border="0" class="alignleft size-medium wp-image-1999" height="199" src="http://abdulvasi.com/wp-content/uploads/2009/12/ist2_2056823-be-heard-300x199.jpg" title="ist2_2056823-be-heard" width="300" /&gt;&lt;br /&gt;&lt;br /&gt;Public relations is a volatile subject.As an entrepreneur you have to take great pains to ensure that you always maintain and uphold a good image. You have to ensure that your reputation as a good business is always preserved as that singularly determines the fate of your business. Nowadays the competition has gotten so fierce that you cannot rely on your own amateur skills to help you with your Public Relations activities. You need to enlist the help of professionals to chart a good PR strategy for you. You have to be absolutely clear as to what approach you want to take,regarding your PR. Here are a few things to keep in mind while selecting your PRF firm :&lt;br /&gt;1) &lt;b&gt;Know what you want&lt;/b&gt; : First, gather a clear picture of what you want in terms of publicity and public relations. Don’t leave any aspect vague.Every little detail should be absolutely clear in your mind. Now,do some research and see which other firm will be best suited to your needs.&lt;br /&gt;2)&lt;b&gt; Be realsitic &lt;/b&gt;: Keep in mind that a PR firm can only help you maintain you image or strive towards building a better one for yourself. It cannot erase a bad name or magically repair your reputation. Also,you can’t hope to cover up your mistakes etc. by enlisting a PR firm.&lt;br /&gt;3) &lt;b&gt;Geographical consideration&lt;/b&gt; : If you are lookin for nation wide publicity or a wider reach then you can select whichever firm you prefer.It’s geographical location need not matter.However,if you want to focus only on local publicity it is definitely more advisable to hire a firm based in the same area as your business.&lt;br /&gt;&lt;br /&gt;4) &lt;b&gt;Make your PR team a part of your core team&lt;/b&gt; : Include your PR team in your core team.Your PR firm should have a clear understanding of your business and should be in constant communication with you.Also,you should consider the suggestions made the PR team regarding any strategic decisions.This will lead to a healthy relationship between your business and the PR firm and this is instrumental in helping the business grow.&lt;br /&gt;You should aim at creating a certain image of your business in the public eye and with the help of your PR firm,work towards realising that image.You image and reputation together will help your customers to feel secure about working with you and inspire trust and faith.This way you will retain all your old customers and develop a loyal following and also be able to attract new ones,thus spurring your business forward.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-290196181320502357?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/290196181320502357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/know-right-approach-to-pr-for-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/290196181320502357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/290196181320502357'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/know-right-approach-to-pr-for-you.html' title='Know The Right Approach To PR For You'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-7745240769005048425</id><published>2009-12-08T12:22:00.000-08:00</published><updated>2009-12-08T12:27:34.938-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Marketing'/><title type='text'>Why PR Is Good For You</title><content type='html'>Public relations,as the name suggests means the relationship you share with the public.In toady’s times, I’d say that PR is one of the most important areas for anyone to concentrate on, especially if you have a certain image in society in the market as a business owner and I’m sure you recognize this need well but for the unconvinced, here are some strong,powerful reasons that tell you why PR is good for you:&lt;br /&gt;&lt;br /&gt;1) Your image: Public relations is not something you can afford to neglect. Infact, try and use your PR skills to promote any special events such as openings etc. and try to establish an image of your business in the public eye.&lt;br /&gt;&lt;br /&gt;2) Community service: As a responsible, mature business it is your duty to give back to the community. Join networks or charities associated with your industry or business and try to always stay in the loop.&lt;br /&gt;&lt;br /&gt;3) Use the news: By implementing a good media policy you can earn third party credibility by sending the media new releases etc. However, make sure you have something definite to say and keep your news release short and sweet.&lt;br /&gt;&lt;br /&gt;4) Sponsorship: You could sponsor some kind of a public service announcement for a charity in your area or maybe even financially aid students. There are several other ways though, to earn some recognition and to consolidate your reputation. try and be creative and come up with some new, innovative ideas to serve society.&lt;br /&gt;&lt;br /&gt;If you feel that your PR skills are not upto the mark, do not hesitate to rope in professionals. You will get expert services and have a well-constructed PR strategy customized for your company, keeping all your goals, ideals, principles etc. in mind. A good PR strategy, in my opinion, is like a long-term investment. A good reputation takes a long time to build but once it’s done, it makes it all worth it. Adopt a good PR strategy and learn to please everybody to improve your own sales.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-7745240769005048425?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/7745240769005048425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/why-pr-is-good-for-you.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/7745240769005048425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/7745240769005048425'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/why-pr-is-good-for-you.html' title='Why PR Is Good For You'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-5430009872953993766</id><published>2009-12-08T12:19:00.001-08:00</published><updated>2009-12-08T12:19:53.677-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>CSS Builder - Brand New Meta Titan Tool</title><content type='html'>You’ve seen it done in programs like Adobe Dreamweaver, but believe it or not, there aren’t a whole lot of decent CSS generators in the flavor of my new tool (that I could find with a thorough Google search at least).&lt;br /&gt;&lt;br /&gt;The Meta Titan CSS Builder provides a human readable interface for generating your selector (class/id/tag) code with valid syntax on the fly. Fill out the form, press build, copy the code, paste it into your stylesheet. I believe it will improve your productivity, especially if you’re a beginner / intermediate user and haven’t memorized all of the property names and appropriate values.&lt;br /&gt;&lt;br /&gt;Give it a try, and a bookmark - click here!&lt;br /&gt;&lt;br /&gt;This is the product of about 1 weeks worth of casual coding. I’m planning a version 2 that cleans up the interface a bit, and I’ll be taking suggestions on what I can approve.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-5430009872953993766?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/5430009872953993766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/css-builder-brand-new-meta-titan-tool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/5430009872953993766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/5430009872953993766'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/css-builder-brand-new-meta-titan-tool.html' title='CSS Builder - Brand New Meta Titan Tool'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-1370573728688167453</id><published>2009-12-08T12:09:00.001-08:00</published><updated>2009-12-08T12:09:24.678-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Show/Hide Content With CSS &amp; Javascript</title><content type='html'>&lt;br /&gt;My apologies for the recent lack of updates and the briefness of this post, things have been (and still are) really busy on my end. Anyway, when building websites for my clients a popular request is to have content that can be toggled by the user. Today I’ll show you have to have this effect done really quickly. Although this method does not support persistence (saving cookies to the users browser to remember what they have hidden/shown), I’m sure there are some who will find it useful.&lt;br /&gt;&lt;br /&gt;Place this code in your &lt;head&gt; tags.&lt;br /&gt;&lt;script type="text/javascript"&gt;function shToggle(content) {  if (document.getElementById(content).style.display == "none")    document.getElementById(content).style.display = "block"  else    document.getElementById(content).style.display = "none"}&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;Now you can effectively show/hide content by placing id=”elementname” style=”display:none;” inside the element tag you wish to be toggle-able, and onclick=”shToggle(’elementname‘); return false;” inside the link code of the image or text the user clicks to toggle it. You can see a live example of it on this page, or simply look at the example code snippet below.&lt;br /&gt;&lt;strong&gt;What’s the name of Calgary’s NHL Team?&lt;/span&gt;&lt;br /&gt;&lt;a href="javascript:void(0);" onclick="shToggle(’calgary’); return false;"&gt;show/hide answer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div id="calgary" style="display:none;"&gt;The Calgary Flames&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-1370573728688167453?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/1370573728688167453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/showhide-content-with-css-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1370573728688167453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1370573728688167453'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/showhide-content-with-css-javascript.html' title='Show/Hide Content With CSS &amp; Javascript'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-5506930155873203565</id><published>2009-12-08T12:07:00.001-08:00</published><updated>2009-12-08T12:07:31.770-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>Classes vs IDs, CSS Practice</title><content type='html'>A good use of classes and IDs can save you a lot of time. You’ll end up with a site that’s easy to maintain, and frankly, your code will look a lot cleaner. There are certain rules and practices when using classes and IDs, the following guide looks over them.&lt;br /&gt;&lt;br /&gt;First off, what defines an ID and a class? Simply put, an ID is a unique identifier and should only be used once in your document. It’s good practice to use ID on structural blocks of your site such as a wrapper, header, footer, navigation bar, etc. A class can be used more broadly to define objects that can appear multiple times in your document, such as link styling, tables, etc.&lt;br /&gt;&lt;br /&gt;Example usage of an ID:&lt;br /&gt;&lt;br /&gt;In your html code:&lt;br /&gt;&lt;div id=”mainWrapper”&gt;content&lt;/div&gt;&lt;br /&gt;In your stylesheet:&lt;br /&gt;div#mainWrapper { margin: 10px 30px; }&lt;br /&gt;&lt;br /&gt;Example usage of a Class:&lt;br /&gt;&lt;br /&gt;In your html code:&lt;br /&gt;&lt;span class=”test”&gt;Hello, World&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In your stylesheet:&lt;br /&gt;span.test { color: #003366; font-weight: 900; }&lt;br /&gt;&lt;br /&gt;When naming your classes and IDs, try and use generic and easy to identify names. For example, instead of calling something “yellowBar” try “topSidebar”. Who knows what color that bar will be 6 months from now! Also, pick a naming style that you’re comfortable with and stick to it - either lowercase (#helloworld) or camel case (#helloWorld) - you should never use spacing in names.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-5506930155873203565?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/5506930155873203565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/classes-vs-ids-css-practice.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/5506930155873203565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/5506930155873203565'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/classes-vs-ids-css-practice.html' title='Classes vs IDs, CSS Practice'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-1764021587177924344</id><published>2009-12-08T11:57:00.001-08:00</published><updated>2009-12-08T11:57:42.099-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to Tar / Untar From the Command Line</title><content type='html'>A simple guide for those who are as helpless on the Linux command line as I am. When managing websites, you’ll often need to compact, move and extract a large number of files, here’s how to do it on your Linux box.&lt;br /&gt;&lt;br /&gt;Initial Steps&lt;br /&gt;First SSH into your web server and move to the directory of the files you wish to tar up, since tarring an absolute path will save the folder structure as well which is bad (ie: /home/yoursite/public_html/backupthis/ will save the folders home -&gt; yoursite -&gt; public_html -&gt; backupthis). You can get to the folder you need to by typing:&lt;br /&gt;cd /path/to/your/stuff&lt;br /&gt;&lt;br /&gt;Creating a Tar&lt;br /&gt;Now that we’re at the directory we want to tar, or the sub-directory, you can do one of two commands depending on what you need.&lt;br /&gt;&lt;br /&gt;If you want to save every file / folder in your current location into a file called backup.tar.&lt;br /&gt;tar -cvf backup.tar *&lt;br /&gt;&lt;br /&gt;If you want to save a tar named backup.tar with the folder “somefolder” and its contents.&lt;br /&gt;tar -cvf backup.tar somefolder/&lt;br /&gt;&lt;br /&gt;You can test/view your tars with the following command:&lt;br /&gt;tar -tvf backup.tar&lt;br /&gt;&lt;br /&gt;Extracting the Tar&lt;br /&gt;When you need to extract that tar, the following command will be suffice:&lt;br /&gt;tar -xvf backup.tar&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-1764021587177924344?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/1764021587177924344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-tar-untar-from-command-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1764021587177924344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1764021587177924344'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-tar-untar-from-command-line.html' title='How to Tar / Untar From the Command Line'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-6829119172614862522</id><published>2009-12-08T11:55:00.002-08:00</published><updated>2009-12-08T11:55:49.866-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>How to Display Server Load in PHP</title><content type='html'>As the inaugural post on my new blog, I figured I’d start with something I put to good use today. When developing a PHP application or monitoring a web server, it’s important to know what your server load is to properly identify that there is a problem. This can be achieved through most control panel software (like WHM) or by typing in “uptime” in your SSH command prompt.&lt;br /&gt;&lt;br /&gt;For those interested, there is a very easy way to output your load in PHP using the exec function. See the code below.&lt;br /&gt;$load = exec(”uptime”);&lt;br /&gt;$load = split(”load average:”, $load);&lt;br /&gt;$load = split(”, “, $load[1]);&lt;br /&gt;$load = $load[0];&lt;br /&gt;echo “Current Load: $load”;&lt;br /&gt;&lt;br /&gt;Place that snippet wherever you want in your PHP application to output the current server load. If you want to display something like “03:55:48 up 49 days, 13:36, 0 users, load average: 0.04, 0.12, 0.10″ instead of just “0.04″, you can delete lines 2-4 of the code.&lt;br /&gt;&lt;br /&gt;Of course, since “uptime” is a Unix command this won’t work on Windows servers, and from what I understand, there’s no easy solution for those users.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-6829119172614862522?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/6829119172614862522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-display-server-load-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6829119172614862522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6829119172614862522'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-display-server-load-in-php.html' title='How to Display Server Load in PHP'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-4093694142868299781</id><published>2009-12-08T11:55:00.000-08:00</published><updated>2009-12-08T11:55:06.993-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>How to Protect Your PHP Code With EncryptionHow to Protect Your PHP Code With Encryption</title><content type='html'>This was an article I wrote for Web Hosting Talk back in April 2004. I’ve made a few revisions to it and felt it would be worthwhile to share here as well.&lt;br /&gt;&lt;br /&gt;This guide is intended for programmers who frequently take on freelance projects, those contracted over the internet by strangers to make a PHP script. Due to the nature of the web, it’s very easy to get scammed in this exchange, and there usually isn’t much you can do about it if it happens. Luckily for you, you’re 1 step ahead of the scammers by reading this guide before you sent them your script (hopefully).&lt;br /&gt;&lt;br /&gt;Scenario: You are paid $1,500 to write a PHP script for Joe Montana. Joe pays you, you send him the script, all is well, until Joe reverses the charges, leaves you out in the cold while you just wasted several weeks and he gets a free script. Now you have to stress yourself with tracking him down to press charges, which most of the time never happens. Debating intangibles over the internet is a sticky situation for the seller, aka service provider, aka you. I just read the same story on another forum, which is all too common, and this prompted me to share this with hopes of protecting your time and profit.&lt;br /&gt;&lt;br /&gt;Step 1&lt;br /&gt;Open the file that is critical to the script’s operation and won’t require modifications by the client at any point in time. You’ll want to pick a file that if you take it out of the picture, it will cripple the operation of his script.&lt;br /&gt;&lt;br /&gt;Step 2&lt;br /&gt;Paste this snippet at the top of the file, before the script’s operations are run.&lt;br /&gt;&lt;br /&gt;$lines = file('http://www.example.com/joemontana.txt');&lt;br /&gt;foreach ($lines as $line_num =&gt; $line) {&lt;br /&gt;$license = htmlspecialchars($line);&lt;br /&gt;if ($license == "invalid") {&lt;br /&gt;exit("License Invalid - Please contact THECOMPANY");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Now do the following:&lt;br /&gt;- Create a .txt file, call it something unique, preferably the name of the project/client.&lt;br /&gt;- Upload the .txt file somewhere accessible from the web, preferably on your server where only you can write to it.&lt;br /&gt;- On Line 1 of the code above: Change example.com/joemontana.txt to your website and path to the text file you uploaded.&lt;br /&gt;- On Line 5 of the code above: Change YOURCOMPANY to its respective variable. You can edit this message to say whatever you want.&lt;br /&gt;&lt;br /&gt;Now if at any time you have a reason to disable his script, all you need to do is open that text file, and type the word: invalid&lt;br /&gt;&lt;br /&gt;After you save that file, his script will not function. This method is safe for your client; if your server is down, the file doesn’t exist, or anything other than the word “invalid” is in the document, it will function properly.&lt;br /&gt;&lt;br /&gt;Step 3&lt;br /&gt;Now you’re thinking, “That’s good Matt, but what if the client isn’t an idiot and he goes in and deletes my protection”. This is where encoding comes into play. Pick your favorite one, if you don’t have one in mind, I suggest IonCube. Encrypting a file with them through their Online Encoder costs 50 cents, which is peanuts when you consider the sheer satisfaction you’ll receive if a client does scam you and you’re able to pull the rug from under them.&lt;br /&gt;&lt;br /&gt;After your file is encrypted, open it up in a text editor, you should see a bunch of nonsensical data in there. Pack it up and ship it to your client! It’s important to remember that you’re not safe from being scammed, always exercise caution when doing business over the Internet. You’ll at least have a lot more control over the situation using these methods.&lt;br /&gt;&lt;br /&gt;I suggest that you inform your client that you will be encrypting the file. Include instructions and offer to install the IonCube loaders on their server. Make sure to tell them to upload the encrypted file in BINARY mode, as it will not work otherwise. You should send them the unencrypted file after a couple months from their payment (or whenever you feel it has fully cleared and you’re safe) for their convenience, people don’t like being under the gun forever.&lt;br /&gt;&lt;br /&gt;These instructions are provided without warranty. Any damage or loss, yadda yadda yadda *insert long disclaimer here*, is your own fault.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-4093694142868299781?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/4093694142868299781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-protect-your-php-code-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/4093694142868299781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/4093694142868299781'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-protect-your-php-code-with.html' title='How to Protect Your PHP Code With EncryptionHow to Protect Your PHP Code With Encryption'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-249866653136042077</id><published>2009-12-08T11:52:00.000-08:00</published><updated>2009-12-08T11:56:14.688-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>How to Check Link Popularity in Google &amp; Yahoo With PHP</title><content type='html'>Everyone knows that the best traffic you can get is organic, meaning people who come to your site naturally with genuine interest. Search engines like Google &amp;amp; Yahoo are notorious for placing a high value on the amount of websites that are linking to you. While their algorithms haven’t been completely unraveled yet, SEO specialists have a pretty good idea of how to make your site rank higher, and it usually starts with link building (assuming you have quality content first of course!). &lt;br /&gt;The amount of links your site has indexed in Google &amp;amp; Yahoo can change often, so checking can be an arduous task. Luckily there are a ton of tools out there for this, but you’re not here for that, are you? You’re here because you want the code to run your own service, or maybe you want your own local copy of it, or maybe you just want to see how it works. The script below will check your backlinks in Google and Yahoo, as well as your Alexa rating. Feel free to modify and redistribute (non-commercially) as you see fit.&lt;br /&gt;&lt;a href="http://www.metatitan.com/files/linkcheck.php"&gt;Live Demo&lt;/a&gt; | &lt;a href="http://www.metatitan.com/files/linkcheck.phps"&gt;View Source Online&lt;/a&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt;// Setting the URL variable&lt;br /&gt;$link = $_GET['url']; &lt;br /&gt;// Google Backlinks&lt;br /&gt;function fetch_google($uri) {&lt;br /&gt;$uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri));&lt;br /&gt;$url = 'http://www.google.com/search?hl=en&amp;amp;lr=&amp;amp;ie=UTF-8&amp;amp;q=link:'.$uri;&lt;br /&gt;$v = file_get_contents($url);&lt;br /&gt;preg_match('/of about \&lt;b\&gt;(.*?)\&amp;lt;\/b\&amp;gt;/si',$v,$r);&lt;br /&gt;return ($r[1]) ? $r[1] : '0';&lt;br /&gt;}&lt;/b\&gt;&lt;br /&gt;// Yahoo Inlinks&lt;br /&gt;function fetch_yahoo($uri) {&lt;br /&gt;$uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri));&lt;br /&gt;$url = 'http://siteexplorer.search.yahoo.com/search?p=http://'.$uri.'&amp;amp;bwm=i&amp;amp;bwmf=s&amp;amp;bwmo=&amp;amp;fr2=seo-rd-se';&lt;br /&gt;$v = file_get_contents($url);&lt;br /&gt;preg_match('/of about \&lt;strong\&gt;(.*?) \&amp;lt;\/strong\&amp;gt;/si',$v,$r);&lt;br /&gt;return ($r[1]) ? $r[1] : '0';&lt;br /&gt;}&lt;/strong\&gt;&lt;br /&gt;// Alexa Rating&lt;br /&gt;function fetch_alexa($uri){&lt;br /&gt;$uri = trim(eregi_replace('http://', '', $uri)); $uri = trim(eregi_replace('http', '', $uri));&lt;br /&gt;$url = 'http://data.alexa.com/data?cli=10&amp;amp;dat=snbamz&amp;amp;url=' . urlencode($uri);&lt;br /&gt;$v = file_get_contents($url);&lt;br /&gt;preg_match('/\&lt;popularity \="" text\="([0-9]+)" url\="(.*?)"&gt;/si', $v, $r);&lt;br /&gt;return ($r[2]) ? $r[2] : '0';&lt;br /&gt;} &lt;/popularity&gt;&lt;br /&gt;// Page Header&lt;br /&gt;echo "&lt;br /&gt;&lt;h2&gt;Search Engine Popularity&lt;/h2&gt;"; // Display Links and Information&lt;br /&gt;if (isset($link)) {&lt;br /&gt;echo "&lt;strong&gt;URL:&lt;/strong&gt; " . $link . "&lt;br /&gt;";&lt;br /&gt;echo "&lt;strong&gt;Google Backlinks:&lt;/strong&gt; " . fetch_google($link) . "&lt;br /&gt;";&lt;br /&gt;echo "&lt;strong&gt;Yahoo Backlinks:&lt;/strong&gt; " . fetch_yahoo($link) . "&lt;br /&gt;";&lt;br /&gt;echo "&lt;strong&gt;Alexa Rating:&lt;/strong&gt; " . fetch_alexa($link) . "&lt;br /&gt;";&lt;br /&gt;}&lt;br /&gt;// Search Form&lt;br /&gt;echo "&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;form action="\&amp;quot;linkcheck.php\&amp;quot;" method="\&amp;quot;get\&amp;quot;"&gt;&lt;br /&gt;&lt;input name="\&amp;quot;url\&amp;quot;" type="\&amp;quot;text\&amp;quot;" /&gt;&lt;br /&gt;&lt;input type="\&amp;quot;submit\&amp;quot;" /&gt;&lt;br /&gt;&lt;/form&gt;"; ?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-249866653136042077?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/249866653136042077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-check-link-popularity-in-google.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/249866653136042077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/249866653136042077'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-check-link-popularity-in-google.html' title='How to Check Link Popularity in Google &amp; Yahoo With PHP'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-1181317872844589654</id><published>2009-12-08T11:50:00.000-08:00</published><updated>2009-12-08T11:50:04.270-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>How to Calculate PHP Load Times</title><content type='html'>&lt;div class="storycontent"&gt;   Here’s a popular request amongst those who are learning PHP. When developing PHP applications, it’s good practice to benchmark your pages to see if you need to further optimize your code. The following snippet will show you how much time it took your server to process your PHP document.&lt;br /&gt;&lt;br /&gt;Insert this at or near the top of your PHP file.&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="re0"&gt;$m_time&lt;/span&gt; = &lt;a href="http://www.php.net/explode"&gt;&lt;span class="kw3"&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0"&gt;" "&lt;/span&gt;,&lt;a href="http://www.php.net/microtime"&gt;&lt;span class="kw3"&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span class="re0"&gt;$m_time&lt;/span&gt; = &lt;span class="re0"&gt;$m_time&lt;/span&gt;&lt;span class="br0"&gt;[&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;]&lt;/span&gt; + &lt;span class="re0"&gt;$m_time&lt;/span&gt;&lt;span class="br0"&gt;[&lt;/span&gt;&lt;span class="nu0"&gt;1&lt;/span&gt;&lt;span class="br0"&gt;]&lt;/span&gt;;&lt;br /&gt;&lt;span class="re0"&gt;$loadstart&lt;/span&gt; = &lt;span class="re0"&gt;$m_time&lt;/span&gt;;&lt;/div&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;Now place this snippet at or near the bottom of your file for the best results.&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="re0"&gt;$m_time&lt;/span&gt; = &lt;a href="http://www.php.net/explode"&gt;&lt;span class="kw3"&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0"&gt;" "&lt;/span&gt;,&lt;a href="http://www.php.net/microtime"&gt;&lt;span class="kw3"&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span class="re0"&gt;$m_time&lt;/span&gt; = &lt;span class="re0"&gt;$m_time&lt;/span&gt;&lt;span class="br0"&gt;[&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;]&lt;/span&gt; + &lt;span class="re0"&gt;$m_time&lt;/span&gt;&lt;span class="br0"&gt;[&lt;/span&gt;&lt;span class="nu0"&gt;1&lt;/span&gt;&lt;span class="br0"&gt;]&lt;/span&gt;;&lt;br /&gt;&lt;span class="re0"&gt;$loadend&lt;/span&gt; = &lt;span class="re0"&gt;$m_time&lt;/span&gt;;&lt;br /&gt;&lt;span class="re0"&gt;$loadtotal&lt;/span&gt; = &lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$loadend&lt;/span&gt; - &lt;span class="re0"&gt;$loadstart&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;a href="http://www.php.net/echo"&gt;&lt;span class="kw3"&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span class="st0"&gt;"&lt;small&gt;&lt;em&gt;Generated page in "&lt;/em&gt;&lt;/small&gt;&lt;/span&gt;&lt;small&gt;&lt;em&gt;. &lt;a href="http://www.php.net/round"&gt;&lt;span class="kw3"&gt;round&lt;/span&gt;&lt;/a&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$loadtotal&lt;/span&gt;,&lt;span class="nu0"&gt;3&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt; .&lt;span class="st0"&gt;" seconds&lt;/span&gt;&lt;/em&gt;&lt;/small&gt;";&lt;/div&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;That’s it! I suggest adding this while you develop any PHP application, and include it even after the launch, so that you can see how well your scripts scale with the traffic you receive.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-1181317872844589654?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/1181317872844589654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-calculate-php-load-times.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1181317872844589654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/1181317872844589654'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-calculate-php-load-times.html' title='How to Calculate PHP Load Times'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-3176200400944861779</id><published>2009-12-08T11:48:00.000-08:00</published><updated>2009-12-08T11:48:46.655-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>How to Build a Scraper Using PHP &amp; cURL</title><content type='html'>&lt;div class="storycontent"&gt;   Use the following knowledge at your own risk, scraping content is a pretty gray area. For this guide you will need &lt;a href="http://www.mozilla.com/firefox/"&gt;FireFox&lt;/a&gt; and the &lt;a href="http://getfirebug.com/"&gt;Firebug&lt;/a&gt; extension. You’ll also need PHP installed with the cURL module.&lt;br /&gt;For this example we’ll be grabbing the counters for “bloggers, new posts and words today” from &lt;a href="http://wordpress.com/"&gt;WordPress.com&lt;/a&gt;. Let’s start off by creating a function to fetch the html contents of a webpage using cURL.&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="kw2"&gt;function&lt;/span&gt; getDocument&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$url&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span class="br0"&gt;{&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="re0"&gt;$ch&lt;/span&gt; = curl_init&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_USERAGENT, &lt;span class="st0"&gt;‘Googlebot/2.1 (http://www.googlebot.com/bot.html)’&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_URL,&lt;span class="re0"&gt;$url&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_FAILONERROR, &lt;span class="kw2"&gt;true&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_FOLLOWLOCATION, &lt;span class="kw2"&gt;true&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_AUTOREFERER, &lt;span class="kw2"&gt;true&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_RETURNTRANSFER,&lt;span class="kw2"&gt;true&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl_setopt&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;, CURLOPT_TIMEOUT, &lt;span class="nu0"&gt;10&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="re0"&gt;$html&lt;/span&gt; = curl_exec&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$ch&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span class="kw1"&gt;return&lt;/span&gt; &lt;span class="re0"&gt;$html&lt;/span&gt;;&lt;br /&gt;&lt;span class="br0"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="br0"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;We’ll be disguising ourselves as Googlebot. You can find a list of user agents to use at &lt;a href="http://www.user-agents.org/"&gt;http://www.user-agents.org/&lt;/a&gt;. Next we’ll create a DOM object out of the raw html code.&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="re0"&gt;$html&lt;/span&gt; = &lt;span class="re0"&gt;$this&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;getDocument&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0"&gt;‘http://wordpress.com’&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span class="re0"&gt;$dom&lt;/span&gt; = &lt;span class="kw2"&gt;new&lt;/span&gt; DOMDocument&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;; &lt;br /&gt;@&lt;span class="re0"&gt;$dom&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;loadHtml&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$html&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;Note the @, this eliminates any errors that might (and most likely will) get output due to the website not following html coding standards. Next, we will use FireBug to find the XPath of what you want to scrape. Right click on what you want to scrape and click “Inspect Element”. FireBug will pop up with the code highlighted. At the time of this blog post this is what pops up:&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="sc2"&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;&lt;span class="kw2"&gt;&lt;h6&gt;&lt;br /&gt;&lt;span class="sc2"&gt;&lt;a href="http://december.com/html/4/element/span.html"&gt;&lt;span class="kw2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;204,045&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;bloggers,&lt;br /&gt;&lt;span class="sc2"&gt;&lt;a href="http://december.com/html/4/element/span.html"&gt;&lt;span class="kw2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;133,640&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;new posts,&lt;br /&gt;&lt;span class="sc2"&gt;&lt;a href="http://december.com/html/4/element/span.html"&gt;&lt;span class="kw2"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;34,374,943&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;words today.&lt;br /&gt;&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h6&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="sc2"&gt;&lt;span class="kw2"&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;h6 is the container of the content we want to scrape, thus the xpath of the h6 tag is what we want. Right click on the h6 tag inside FireBug and click “Copy XPath”. This saves something like “/html/body/div/div[2]/div[2]/h6″ to our clipboard. So we’ll add the following to our code:&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="re0"&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;$xpath&lt;/a&gt;&lt;/span&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt; = &lt;span class="kw2"&gt;new&lt;/span&gt; DOMXPath&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0"&gt;$dom&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;; &lt;br /&gt;&lt;span class="re0"&gt;$content&lt;/span&gt; = &lt;span class="re0"&gt;$xpath&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;query&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0"&gt;"/html/body/div/div[2]/div[2]/h6"&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;&lt;strong&gt;Note: &lt;/strong&gt; If your xpath contains any ‘tbody’, remove them from the path.&lt;/a&gt;&lt;br /&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;The span tags with our desired content is now accessible through $content-&amp;gt;item(0)-&amp;gt;childNodes - You can chose to iterate through this if the list, or for simple uses like our example you can call the child item directly like so:&lt;/a&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt; &lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;span class="kw3"&gt;&lt;a href="http://december.com/html/4/element/h6.html"&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;&lt;a href="http://www.php.net/echo"&gt;&lt;span class="kw3"&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span class="st0"&gt;‘Bloggers: ‘&lt;/span&gt; . &lt;span class="re0"&gt;$content&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;item&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;childNodes&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;item&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;nodeValue&lt;/span&gt; . &lt;span class="st0"&gt;‘&lt;br /&gt;’&lt;/span&gt;;&lt;br /&gt;&lt;a href="http://www.php.net/echo"&gt;&lt;span class="kw3"&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span class="st0"&gt;‘New Posts: ‘&lt;/span&gt; . &lt;span class="re0"&gt;$content&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;item&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;childNodes&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;item&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0"&gt;2&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;nodeValue&lt;/span&gt; . &lt;span class="st0"&gt;‘&lt;br /&gt;’&lt;/span&gt;;&lt;br /&gt;&lt;a href="http://www.php.net/echo"&gt;&lt;span class="kw3"&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span class="st0"&gt;‘Words Today: ‘&lt;/span&gt; . &lt;span class="re0"&gt;$content&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;item&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0"&gt;0&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;childNodes&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;item&lt;/span&gt;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0"&gt;4&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;-&amp;gt;&lt;span class="me1"&gt;nodeValue&lt;/span&gt;;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;To get the most out of this technique you should brush up your knowledge of the &lt;a href="http://ca.php.net/dom"&gt;Document Object Model&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-3176200400944861779?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/3176200400944861779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-build-scraper-using-php-curl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/3176200400944861779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/3176200400944861779'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-build-scraper-using-php-curl.html' title='How to Build a Scraper Using PHP &amp; cURL'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-2218695024979831104</id><published>2009-12-08T11:46:00.000-08:00</published><updated>2009-12-08T11:46:44.878-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Protecting Your PHP/MySQL Queries from SQL Injection</title><content type='html'>SQL injection is a serious concern for webmasters, as an experienced attacker can use this hacking technique to gain access to sensitive data and/or potentially cripple your database. If you haven’t secured your applications, I implore you to get yourself familiar with the following method and grind it into your coding routine. One unsafe query can result in a nightmare for you or your client.&lt;br /&gt;I’ve read through a lot of guides, and they tend to over complicate this, so I’ll be as straight forward as possible. In PHP the easiest way is to pass your data through the &lt;a href="http://www.php.net/mysql_real_escape_string"&gt;mysql_real_escape_string&lt;/a&gt; function. By escaping special characters on fields where the user can manipulate the database, you will avoid being vulnerable. Take a look below at the example of what to do and what not to do.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;div class="codesnip-container"&gt;&lt;div class="codesnip" style="font-family: monospace;"&gt;// This is a vulnerable query.&lt;br /&gt;$query = "SELECT * FROM products WHERE name=’$productname’";&lt;br /&gt;&lt;a href="http://www.php.net/mysql_query"&gt;mysql_query&lt;/a&gt;($query); // This query is more secure&lt;br /&gt;$query = &lt;a href="http://www.php.net/sprintf"&gt;sprintf&lt;/a&gt;("SELECT * FROM products WHERE name=’%s’",&lt;br /&gt;&lt;a href="http://www.php.net/mysql_real_escape_string"&gt;mysql_real_escape_string&lt;/a&gt;($productname));&lt;br /&gt;&lt;a href="http://www.php.net/mysql_query"&gt;mysql_query&lt;/a&gt;($query);&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Since I primarily code in PHP, I can’t confidently provide techniques for other programming languages. The most important part of protecting yourself is stopping users from being able to pass unaltered database manipulative special characters, like single quotes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-2218695024979831104?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/2218695024979831104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/protecting-your-phpmysql-queries-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/2218695024979831104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/2218695024979831104'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/protecting-your-phpmysql-queries-from.html' title='Protecting Your PHP/MySQL Queries from SQL Injection'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-961264172907460321</id><published>2009-12-08T11:45:00.000-08:00</published><updated>2009-12-08T11:45:09.591-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>Backing up a MySQL Database Using Cron</title><content type='html'>&lt;div class="storycontent"&gt;   It sure has been awhile since I’ve updated, things have been pretty busy and I just haven’t had time. Anyway, the most important and often overlooked part of running a dynamic MySQL website is backing up your data often. Losing your file system often doesn’t hurt as much as losing all of your content, especially when running a script that’s easily replaceable like vBulletin, Wordpress, etc. Backing up your data can be a chore, so this is the simple method I use for an automated backup of my databases.&lt;br /&gt;1) SSH in your box&lt;br /&gt;2) Open up your crontab, to do this type:&lt;br /&gt;&lt;em&gt;crontab -e&lt;/em&gt;&lt;br /&gt;3) Add the job to your crontab, this is what I use:&lt;br /&gt;&lt;em&gt;30 0 * * * date=`date -I` ; mysqldump -a -u&lt;strong&gt;user&lt;/strong&gt; -p&lt;strong&gt;password&lt;/strong&gt; &lt;strong&gt;dbname&lt;/strong&gt; &amp;gt; &lt;strong&gt;/path/to/dump_$date.sql&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;I’ll break down what’s going on in the above line and what you need to edit &lt;br /&gt;&lt;ul&gt;&lt;li&gt;30 0 * * * - This specifies the interval in which it will backup your data. Minutes, hours, days of the month, months, days of the week, respectively. In my case, I’m going to be running this every day at 12:30 AM. Asterisk out values which you do not need to limit.&lt;/li&gt;&lt;li&gt;user - Enter your mysql username here&lt;/li&gt;&lt;li&gt;password - Enter your mysql password here&lt;/li&gt;&lt;li&gt;It’s important to note that -uuser is not a typo, you need to prefix -u on your username, so if it’s jsmith, you will enter -ujsmith. Same goes for your password.&lt;/li&gt;&lt;li&gt;dbname - Enter the mysql database name which you want to backup&lt;/li&gt;&lt;li&gt;/path/to/dump_$date.sql - Enter the directory you wish to back up your data to, include $date if you want a datestamp on your backup names. Don’t back this up to a web accessible directory as anyone would be able to access your database information and view potentially sensitive data.&lt;/li&gt;&lt;/ul&gt;Once your cron job is up and running you can then use a 3rd party backup service to automatically pull those backups across onto secure networks at set intervals (ie: every day at 12:40 AM). Talk to your hosting provider as many already provide backup services like this. You can also choose to manually download them onto your hard drive if you prefer a most cost effective approach. Just remember to go in weekly or monthly to delete older backups if necessary - those with large databases may eventually max out their hard drive space if left unattended.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-961264172907460321?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/961264172907460321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/backing-up-mysql-database-using-cron.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/961264172907460321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/961264172907460321'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/backing-up-mysql-database-using-cron.html' title='Backing up a MySQL Database Using Cron'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-2528574704969120374</id><published>2009-12-08T11:42:00.000-08:00</published><updated>2009-12-08T11:56:33.197-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>How to Backup and Restore Large Databases in MySQL</title><content type='html'>&lt;div class="storycontent"&gt;Most who use MySQL have a nifty program called PhpMyAdmin. There is a good chance that if you are a user of that program, you’re here because you tried to backup or restore a large database through the web based interface and failed. This is a common situation, lucky for us there’s a very easy, fast, and reliable way to do this through the command line! If you’re a Linux user who has SSH access, follow the steps below.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Backing up the Database&lt;/b&gt;&lt;br /&gt;Fire up SSH and type the following. Replace USER with your MySQL username, DBNAME with the name of the database you want to back up, and /path/to/backupname.sql to where you want the database backup file to be saved (directory must exist).&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;b&gt;mysqldump -a -u USER -p DBNAME &amp;gt; /path/to/backupname.sql&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;You’ll be prompted for your MySQL password. It’ll get to work after you type that in and press enter, it may take a few moments (or longer if your database is really large).&lt;br /&gt;&lt;br /&gt;When you’re returned to the command line you now have a backup file where you specified above. This file is a complete copy of the database at the time you ran the command, the second your MySQL table is updated your backup will be out of date. I suggest you take backups at regular intervals depending on your situation (I will write a guide on how to automatically do backups one day).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Restoring Your Database Backup&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Follow these 3 commands to restore your database easily.&lt;br /&gt;First we need to drop your current database so there are no conflicts when we’re restoring&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;b&gt;mysqladmin -u USER -p drop DBNAME&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Now we’ll remake the database, because it doesn’t exist anymore&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;b&gt;&amp;nbsp;mysqladmin -u USER -p create DBNAME&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;And finally, we’ll populate the fresh new database with your backup file.&lt;br /&gt;&lt;br /&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;b&gt;mysql -u USER -p DBNAME &amp;lt; /path/to/backup.sql&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="codesnip-container" style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;The variables you should change above are pretty straight forward. If you get errors importing your data, it’s most commonly because your max_allowed_packet isn’t set high enough in /etc/my.cnf - if you have root access, you can go in and make that variable higher. If you don’t have root access, seek support from your web host.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-2528574704969120374?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/2528574704969120374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-backup-and-restore-large.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/2528574704969120374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/2528574704969120374'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-backup-and-restore-large.html' title='How to Backup and Restore Large Databases in MySQL'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-4217677806503954944</id><published>2009-12-08T10:02:00.000-08:00</published><updated>2009-12-08T10:13:23.353-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Marketing'/><title type='text'>Five Freelance Branding Tips You Can Use Right Now</title><content type='html'>&lt;p style="text-align: center;"&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=1781214005152132850#"&gt;&lt;img src="http://freelancefolder.com/wp-content/uploads/unique-branding2.jpg" alt="unique-branding" title="unique-branding" class="frame" height="343" width="590" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Can you control what others think of your freelancing business? Do you know how to motivate potential buyers? Have you built customer loyalty?&lt;/p&gt; &lt;p&gt;While these tasks may seem daunting or even impossible, by properly branding your freelance business you can accomplish all of the objectives listed above and more. Good branding effectively communicates what your business is about, motivates buyers, and builds customer loyalty.&lt;/p&gt; &lt;p&gt;In this post, we will introduce you to the concept of branding. We will also identify five quick methods that you can apply right away to improve your brand. Finally, we’ll share some thoughts about branding that you might not have realized before. &lt;/p&gt; &lt;p&gt;&lt;span id="more-5929"&gt;&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;What is Branding?&lt;/h3&gt; &lt;p&gt;Many freelancers associate branding with having an attractive logo, a catchy slogan, or a popular website. There’s much more to branding, though.&lt;/p&gt; &lt;p&gt;Strictly speaking, branding refers to how others perceive your freelancing business. Branding helps your customers and prospective customers realize how your freelancing business is different from every other business that offers similar products or services. &lt;/p&gt; &lt;p&gt;To find your brand message, ask yourself this question — “&lt;em&gt;what is my business really all about?&lt;/em&gt;” Chances are, when you answer this question you will also have a good idea of how to brand your freelancing business.&lt;/p&gt; &lt;p&gt;Now that we understand what branding is, let’s take a look at how a freelancer can build his or her brand.&lt;/p&gt; &lt;h3&gt;Five Branding Tips for Freelancers&lt;/h3&gt; &lt;p&gt;There is so much information available on how to brand a business that branding their freelancing business can seem like an overwhelming task for many freelancers (so much so, that some freelancers who I know don’t bother with branding at all). &lt;/p&gt; &lt;p&gt;It doesn’t have to be that way, though.&lt;/p&gt; &lt;p&gt;Here are five basic steps to help you start branding your freelancing business today:&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;strong&gt;Homework&lt;/strong&gt; — Do your homework. Ask the question above so that you can focus your efforts on what your business is really about. Developing a mission or vision statement is also helpful.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Target&lt;/strong&gt; — Determine who your target market really is and focus your branding efforts primarily towards that group. &lt;/li&gt;&lt;li&gt;&lt;strong&gt;Simple&lt;/strong&gt; — Keep your branding message simple. The simpler the message that you are trying to convey, the better… Long, complex messages tend to confuse customers or get mistranslated.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Consistency&lt;/strong&gt; — Above all, be consistent with the message that you are sending to the public. Sending an inconsistent message will confuse your audience and dilute your brand.&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Presence&lt;/strong&gt; — In order to brand your freelancing business you first need to have a presence in the marketplace. If you haven’t already done so, establish a website and social media presence.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;If this list seems like an awful lot of work, remember that you can tackle these tasks in small pieces over time. Try writing a mission statement one month, determining your target market the next month, building a website the third month, and so on, until all of the branding tasks are complete.&lt;/p&gt; &lt;p&gt;Now that we’ve covered some of the basics of branding, let look at how your behavior impacts your branding. One of the key ways that behavior and branding combine is through social media.&lt;/p&gt; &lt;h3&gt;Social Media, Branding, and You&lt;/h3&gt; &lt;p&gt;&lt;a href="http://freelancefolder.com/social-media-a-freelancers-pot-of-opportunities/"&gt;&lt;br /&gt;Social media&lt;/a&gt; provides an unparalleled opportunity for you to reach your target market with your brand at little or no cost. However, it’s also easy to get carried away with social media and forget that what you do or say there could potentially impact your freelancing brand. It’s important to remember to be careful what you share.&lt;/p&gt; &lt;p&gt;Consider the following scenarios and the possible damaging impact that the freelancer’s behavior could have on that freelancer’s brand:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Freelancer A tweets that they will be late turning in their project because they put it off until the last minute. Unfortunately, they forgot a) to tell their client that the project would be late and b) that this client follows their tweets.&lt;/li&gt;&lt;li&gt;Freelancer B posts funny (to them) pictures from their wild high school days on their Facebook account. However, Freelancer B has allowed several clients, including one very conservative one, to friend them on Facebook.&lt;/li&gt;&lt;li&gt;Freelancer C vents about a difficult client on a publicly accessible message board, giving details about their project as well as sharing proprietary client information in the thread.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Can these social media faux pas affect how a freelancer is perceived (and ultimately damage their brand)?&lt;/p&gt; &lt;p&gt;You bet they can. While in some instances a client is willing to overlook a social media misstep, there are other times when social media carelessness could cost you a client. &lt;/p&gt; &lt;p&gt;The bottom line is that it’s a good idea to be careful about what you tweet and post on social media. If you are unsure about whether you should post something, just don’t do it.&lt;/p&gt; &lt;h3&gt;What Do You Think?&lt;/h3&gt; &lt;p&gt;We’ve explained what branding is. We’ve also looked at some ways that you can start branding your freelancing business today. Finally, we’ve examined how social media can impact your brand.&lt;/p&gt; &lt;p&gt;Now it’s your turn. Share how branding has affected your freelancing business. Leave your answers in the comments.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-4217677806503954944?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/4217677806503954944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/five-freelance-branding-tips-you-can.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/4217677806503954944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/4217677806503954944'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/five-freelance-branding-tips-you-can.html' title='Five Freelance Branding Tips You Can Use Right Now'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-6439757473970448325</id><published>2009-12-08T09:57:00.000-08:00</published><updated>2009-12-08T09:58:58.772-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Marketing'/><title type='text'>How to Monitor Your Brand on Social Media</title><content type='html'>&lt;p&gt;&lt;a href="http://freelancefolder.com/monitor-brand-on-social-media/"&gt;&lt;img src="http://freelancefolder.com/wp-content/uploads/listening-string-cup.jpg" alt="listening-string-cup" title="listening-string-cup" class="frame" height="323" width="590" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Did you know that people are talking about your freelance business? &lt;/p&gt;&lt;p&gt;It’s true. The evolving technologies and transformation of web as a social tool means that people everywhere are talking, and it is critical for you to listen to what they are saying about your business. &lt;/p&gt; &lt;p&gt;The methods we’ll show you for tracking your business on social media are pretty simple, but they can provide a lot of insight as to how you can change your freelance marketing efforts to better suit the needs of your target market.&lt;/p&gt; &lt;p&gt;Let’s take a look at a few ways we can listen to what others are saying by monitoring social media.&lt;/p&gt; &lt;p&gt;&lt;span id="more-5974"&gt;&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;A Shift in the Business Environment&lt;/h3&gt; &lt;p&gt;There is a major shift in the way we conduct business. It’s not enough to simply create a profile and be active on different social media channels. It is also important to listen to the conversation and think about how the conversation impacts the bottom line of your business.&lt;/p&gt; &lt;p&gt;Who should you be listening to on social media? To start, you should listen to your existing clients or potential clients. You should also be aware of the comments of other freelancers.&lt;/p&gt; &lt;p&gt;Now that we’ve discussed the changing business environment, let’s look at two social media tools that you can use to monitor the conversation:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Twitter Lists&lt;/li&gt;&lt;li&gt;Bookmarking tools&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Let’s begin by taking a look at Twitter Lists.&lt;/p&gt; &lt;h3&gt;Start By Monitoring Twitter Lists&lt;/h3&gt; &lt;p&gt;You may already know that &lt;a href="http://twitter.com/" target="_blank"&gt;Twitter&lt;/a&gt; recently released a new feature called Lists. (To learn more about it &lt;a href="http://freelancefolder.com/how-to-get-started-with-twitter-lists/" target="_blank"&gt;read this post on Twitter lists&lt;/a&gt;.)&lt;/p&gt; &lt;p&gt;&lt;img class="frame" src="http://freelancefolder.com/wp-content/uploads/b34.jpg" alt="freelancefolder on twitter" height="182" width="587" /&gt;&lt;/p&gt; &lt;p&gt;Many of you are probably already mentioned on lists that are created by your friends or Twitter followers. These lists need to be monitored carefully.&lt;/p&gt; &lt;p&gt;For example, if you are a web designer you want others to reference you as a &lt;a href="http://twitter.com/FreelanceFolder/designers" target="_blank"&gt;web designer on their list&lt;/a&gt;. If you are using Twitter as a marketing tool it is critical that you are known for what your business provides, in this case, web design. &lt;/p&gt; &lt;p&gt;Let’s say that you are mentioned on 30 lists and 25 of them are lists with titles such as “random tweets,” “funny,” “writer,” etc. Do you see how this type of categorization could affect your brand? &lt;/p&gt; &lt;p&gt;If your business is web designing and you are being mentioned on the majority of lists for something other than what your business provides it could hurt you and your business. You may lose out on possible leads. &lt;/p&gt; &lt;p&gt;Remember, lists are seen not only by you and the person who created the list. They are also seen by hundreds and thousands of people who follow the person who created the list and by anyone who lands on your Twitter profile.&lt;/p&gt; &lt;p&gt;Always monitor &lt;a href="http://twitter.com/FreelanceFolder/lists" target="_blank"&gt;Twitter Lists.&lt;/a&gt; It doesn’t matter how many lists you are mentioned in. It does matter how many lists you are mentioned in for what you do as a freelancer.&lt;/p&gt; &lt;p&gt;Now that we’ve discussed how to listen to the conversation through Twitter Lists, let’s examine bookmarking services.&lt;/p&gt; &lt;h3&gt;Use Bookmarking Services to See What’s “Hot”&lt;/h3&gt; &lt;p&gt;Numbers matter! Plain and simple. You can be the best web designer, the best writer, or the very best developer, but if no one is landing on your blog or &lt;a href="http://freelancefolder.com/20-inspiring-personal-portfolio-sites-you-should-explore/" target="_blank"&gt;portfolio&lt;/a&gt; your business is going nowhere. &lt;/p&gt; &lt;p&gt;This is exactly why you should monitor bookmarking services to see what is working on your niche.&lt;/p&gt; &lt;p&gt;Check sites such as &lt;a href="http://digg.com/" target="_blank"&gt;digg&lt;/a&gt;, &lt;a href="http://del.icio.us/"&gt;del.icio.us&lt;/a&gt;, and &lt;a href="http://stumbleupon.com/" target="_blank"&gt;stumbleupon&lt;/a&gt;. Watch categories and tags that fit your niche. Analyze what people enjoy the most. &lt;/p&gt; &lt;p&gt;&lt;img class="frame" src="http://freelancefolder.com/wp-content/uploads/b36.jpg" alt="freelancing on del.icio.us" height="308" width="590" /&gt;&lt;/p&gt; &lt;p&gt;Of course, sites that are already popular tend to get swarmed with votes on everything, but keep in mind they weren’t always there. Keep an eye out on these sites. &lt;/p&gt; &lt;p&gt;Monitor what is working well in your niche. Take an idea that worked before, rinse it a little and repeat it with a different angle to it so as to draw attention. &lt;/p&gt; &lt;p&gt;Make sure you use the time feature of the search. You want to see what’s working now, not what worked two years ago. Analyze results that occurred recently. For example, look for results from the past day, week, or a month. &lt;/p&gt; &lt;p&gt;&lt;img class="frame" src="http://freelancefolder.com/wp-content/uploads/b35.jpg" alt="bLast 7 days most dugg articles for web design" height="169" width="595" /&gt;&lt;/p&gt; &lt;p&gt;Monitoring bookmarking services is as critical as monitoring conversation. Let’s talk a little about monitoring conversation.&lt;/p&gt; &lt;h3&gt;Who’s Looking and What Are They Saying?&lt;/h3&gt; &lt;p&gt;If you think that just participating in social media will bring you exposure, you are dead wrong. Listening is more important than participating because it gives you insight on how you should participate in the conversation. &lt;/p&gt; &lt;p&gt;&lt;img class="frame" src="http://freelancefolder.com/wp-content/uploads/b38.jpg" alt="b" height="426" width="589" /&gt;&lt;/p&gt; &lt;p&gt;There are countless platforms where people connect. The three big ones are Twitter, &lt;a href="http://facebook.com/" target="_blank"&gt;Facebook &lt;/a&gt;and &lt;a href="http://linkedin.com/" target="_blank"&gt;LinkedIn&lt;/a&gt;. Lists, Fanpages, Groups, Updates etc. make these the core platforms for carrying out conversation on the social web.&lt;/p&gt; &lt;p&gt;&lt;img class="frame" src="http://freelancefolder.com/wp-content/uploads/b37.jpg" alt="Article feedback on twitter" height="423" width="558" /&gt;&lt;/p&gt; &lt;p&gt;Don’t just use these services to tweet, update and communicate. Use them as a monitoring tool to see what others are saying about you or the business you are in. &lt;/p&gt; &lt;p&gt;Now, that we’ve examined several ways to monitor the conversation, let’s discuss what to do about what you’ve learned.&lt;/p&gt; &lt;h3&gt;Apply What You Learn&lt;/h3&gt; &lt;p&gt;Keep participating, but don’t forget that listening is much more important than simply talking. Get out there and use different features to check what others are saying about you and your brand or monitor these channels to find jobs.&lt;/p&gt; &lt;p&gt;The most important reason for listening is so that you can apply what you learn to improve your business.&lt;/p&gt; &lt;p&gt;For example, here are Freelance Folder we are monitoring Twitter and Facebook to make Freelance Folder even better. We are taking suggestions and implementing them slowly, but surely. To make sure that you are heard, be sure to &lt;a href="http://twitter.com/FreelanceFolder" target="_blank"&gt;follow us on Twitter&lt;/a&gt; and &lt;a href="http://facebook.com/freelancefolder" target="_blank"&gt;Facebook&lt;/a&gt;. We are much stronger as a community. &lt;/p&gt; &lt;p&gt;You can also use these tools to see what others are saying about your competitors. You can find their weaknesses by watching what others say about them. That weakness could become your selling point. &lt;/p&gt; &lt;p&gt;You may also find jobs by listening in social media. If you are a writer, you can check &lt;a href="http://search.twitter.com/" target="_blank"&gt;Twitter search&lt;/a&gt; to see if there are any writing jobs out there. You can do the same with a Facebook search. You will be surprised how many freelancing gigs you can find just by simply typing a keyword or a phrase.&lt;/p&gt; &lt;h3&gt;Your Turn&lt;/h3&gt; &lt;p&gt;We’ve explained that if you effectively monitor these channels, you can boost your personal brand, drive a colossal amount of people to your site (which also highlights your services), find work directly, and get leads. &lt;/p&gt; &lt;p&gt;Social media is here to stay and monitoring these different platforms for the benefit of your business is key. It’s all about listening first and making changes to adapt to what your potential clients wants or how you can create awareness by simply looking out and keeping tab on what’s going on.&lt;/p&gt; &lt;p&gt;Now it’s your turn.&lt;/p&gt; &lt;p&gt;Share your ideas about how social media can improve your freelancing business in the comments.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-6439757473970448325?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/6439757473970448325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-monitor-your-brand-on-social.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6439757473970448325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/6439757473970448325'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/12/how-to-monitor-your-brand-on-social.html' title='How to Monitor Your Brand on Social Media'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-7416829139569839402</id><published>2009-11-24T12:14:00.000-08:00</published><updated>2009-11-24T12:22:37.782-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>XML/JSON API Code IP Location</title><content type='html'>&lt;h3&gt;Introduction&lt;/h3&gt; We were asked a few times the code of our IP Location APIs so here they are. If you see ways to improve them (especially for speed) please let us know in the &lt;a href="http://forum.ipinfodb.com/viewforum.php?f=7"&gt;forum&lt;/a&gt;.&lt;h3&gt;ip_query.php&lt;/h3&gt; &lt;div class="geshifilter"&gt;&lt;pre class="text geshifilter-text"&gt;&lt;pre class="php" style="font-family: monospace;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;?php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;//connect to db&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_connect&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"localhost"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"XXXXXX"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"XXXXXX"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; or &lt;span style="color: rgb(153, 0, 0);"&gt;die&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;!&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;die&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"Could not connect: "&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;mysql_select_db&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"XXXXXX"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;//get the IP&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;getenv&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"REMOTE_ADDR"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"output"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$output&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"output"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"callback"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$callback&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"callback"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql_query&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"SELECT * FROM `ip_group_city` where `ip_start` &lt;= INET_ATON('"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_real_escape_string&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"') order by ip_start desc limit 1;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql_query&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;while&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_fetch_array&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$code&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"OK"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;		&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$country_code&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$country_name&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$region_name&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$region_code&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$city&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$zipcode&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$latitude&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$longitude&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$gmtoffset&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtOffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$dstoffset&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstOffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;!&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$code&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$code&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"IP NOT FOUND IN DATABASE, SORRY!"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"output"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(177, 177, 0);"&gt;switch&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$output&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;case&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"raw"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-Type: text/html; charset=UTF-8'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$ip&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$code&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_code&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_name&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_code&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_name&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$city&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$zipcode&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$latitude&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$longitude&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$gmtoffset&lt;/span&gt;,"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$dstoffset&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;break&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;case&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"json"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$callback&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-Type: text/html; charset=UTF-8'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$callback&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"{&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Ip&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Status&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$code&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_code&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_code&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;City&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$city&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;ZipPostalCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$zipcode&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Latitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$latitude&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Longitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$longitude&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Gmtoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$gmtoffset&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Dstoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$dstoffset&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"}&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;")"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-Type: text/html; charset=UTF-8'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"{&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Ip&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Status&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$code&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_code&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_code&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;City&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$city&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;ZipPostalCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$zipcode&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Latitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$latitude&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Longitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$longitude&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Gmtoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$gmtoffset&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Dstoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$dstoffset&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"}"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;break&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;default&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-type: text/xml'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;?xml version=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;1.0&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; encoding=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;UTF-8&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;?&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;response&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;ip&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$ip&lt;/span&gt;&lt;/ip&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;status&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$code&lt;/span&gt;&lt;/status&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;countrycode&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_code&lt;/span&gt;&lt;/countrycode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;countryname&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_name&lt;/span&gt;&lt;/countryname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;regioncode&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_code&lt;/span&gt;&lt;/regioncode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;regionname&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_name&lt;/span&gt;&lt;/regionname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;city&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$city&lt;/span&gt;&lt;/city&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;zippostalcode&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$zipcode&lt;/span&gt;&lt;/zippostalcode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;latitude&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$latitude&lt;/span&gt;&lt;/latitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;longitude&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$longitude&lt;/span&gt;&lt;/longitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;gmtoffset&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$gmtoffset&lt;/span&gt;&lt;/gmtoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;dstoffset&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$dstoffset&lt;/span&gt;&lt;/dstoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/response&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;break&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-type: text/xml'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;?xml version=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;1.0&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; encoding=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;UTF-8&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;?&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;response&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;ip&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$ip&lt;/span&gt;&lt;/ip&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;status&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$code&lt;/span&gt;&lt;/status&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;countrycode&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_code&lt;/span&gt;&lt;/countrycode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;countryname&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$country_name&lt;/span&gt;&lt;/countryname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;regioncode&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_code&lt;/span&gt;&lt;/regioncode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;regionname&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$region_name&lt;/span&gt;&lt;/regionname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;city&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$city&lt;/span&gt;&lt;/city&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;zippostalcode&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$zipcode&lt;/span&gt;&lt;/zippostalcode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;latitude&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$latitude&lt;/span&gt;&lt;/latitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;longitude&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$longitude&lt;/span&gt;&lt;/longitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;gmtoffset&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$gmtoffset&lt;/span&gt;&lt;/gmtoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"	&lt;dstoffset&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$dstoffset&lt;/span&gt;&lt;/dstoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/response&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;?&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;							 							                                                                                       &lt;p&gt;                             	&lt;/p&gt;&lt;h3&gt;ip_query2.php&lt;/h3&gt; &lt;div class="geshifilter"&gt;&lt;pre class="text geshifilter-text"&gt;&lt;pre class="php" style="font-family: monospace;"&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;&lt;?php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;//connect to db&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_connect&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"localhost"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"XXXXXX"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"XXXXXX"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; or &lt;span style="color: rgb(153, 0, 0);"&gt;die&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;!&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;die&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"Could not connect: "&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_error&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;mysql_select_db&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"XXXXXX"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 102, 102); font-style: italic;"&gt;//get the IP&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$ips&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 0, 136);"&gt;$ips&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;getenv&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"REMOTE_ADDR"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"output"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$output&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"output"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"callback"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$callback&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"callback"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_list&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;explode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ips&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_list&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;25&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;&amp;amp;&amp;amp;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_list&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&gt;&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(177, 177, 0);"&gt;for&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_list&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_list&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;preg_match&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"/[a-zA-Z]/"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 0, 136);"&gt;$domain&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;gethostbyname&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$domain&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(153, 0, 0);"&gt;sleep&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;	&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 0, 136);"&gt;$sql_query&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"SELECT * FROM `ip_group_city` where `ip_start` &lt;= INET_ATON('"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_real_escape_string&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"') order by ip_start desc limit 1;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 0, 136);"&gt;$sql&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_query&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql_query&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$con&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;mysql_num_rows&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;==&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;while&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;mysql_fetch_array&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$sql&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt;  &lt;span style="color: rgb(153, 0, 0);"&gt;array&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;	ip &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        code &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"OK"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        country_code &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        country_name &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        region_code &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        region_name &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        city &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        zipcode &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;utf8_encode&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        latitude &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        longitude &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        gmtoffset &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtOffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;					                        dstoffset &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$data&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstOffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt;  &lt;span style="color: rgb(153, 0, 0);"&gt;array&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;	ip &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        code &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"IP NOT FOUND"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        country_code &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        country_name &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        region_code &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        region_name &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        city &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        zipcode &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        latitude &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        longitude &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        gmtoffset &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;,&lt;/span&gt;&lt;br /&gt;				                        dstoffset &lt;span style="color: rgb(51, 153, 51);"&gt;=&gt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(153, 0, 0);"&gt;usleep&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(204, 102, 204);"&gt;10000&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$_GET&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"output"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(177, 177, 0);"&gt;switch&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$output&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;case&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"raw"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-Type: text/html; charset=UTF-8'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;for&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;","&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;break&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;case&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"json"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$callback&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-Type: text/html; charset=UTF-8'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$callback&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  {&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Locations&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;: [&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;for&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      {&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Id&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Ip&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Status&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;City&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;ZipPostalCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Latitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Longitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Gmtoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"        &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Dstoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;==&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;-&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;						&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      }&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;						&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      },&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    ]&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  }&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;")"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-Type: text/html; charset=UTF-8'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"{&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Locations&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;: [&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;for&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    {&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Id&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Ip&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Status&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;CountryName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;RegionName&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;City&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;ZipPostalCode&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Latitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Longitude&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Gmtoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;,&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"      &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;Dstoffset&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; : &lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(177, 177, 0);"&gt;if&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;==&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;-&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;1&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;						&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    }&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;						&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    },&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;					&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  ]&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"}&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;break&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;default&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-type: text/xml'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;?xml version=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;1.0&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; encoding=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;UTF-8&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;?&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;locations&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;for&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  &lt;location id="&lt;span" style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;ip&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/ip&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;status&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/status&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;countrycode&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/countrycode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;countryname&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/countryname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;regioncode&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/regioncode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;regionname&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/regionname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;city&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/city&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;zippostalcode&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/zippostalcode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;latitude&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/latitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;longitude&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/longitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;gmtoffset&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/gmtoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;dstoffset&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/dstoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;				&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  &lt;/location&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/locations&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;break&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;	&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;span style="color: rgb(177, 177, 0);"&gt;else&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(153, 0, 0);"&gt;header&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;'Content-type: text/xml'&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;?xml version=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;1.0&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt; encoding=&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;UTF-8&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;?&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;locations&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;for&lt;/span&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(204, 102, 204);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(153, 0, 0);"&gt;sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;++&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  &lt;location id="&lt;span" style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&lt;span style="color: rgb(0, 102, 153); font-weight: bold;"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\"&lt;/span&gt;&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;ip&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"ip"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/ip&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;status&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/status&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;countrycode&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/countrycode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;countryname&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"country_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/countryname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;regioncode&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_code"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/regioncode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;regionname&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"region_name"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/regionname&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;city&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"city"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/city&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;zippostalcode&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"zipcode"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/zippostalcode&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;latitude&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"latitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/latitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;longitude&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"longitude"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/longitude&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;gmtoffset&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"gmtoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/gmtoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"    &lt;dstoffset&gt;"&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 136);"&gt;$ip_geodata&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 136);"&gt;$i&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;"dstoffset"&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;]&lt;/span&gt; &lt;span style="color: rgb(51, 153, 51);"&gt;.&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/dstoffset&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;			&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"  &lt;/location&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;		&lt;span style="color: rgb(177, 177, 0);"&gt;echo&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;"&lt;/locations&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span style="color: rgb(51, 153, 51);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;?&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/div&gt;							                                                          &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1781214005152132850-7416829139569839402?l=toolscode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://toolscode.blogspot.com/feeds/7416829139569839402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://toolscode.blogspot.com/2009/11/xmljson-api-code-ip-location.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/7416829139569839402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1781214005152132850/posts/default/7416829139569839402'/><link rel='alternate' type='text/html' href='http://toolscode.blogspot.com/2009/11/xmljson-api-code-ip-location.html' title='XML/JSON API Code IP Location'/><author><name>Varun Parikh</name><uri>http://www.blogger.com/profile/10470878989469194811</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1781214005152132850.post-2723994942159717707</id><published>2009-11-19T14:07:00.000-08:00</published><updated>2009-11-19T14:08:22.736-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Scripts'/><title type='text'>How to save data as a CSV file using PHP</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, serif; font-size: 13px; line-height: 22px; "&gt;&lt;p style="margin-top: 14px; margin-right: 0px; margin-bottom: 14px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 13px; font-family: inherit; vertical-align: baseline; background-color: transparent; "&gt;There are multiple instances when you need to store the data as a file instead of outputting it in the browser. One common example is to store the data in a CSV (Comma Separated Values) file. You can output a file saving dialogue sending appropriate headers to the browser. Below is the example written in PHP. The code is commented so I hope there will be no difficulty in understanding.&lt;/p&gt;&lt;div id="highlighter_836717" class="syntaxhighlighter " style="margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; padding-top: 1px !important; padding-right: 1px !important; padding-bottom: 1px !important; padding-left: 1px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(231, 229, 220) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 590px; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;div class="bar          show" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; background-position: initial initial !important; "&gt;&lt;div class="toolbar" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 8px !important; padding-right: 8px !important; padding-bottom: 8px !important; padding-left: 0px !important; border-top-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-left-width: 1px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1px !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: absolute !important; left: auto !important; top: 0px !important; right: 0px !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; border-top-color: rgb(231, 229, 220) !important; border-right-color: rgb(231, 229, 220) !important; border-bottom-color: rgb(231, 229, 220) !important; border-left-color: rgb(231, 229, 220) !important; border-top-style: solid !important; border-right-style: solid !important; border-bottom-style: solid !important; border-left-style: solid !important; background-position: initial initial !important; "&gt;&lt;a href="http://www.web-tricks.info/2009/09/how-to-save-data-as-a-csv-file-using-php/#viewSource" title="view source" class="item viewSource" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 8px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 1px; font-family: inherit; vertical-align: baseline; background-color: transparent; text-decoration: none; color: rgb(160, 160, 160) !important; display: block !important; float: left !important; background-repeat: no-repeat !important; overflow-x: hidden !important; overflow-y: hidden !important; text-indent: -5000px !important; background-image: url(http://www.web-tricks.info/syntax/styles/page_white_code.png) !important; width: 16px; height: 16px; "&gt;view source&lt;/a&gt;&lt;div class="item copyToClipboard" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 8px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; overflow-x: visible !important; overflow-y: visible !important; text-indent: 0px !important; background-position: initial initial !important; "&gt;&lt;embed width="16" height="16" id="highlighter_836717_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_836717" menu="false" src="http://www.web-tricks.info/2009/09/how-to-save-data-as-a-csv-file-using-php/syntax/scripts/clipboard.swf"&gt;&lt;/embed&gt;&lt;/div&gt;&lt;a href="http://www.web-tricks.info/2009/09/how-to-save-data-as-a-csv-file-using-php/#printSource" title="print" class="item printSource" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 8px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 1px; font-family: inherit; vertical-align: baseline; background-color: transparent; text-decoration: none; color: rgb(160, 160, 160) !important; display: block !important; float: left !important; background-repeat: no-repeat !important; overflow-x: hidden !important; overflow-y: hidden !important; text-indent: -5000px !important; background-image: url(http://www.web-tricks.info/syntax/styles/printer.png) !important; width: 16px; height: 16px; "&gt;print&lt;/a&gt;&lt;a href="http://www.web-tricks.info/2009/09/how-to-save-data-as-a-csv-file-using-php/#about" title="?" class="item about" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 8px !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-weight: inherit; font-style: inherit; font-size: 1px; font-family: inherit; vertical-align: baseline; background-color: transparent; text-decoration: none; color: rgb(160, 160, 160) !important; display: block !important; float: left !important; background-repeat: no-repeat !important; overflow-x: hidden !important; overflow-y: hidden !important; text-indent: -5000px !important; background-image: url(http://www.web-tricks.info/syntax/styles/help.png) !important; width: 16px; height: 16px; "&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="lines" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;01.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;?php&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;02.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;03.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="comments" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 130, 0) !important; background-position: initial initial !important; "&gt;// save the CSV data in a variable&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;04.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$csvData&lt;/code&gt; &lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;= &lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"name,email\n"&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;05.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$csvData&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;.= &lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"waseem,waseem@waseem.com\n"&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;06.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$csvData&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;.= &lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"ikram,ikram@ikram.com"&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;07.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;08.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="comments" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 130, 0) !important; background-position: initial initial !important; "&gt;// filename to save data&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;09.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$filename&lt;/code&gt; &lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;= &lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"sample.csv"&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;10.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;11.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="comments" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 130, 0) !important; background-position: initial initial !important; "&gt;// open file in write mode&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;12.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$fh&lt;/code&gt; &lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;= &lt;/code&gt;&lt;code class="functions" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(255, 20, 147) !important; background-position: initial initial !important; "&gt;fopen&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;(&lt;/code&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$filename&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;, &lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"w"&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;13.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;14.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="comments" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 130, 0) !important; background-position: initial initial !important; "&gt;// write data to the file&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;15.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;fwrite(&lt;/code&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$fh&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;, &lt;/code&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$csvData&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;16.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;17.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="comments" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 130, 0) !important; background-position: initial initial !important; "&gt;// close the file&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;18.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;fclose(&lt;/code&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$fh&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;19.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;20.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="comments" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 130, 0) !important; background-position: initial initial !important; "&gt;// send headers to output the CSV data as a file&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;21.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;header(&lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"Cache-Control: must-revalidate, post-check=0, pre-check=0"&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;);&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt2" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;22.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(248, 248, 248) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;header(&lt;/code&gt;&lt;code class="string" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: blue !important; background-position: initial initial !important; "&gt;"Content-Length: "&lt;/code&gt; &lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;. &lt;/code&gt;&lt;code class="functions" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(255, 20, 147) !important; background-position: initial initial !important; "&gt;strlen&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;(&lt;/code&gt;&lt;code class="variable" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(170, 119, 0) !important; background-position: initial initial !important; "&gt;$csvData&lt;/code&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: inline !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;));&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="line alt1" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; background-position: initial initial !important; "&gt;&lt;code class="number" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0.3em !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: right !important; float: left !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: 3em !important; line-height: 1.1em !important; display: block !important; color: rgb(92, 92, 92) !important; background-position: initial initial !important; "&gt;23.&lt;/code&gt;&lt;span class="content" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 3.3em !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 3px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: rgb(255, 255, 255) !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; border-left-style: solid !important; border-left-color: rgb(108, 226, 108) !important; color: rgb(0, 0, 0) !important; background-position: initial initial !important; "&gt;&lt;span class="block" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 1.5em !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: url(http://www.web-tricks.info/syntax/styles/wrapping.png) !important; background-repeat: no-repeat !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.1em !important; display: block !important; text-indent: -1.5em !important; background-position: 0px 1.1em !important; "&gt;&lt;code class="plain" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; border-top-width: 0px !important; border-right-width: 0px !important; border-bottom-width: 0px !important; border-left-width: 0px !important; border-style: initial; border-color: initial; outline-width: 0px !important; outline-style: initial !important; outline-color: initial !important; font-weight: normal !important; font-style: normal !important; font-size: 1em !important; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; vertical-align: baseline !important; background-color: initial !important; border-style: initial !important; border-color: initial !important; background-image: none !important; background-repeat: initial !important; background-attachment: initial !important; -webkit-background-clip: initial !important; -webkit-background-origin: initial !important; text-align: left !important; float: none !important; position: static !important; left: auto !important; 
