<?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:blogger='http://schemas.google.com/blogger/2008' 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-6764836370540854853</id><updated>2026-05-22T00:39:43.399-07:00</updated><title type='text'>SmartWebTutorials</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>35</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-2851047554428906504</id><published>2018-12-15T02:01:00.001-08:00</published><updated>2018-12-15T02:08:03.275-08:00</updated><title type='text'>Magento 2 Enable Template Path Hints</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1.&lt;br /&gt;
&lt;h1 style=&quot;background-color: white; border: 0px; box-sizing: border-box; clear: both; font-family: Kanit; font-size: 32px; font-weight: 500; line-height: 32px; margin: 0px; outline: 0px; padding: 15px 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Enabling template path hints via Admin panel&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-family: Montserrat, sans-serif; font-size: 16px; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;For storefront:&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Store &amp;gt; Configuration &amp;gt; Advanced &amp;gt; Developer &amp;gt; Debug &amp;gt; Enabled Template Path Hints for Storefront &amp;gt; Yes.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-family: montserrat, sans-serif; font-size: 16px; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;strong style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;For Admin:&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Store &amp;gt; Configuration &amp;gt; Advanced &amp;gt; Developer &amp;gt; Debug &amp;gt; Enabled Template Path Hints for Admin &amp;gt; Yes.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-family: montserrat, sans-serif; font-size: 16px; font-style: inherit; margin-bottom: 1.5em; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;&lt;b&gt;Enabling/Disabling Template Path Hints via env.php file&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;background-color: white; border: 0px; box-sizing: border-box; clear: both; line-height: 32px; margin: 0px; outline: 0px; padding: 15px 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: 500;&quot;&gt;app/etc/env.php&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 style=&quot;background-color: white; border: 0px; box-sizing: border-box; clear: both; line-height: 32px; margin: 0px; outline: 0px; padding: 15px 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: 500;&quot;&gt;In this file you can change the value template_hints_storefront and template_hints_admin.&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;h1 style=&quot;background-color: white; border: 0px; box-sizing: border-box; clear: both; line-height: 32px; margin: 0px; outline: 0px; padding: 15px 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;Enabling Template Path Hints via Command Line&lt;/span&gt;&lt;/h1&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;php bin/magento dev:template-hints:enable&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;php bin/magento dev:template-hints:disable&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: kanit; font-size: small;&quot;&gt;php bin/magento cache:flush&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-mac print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-5c14cc19acf70852996296&quot; style=&quot;background: rgb(243, 243, 243); border: none; box-sizing: border-box; direction: ltr; font-family: monaco, monacoregular, &amp;quot;courier new&amp;quot;, monospace; font-size: 16px; font-style: inherit; height: auto; margin: 12px 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; text-shadow: none; vertical-align: baseline; width: 730px;&quot;&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/2851047554428906504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/magento-2-enable-template-path-hints.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/2851047554428906504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/2851047554428906504'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/magento-2-enable-template-path-hints.html' title='Magento 2 Enable Template Path Hints'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-6614189605249596828</id><published>2018-12-15T01:28:00.005-08:00</published><updated>2018-12-15T01:28:58.740-08:00</updated><title type='text'>Magento 2 checkout cause cart to empty</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 class=&quot;text-black ng-binding&quot; style=&quot;background-color: white; box-sizing: border-box; font-family: Montserrat; font-size: 24px; line-height: 1.1; margin-bottom: 10px; margin-top: 20px; word-break: break-word;&quot;&gt;
Magento 2 checkout cause cart to empty&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;box-sizing: border-box; color: #485f64; font-size: 14px; font-weight: 400; margin-bottom: 10px;&quot;&gt;
I have implemented some changes that seem to resolve the issue but if anyone can look over this and feedback that would be great&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; color: #485f64; font-size: 14px; margin-bottom: 10px;&quot;&gt;
vendor/magento/framework/Session/SessionManager.php&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; color: #485f64; font-size: 14px; font-weight: 400; margin-bottom: 10px;&quot;&gt;
The regenerateId function needs replacing with this&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; font-weight: 400; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;public function regenerateId()
    {
        if (headers_sent()) {
            return $this;
        }

        if ($this-&amp;gt;isSessionExists()) {
            $oldSessionId = session_id();            
            session_regenerate_id();   //regen the session
            $new_session_id = session_id();

            $_SESSION[&#39;new_session_id&#39;] = $new_session_id;

            // Set destroy timestamp
            $_SESSION[&#39;destroyed&#39;] = time();

            // Write and close current session;
            session_commit();
            $oldSession = $_SESSION;   //called after destroy - see destroy!
            // Start session with new session ID
            session_id($new_session_id);
            ini_set(&#39;session.use_strict_mode&#39;, 0);
            session_start();
            ini_set(&#39;session.use_strict_mode&#39;, 1);
            $_SESSION = $oldSession;
            // New session does not need them
            unset($_SESSION[&#39;destroyed&#39;]);
            unset($_SESSION[&#39;new_session_id&#39;]);  
        } else {
            session_start();
        }
        $this-&amp;gt;storage-&amp;gt;init(isset($_SESSION) ? $_SESSION : []);

        if ($this-&amp;gt;sessionConfig-&amp;gt;getUseCookies()) {
            $this-&amp;gt;clearSubDomainSessionCookie();
        }
        return $this;
    }

&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; font-weight: 400; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;and also the start function needs replacing with this&lt;/code&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; font-weight: 400; line-height: 1.42857; margin-bottom: 10px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-radius: 0px; box-sizing: border-box; color: inherit; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: inherit; padding: 0px; white-space: pre-wrap;&quot;&gt;public function start()
    {
        if (!$this-&amp;gt;isSessionExists()) {
            \Magento\Framework\Profiler::start(&#39;session_start&#39;);

            try {
                $this-&amp;gt;appState-&amp;gt;getAreaCode();
            } catch (\Magento\Framework\Exception\LocalizedException $e) {
                throw new \Magento\Framework\Exception\SessionException(
                    new \Magento\Framework\Phrase(
                        &#39;Area code not set: Area code must be set before starting a session.&#39;
                    ),
                    $e
                );
            }

            // Need to apply the config options so they can be ready by session_start
            $this-&amp;gt;initIniOptions();
            $this-&amp;gt;registerSaveHandler();
            if (isset($_SESSION[&#39;new_session_id&#39;])) {
             // Not fully expired yet. Could be lost cookie by unstable network.
             session_commit();
             session_id($_SESSION[&#39;new_session_id&#39;]);
             }
            // potential custom logic for session id (ex. switching between hosts)
            $this-&amp;gt;setSessionId($this-&amp;gt;sidResolver-&amp;gt;getSid($this));
            session_start();
            if (isset($_SESSION[&#39;destroyed&#39;])) {
               if ($_SESSION[&#39;destroyed&#39;] &amp;lt; time()-300) {
                   $this-&amp;gt;destroy([&#39;clear_storage&#39; =&amp;gt; true]);

               }
            }
            $this-&amp;gt;validator-&amp;gt;validate($this);

            register_shutdown_function([$this, &#39;writeClose&#39;]);

            $this-&amp;gt;_addHost();
            \Magento\Framework\Profiler::stop(&#39;session_start&#39;);
        }
        $this-&amp;gt;storage-&amp;gt;init(isset($_SESSION) ? $_SESSION : []);
        return $this;
    }&lt;/code&gt;&lt;/pre&gt;
&lt;/h3&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/6614189605249596828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/magento-2-checkout-cause-cart-to-empty.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6614189605249596828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6614189605249596828'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/magento-2-checkout-cause-cart-to-empty.html' title='Magento 2 checkout cause cart to empty'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-6001065578737004912</id><published>2018-12-14T10:07:00.005-08:00</published><updated>2018-12-14T10:08:27.970-08:00</updated><title type='text'>Magento 2 Certified Professional Developer Practice Test</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1.&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;color: #db4437; font-size: 20px;&quot;&gt;As you create a controller in Magento&#39;s adminhtml, you must configure it to respond appropriately to the ACL. Keeping simplicity in mind, what steps do you take to implement this?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Create a plugin to ensure that the ACL resource is accessible.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;B.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Check the authorization class&#39; isAllowed method as the first check in the execute function.&lt;br /&gt;C.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Set the value of the ADMIN_RESOURCE constant to be the ACL resource.&lt;br /&gt;D.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Override _isAllowed and check the authorization class&#39; isAllowed method for the ACL resource.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgba(0 , 0 , 0 , 0.870588235294118);&quot;&gt;Correct Answer :&amp;nbsp; C&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #db4437; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 20px;&quot;&gt;2. There is a product with a price of $25. The special price is $20 and is active through 2017. The tiered pricing has a discount for 2 or more products at $22.00. Additionally, a catalog price url applies a 10% off discount. What is the final price that is shown on the product page?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;A.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;22.50&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;B.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;22.&lt;br /&gt;C.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;20.&lt;br /&gt;D.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;18.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #a00029; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Correct Answer :&amp;nbsp; A&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #a00029; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #a00029; font-family: &amp;quot;roboto&amp;quot; , &amp;quot;robotodraft&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/6001065578737004912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/magento-2-certified-professional.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6001065578737004912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6001065578737004912'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/magento-2-certified-professional.html' title='Magento 2 Certified Professional Developer Practice Test'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-5466334188304363317</id><published>2018-12-14T09:59:00.000-08:00</published><updated>2018-12-14T09:59:05.579-08:00</updated><title type='text'>Setup Xdebug in your system</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1.&lt;span style=&quot;caret-color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;Find your PHP ini file.
2.&lt;/span&gt;&lt;span style=&quot;caret-color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;Run command “php --ini” to find loaded ini file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;caret-color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;3.&lt;/span&gt;&lt;span style=&quot;caret-color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;Uncomment xdebug module.&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;docs-internal-guid-c19d1389-7fff-6104-a1ab-dd0c3f7886c6&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: -webkit-standard; text-size-adjust: auto;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;zend_extension=&quot;/Applications/MAMP/bin/php/php7.0.8/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so&quot;

&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li dir=&quot;ltr&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; list-style-type: disc; margin-left: -36pt; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;  4.Set below settings for xdebug&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_enable=1&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_host=127.0.0.1&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_connect_back=1 &amp;nbsp;&amp;nbsp;&amp;nbsp;# Not safe for production servers&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_port=9000&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_handler=dbgp&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_mode=req&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br class=&quot;kix-line-break&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;xdebug.remote_autostart=true&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;docs-internal-guid-e9131287-7fff-84b9-af48-c1b95fcca102&quot; style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot;&gt;&lt;/span&gt;5.&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 11pt; white-space: pre-wrap;&quot;&gt;Set-up debugger with PHPStorm&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; caret-color: rgb(0, 0, 0); color: black; font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Open drop down and click on edit configuration as display in below screenshot.

&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK4k-KCqKEiIbr2HcnN3V0DsobYDrcmEsHP4vGMM7I6SOfLm8L3yk5d7QBWU2HTGJ57N2ARqqRAPH0U3gcG92kYdZzfrQ-uq3gZiOGtVRhfH2IkQE0g4KGtvAYEyi1I16fU6JFEMnYco4/s1600/Screen+Shot+2018-12-14+at+11.28.07+PM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;268&quot; data-original-width=&quot;601&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK4k-KCqKEiIbr2HcnN3V0DsobYDrcmEsHP4vGMM7I6SOfLm8L3yk5d7QBWU2HTGJ57N2ARqqRAPH0U3gcG92kYdZzfrQ-uq3gZiOGtVRhfH2IkQE0g4KGtvAYEyi1I16fU6JFEMnYco4/s320/Screen+Shot+2018-12-14+at+11.28.07+PM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;docs-internal-guid-a9c21fe0-7fff-7818-cfb4-163e6383f9f7&quot; style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Click on &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 12pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; icon and select &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;PHP Web Page&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; from the list.&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span id=&quot;docs-internal-guid-35c253af-7fff-a0e5-09d8-5a33d6e70917&quot; style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Under Configuration section set &lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Server&lt;/span&gt;&lt;span style=&quot;font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt; details and for that click on
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li dir=&quot;ltr&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; list-style-type: disc; margin-left: -36pt; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Step-out, Step-into, Continue, Terminate&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Step-out: F8&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-left: 36pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Step-Into: F7&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Continue: F9&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;b id=&quot;docs-internal-guid-90337991-7fff-d060-274f-4efdeae6c0c4&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; caret-color: rgb(0, 0, 0); color: black; font-family: -webkit-standard; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-decoration: none; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;li dir=&quot;ltr&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; list-style-type: disc; margin-left: -36pt; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Debugging step by step&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir=&quot;ltr&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; list-style-type: disc; margin-left: -36pt; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Inspect variables&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir=&quot;ltr&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; list-style-type: disc; margin-left: -36pt; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Watch variable&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li dir=&quot;ltr&quot; style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; list-style-type: disc; margin-left: -36pt; text-decoration: none; vertical-align: baseline; white-space: pre;&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;Conditional debugging point&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 11pt; font-style: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-position: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot;&gt;&lt;/span&gt;


&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 11pt; font-variant-east-asian: normal; vertical-align: baseline; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot;&gt;&lt;/span&gt;&lt;br class=&quot;Apple-interchange-newline&quot; style=&quot;font-family: -webkit-standard; text-size-adjust: auto; white-space: normal;&quot; /&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/5466334188304363317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/setup-xdebug-in-your-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5466334188304363317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5466334188304363317'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/setup-xdebug-in-your-system.html' title='Setup Xdebug in your system'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK4k-KCqKEiIbr2HcnN3V0DsobYDrcmEsHP4vGMM7I6SOfLm8L3yk5d7QBWU2HTGJ57N2ARqqRAPH0U3gcG92kYdZzfrQ-uq3gZiOGtVRhfH2IkQE0g4KGtvAYEyi1I16fU6JFEMnYco4/s72-c/Screen+Shot+2018-12-14+at+11.28.07+PM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-7776845973676296543</id><published>2018-12-13T10:01:00.002-08:00</published><updated>2018-12-13T10:06:43.418-08:00</updated><title type='text'>Install and Configure Redis Cache On Magento 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: &amp;quot;source serif pro&amp;quot;, serif; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; text-align: left; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Compare to magento 1.x , magento 2 has come up with various cache configuration, one of these is redis.&lt;/li&gt;
&lt;li&gt;Redis is an open source high performance database, in-memory data structure store. Redis is a key-value store meaning is primarily design to store data using a unique Key.&lt;/li&gt;
&lt;li&gt;Redis is an optional backend cache solution to replace magento2&#39;s default Zend_Cache_Backend_File.&lt;/li&gt;
&lt;li&gt;Limitation of default Zend_Cache_Backend_File is core_cache_tag table constantly grows. If a Magento instance has multiple web sites and web stores with large catalogs.&lt;/li&gt;
&lt;li&gt;Advantages of Redis:&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Extreme fast in-memory storage&lt;/li&gt;
&lt;li style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Vertical and Horizontal Scaleable&lt;/li&gt;
&lt;li style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Shareable among Multi Servers&lt;/li&gt;
&lt;li style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Cache Tag Support&lt;/li&gt;
&lt;li style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; margin: 2.4rem 0px 2.4rem 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Persistence&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: &amp;quot;Source Serif Pro&amp;quot;, serif; font-size: 2rem; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;span style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; font-size: 20px; font-weight: 600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Requirements :&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: &amp;quot;source serif pro&amp;quot;, serif; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;The following are the prerequisites to configure Redis Cache on Magento 2:&lt;/li&gt;
&lt;li&gt;Redis Server&lt;/li&gt;
&lt;li&gt;PHP Redis Extension&lt;/li&gt;
&lt;li&gt;How to configure Magento 2 to use Redis as cache storage?&lt;/li&gt;
&lt;li&gt;To configure Redis for Magento 2 cache, just add the following example to your app/etc/env.php:&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;pre spellcheck=&quot;false&quot; style=&quot;background: rgb(230, 233, 236); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.85); font-size: 1.6rem; line-height: 1.6rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; overflow-x: auto; padding: 3.2rem; text-align: left; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;cache&#39;&lt;/span&gt; =&amp;gt;

&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;array&lt;/span&gt; (

&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;frontend&#39;&lt;/span&gt; =&amp;gt;

&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;array&lt;/span&gt; (

&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;default&#39;&lt;/span&gt; =&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;array&lt;/span&gt; (

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;backend&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;Cm_Cache_Backend_Redis&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;backend_options&#39;&lt;/span&gt; =&amp;gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;array&lt;/span&gt; (

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;server&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;https://www.linkedin.com/redir/invalid-link-page?url=127%2e0%2e0%2e1&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;port&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;6379&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;persistent&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-number&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #17afb8; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;0&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;database&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;0&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;force_standalone&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;0&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;connect_retries&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;10&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;read_timeout&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;30&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;automatic_cleaning_factor&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;0&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;compress_data&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;1&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;compress_tags&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;1&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;compress_threshold&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;20480&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;compression_lib&#39;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;hljs-string&quot; style=&quot;background: 0px 0px; border: 0px; box-sizing: inherit; color: #e61e89; font-size: 13px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;gzip&#39;&lt;/span&gt;,

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),

&amp;nbsp;&amp;nbsp;&amp;nbsp;),

&amp;nbsp;&amp;nbsp;),

),
&lt;/pre&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;background: 0px 0px rgb(255, 255, 255); border: 0px; box-sizing: inherit; color: rgba(0, 0, 0, 0.75); font-family: &amp;quot;source serif pro&amp;quot;, serif; line-height: 3.2rem; margin-bottom: 3.2rem; margin-top: 3.2rem; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Now flush your cache:&lt;/li&gt;
&lt;li&gt;rm -rf /data/web/magento2/var/cache/*&lt;/li&gt;
&lt;li&gt;redis-cli flushall&lt;/li&gt;
&lt;li&gt;NOTE:&lt;/li&gt;
&lt;li&gt;If redis is working you should not see any files and directories in the folder var/cache/ anymore.&lt;/li&gt;
&lt;li&gt;Further you can connect with &quot;redis-cli info&quot; to check if there entries in the databases.&lt;/li&gt;
&lt;li&gt;Enter the following command:&lt;/li&gt;
&lt;li&gt;redis-cli ping&lt;/li&gt;
&lt;li&gt;PONG should be the response.&lt;/li&gt;
&lt;li&gt;If both commands succeeded, Redis is set up properly.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/7776845973676296543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/redis-cache-on-magento-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/7776845973676296543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/7776845973676296543'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2018/12/redis-cache-on-magento-2.html' title='Install and Configure Redis Cache On Magento 2'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-3341941910544745722</id><published>2017-09-21T22:44:00.001-07:00</published><updated>2017-09-21T22:44:37.772-07:00</updated><title type='text'>speed up Magento using .htaccess file</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Speed Magento with .htaccess file&lt;br /&gt;
&lt;br /&gt;
1)&amp;nbsp;&lt;strong style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;Enable Gzip Compression For Magento&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Gzip is a method of compressing files&amp;nbsp;(reducing file’s size) for faster network transfers.&amp;nbsp;In your htaccess file, find.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-syntax crayon-syntax-inline crayon-theme-familiar crayon-theme-familiar-inline crayon-font-monaco&quot; id=&quot;crayon-59c4a237434f3780587951&quot; style=&quot;background: rgb(250, 250, 250) !important; border-color: rgb(221, 221, 221) !important; border-image: initial; border-style: solid !important; border-width: 1px !important; box-sizing: border-box; direction: ltr !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px !important; font-weight: 500; line-height: 15px !important; margin: 0px 2px; overflow: hidden !important; padding: 0px 2px; position: relative !important; text-shadow: none !important; text-size-adjust: none; width: auto;&quot;&gt;&lt;span class=&quot;crayon-pre crayon-code&quot; style=&quot;background: none !important; border: none !important; color: black; line-height: 15px !important; margin: 0px; overflow: visible; padding: 0px; tab-size: 4; width: auto;&quot;&gt;#php_flag zlib.output_compression on&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp; and un-comment it to enable Gzip Compression&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;2)&amp;nbsp;&lt;/strong&gt;&lt;strong style=&quot;border: 0px; color: #333333; font-family: inherit; font-size: 14px; margin: 0px; padding: 0px;&quot;&gt;Compressing CSS and JavaScript files&lt;/strong&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Compressing CSS and JavaScript files is&amp;nbsp;important&amp;nbsp;to speed your Magento site, we can enable compression for CSS and Java files by adding the following lines to .htaccess file:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-1&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;IfModule &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;mod_deflate&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;c&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-2&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-p&quot; style=&quot;border: 0px; color: rgb(184, 92, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;# Compress HTML, CSS, JavaScript, Text, XML and fonts&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-3&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;javascript&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-4&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;rss&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;xml&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-5&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;javascript&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-6&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;xhtml&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;xml&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-7&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;xml&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-8&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;vnd&lt;/span&gt;&lt;span class=&quot;crayon-sy&quot; style=&quot;border: 0px; color: rgb(51, 51, 51) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;ms&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;fontobject&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-9&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-10&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;opentype&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-11&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;otf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-12&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;truetype&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-13&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;application&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;ttf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-14&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;opentype&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-15&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;otf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-16&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;font&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;ttf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-17&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;css&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-18&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;html&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-19&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;javascript&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-20&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;plain&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-21&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;xml&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-22&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;svg&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;xml&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743501517979380-23&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;AddOutputFilterByType &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;DEFLATE &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;icon&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-24&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;IfModule&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-24&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743501517979380-24&quot; style=&quot;background: rgb(249, 249, 249) !important; border: 0px; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px; white-space: pre;&quot;&gt;
&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; margin: 0px; padding: 0px;&quot;&gt;Enable Expires Headers&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
Expire header is used here to indicate how long browser should store files for caching. Generally, we use expire headers for images file only but for Magento, we should apply expire header for all elements like script, styles or flash.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743526853785671-1&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-p&quot; style=&quot;border: 0px; color: rgb(184, 92, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;############################################&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743526853785671-2&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-p&quot; style=&quot;border: 0px; color: rgb(184, 92, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;## Add Expires header to Magento - by Magentoexplorer.com&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743526853785671-3&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-p&quot; style=&quot;border: 0px; color: rgb(184, 92, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;## http://developer.yahoo.com/performance/rules.html#expires&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743526853785671-4&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;FilesMatch&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;border: 0px; color: rgb(0, 128, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&quot;\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$&quot;&lt;/span&gt;&lt;span class=&quot;crayon-o&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-59c4a23743526853785671-5&quot; style=&quot;background: 0px center rgb(255, 255, 255); border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;ExpiresActive &lt;/span&gt;&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;On&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743526853785671-6&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;crayon-i&quot; style=&quot;border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;ExpiresDefault&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;border: 0px; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-s&quot; style=&quot;border: 0px; color: rgb(0, 128, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&quot;access plus 1 year&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743526853785671-6&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-s&quot; style=&quot;border: 0px; color: rgb(0, 128, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-line crayon-striped-line&quot; id=&quot;crayon-59c4a23743526853785671-6&quot; style=&quot;background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: initial !important; background-repeat: initial !important; background-size: initial !important; border: 0px; color: black; height: inherit; line-height: inherit !important; margin: 0px; padding-bottom: 0px; padding-left: 10px !important; padding-right: 5px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;crayon-s&quot; style=&quot;border: 0px; color: rgb(0, 128, 0) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px;&quot;&gt;&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; margin: 0px; padding: 0px;&quot;&gt;Disable ETags&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
Entity tags (ETags) help&amp;nbsp;web servers and browsers use to determine if&amp;nbsp;the component in the browser’s cache matches the one on the origin serverETages allow browsers to validate cached page.&amp;nbsp;We can disable eTags to improve performance:&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-e&quot; style=&quot;border: 0px; color: rgb(0, 78, 208) !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; white-space: pre;&quot;&gt;FileETag &lt;/span&gt;&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; white-space: pre;&quot;&gt;none&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; white-space: pre;&quot;&gt;&lt;strong style=&quot;border: 0px; color: #333333; font-family: inherit; font-size: 14px; margin: 0px; padding: 0px; white-space: normal;&quot;&gt;Disable some unwanted modules&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; color: #333333; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 14px; margin-bottom: 1em; padding: 0px; white-space: normal;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;border: 0px; color: rgb(0, 45, 122) !important; font-family: Monaco, MonacoRegular, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12px; height: inherit; line-height: inherit !important; margin: 0px; padding: 0px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/3341941910544745722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2017/09/speed-up-magento-using-htaccess-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3341941910544745722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3341941910544745722'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2017/09/speed-up-magento-using-htaccess-file.html' title='speed up Magento using .htaccess file'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-6920181472123484811</id><published>2017-09-19T21:50:00.002-07:00</published><updated>2017-09-19T21:50:32.916-07:00</updated><title type='text'>Magento 2 Architecture </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 id=&quot;m2arch-whatis-overview&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Helvetica, Arial, sans-serif; font-size: 1.625em; font-weight: normal; line-height: 1.3; margin: 1.3em 0px 0.5em; padding: 0px; position: relative; text-rendering: optimizeLegibility;&quot;&gt;
Magento 2 architecture&lt;/h2&gt;
&lt;div&gt;
&lt;h2 id=&quot;m2arch-whatis-overview&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Helvetica, Arial, sans-serif; font-size: 1.625em; font-weight: normal; line-height: 1.3; margin: 1.3em 0px 0.5em; padding: 0px; position: relative; text-rendering: optimizeLegibility;&quot;&gt;
Magento architecture from different perspectives&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; margin-bottom: 0.625em;&quot;&gt;
Depending upon your role and purpose for learning more about Magento, there are several different ways to view the Magento architecture. For example, a developer who wants to create new modules or perhaps customize an existing&amp;nbsp;&lt;span class=&quot;glossary-term&quot; data-toggle=&quot;popover&quot; style=&quot;border-bottom: 1px dotted rgb(0, 0, 238); box-sizing: border-box; cursor: help;&quot; term-uuid=&quot;c1e4242b-1f1a-44c3-9d72-1d5b1435e142&quot;&gt;module&lt;/span&gt;&amp;nbsp;will want to understand the architecture of a module itself, and how it fits into the larger view, with the Magento framework and other components. However, a merchant who wants to quickly build an online store front wants to view the collection of components from a higher level, and understand the components that impact the look, feel, and user interaction components.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h2 id=&quot;archi-layers&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Helvetica, Arial, sans-serif; font-size: 1.625em; font-weight: normal; line-height: 1.3; margin: 1.3em 0px 0.5em; padding: 0px; position: relative; text-rendering: optimizeLegibility;&quot;&gt;
Architecture layers diagram&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;Open Sans&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; margin-bottom: 0.625em;&quot;&gt;
The following diagram illustrates the components of Magento, and shows the “layers” or tiers, for all components, as well as the Magento framework, 3rd party libraries, the supported database, and other technologies.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRVz4PQ5APPFK9N7oci5YeX6NDvrRry4t_9C9867rzmA6de6KtUMrlTEdeO0dOW3sKj2LEHNDl6-GiNjsBjH19-VkZu2JldVBO_zynlxm9UWbA7o8aC6C9_o8k-PLhfC0dipYh05D-z2M/s1600/archi_diagrams_layers_alt4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;540&quot; data-original-width=&quot;720&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRVz4PQ5APPFK9N7oci5YeX6NDvrRry4t_9C9867rzmA6de6KtUMrlTEdeO0dOW3sKj2LEHNDl6-GiNjsBjH19-VkZu2JldVBO_zynlxm9UWbA7o8aC6C9_o8k-PLhfC0dipYh05D-z2M/s320/archi_diagrams_layers_alt4.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/6920181472123484811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2017/09/magento-2-architecture.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6920181472123484811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6920181472123484811'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2017/09/magento-2-architecture.html' title='Magento 2 Architecture '/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRVz4PQ5APPFK9N7oci5YeX6NDvrRry4t_9C9867rzmA6de6KtUMrlTEdeO0dOW3sKj2LEHNDl6-GiNjsBjH19-VkZu2JldVBO_zynlxm9UWbA7o8aC6C9_o8k-PLhfC0dipYh05D-z2M/s72-c/archi_diagrams_layers_alt4.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-8474755932910406044</id><published>2017-09-18T02:02:00.001-07:00</published><updated>2017-09-18T02:02:20.769-07:00</updated><title type='text'>Magento 2 Reindex process</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hello Team,&lt;br /&gt;
&lt;br /&gt;
Please run the below command through command prompt:&lt;br /&gt;
&lt;br /&gt;
Check the current status of Indexing&lt;br /&gt;
1) php bin/magento indexer:status&lt;br /&gt;
Execute All Indexes&lt;br /&gt;
2) php bin/magento indexer:reindex&lt;br /&gt;
Reset All Indexes&lt;br /&gt;
3) php bin/magento indexer:reset&lt;br /&gt;
Index only one Index&lt;br /&gt;
4) php bin/magento indexer:reindex customer_grid&lt;br /&gt;
Reset one Index&lt;br /&gt;
5) php bin/magento indexer:reset customer_grid&lt;br /&gt;
&lt;br /&gt;
run the following SQL query directly into the database :&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eceff1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 1.2; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 10px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;UPDATE indexer_state SET status &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;valid&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/8474755932910406044/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2017/09/magento-2-reindex-process.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/8474755932910406044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/8474755932910406044'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2017/09/magento-2-reindex-process.html' title='Magento 2 Reindex process'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-1642209066814338856</id><published>2012-07-10T03:09:00.000-07:00</published><updated>2012-07-10T03:16:12.373-07:00</updated><title type='text'>Authorize.Net CIM integration with PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;here is the class code to go along with the above code.. if you really need it:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;class AuthnetCIMException extends Exception {}

class AuthnetCIM
{
    const USE_PRODUCTION_SERVER  = 0;
    const USE_DEVELOPMENT_SERVER = 1;

    const EXCEPTION_CURL = 10;

    private $params  = array();
    private $items   = array();
    private $success = false;
    private $error   = true;

    private $login;
    private $transkey;
    private $xml;
    private $ch;
    private $response;
    private $url;
    private $resultCode;
    private $code;
    private $text;
    private $profileId;
    private $validation;
    private $paymentProfileId;
    private $results;

    public function __construct($login, $transkey, $test = self::USE_PRODUCTION_SERVER)
    {
        $this-&amp;gt;login    = trim($login);
        $this-&amp;gt;transkey = trim($transkey);
        if (empty($this-&amp;gt;login) || empty($this-&amp;gt;transkey))
        {
            trigger_error(&#39;You have not configured your &#39; . __CLASS__ . &#39;() login credentials properly.&#39;, E_USER_ERROR);
        }

        $this-&amp;gt;test = (bool) $test;
        $subdomain  = ($this-&amp;gt;test) ? &#39;apitest&#39; : &#39;api&#39;;
        $this-&amp;gt;url = &#39;https://&#39; . $subdomain . &#39;.authorize.net/xml/v1/request.api&#39;;

        $this-&amp;gt;params[&#39;customerType&#39;]     = &#39;individual&#39;;
        $this-&amp;gt;params[&#39;validationMode&#39;]   = &#39;liveMode&#39;;
        $this-&amp;gt;params[&#39;taxExempt&#39;]        = &#39;false&#39;;
        $this-&amp;gt;params[&#39;recurringBilling&#39;] = &#39;false&#39;;
    }

    public function __destruct()
    {
        if (isset($this-&amp;gt;ch))
        {
            curl_close($this-&amp;gt;ch);
        }
    }

    public function __toString()
    {
        if (!$this-&amp;gt;params)
        {
            return (string) $this;
        }
        $output  = &#39;&amp;lt;table summary=&quot;Authnet Results&quot; id=&quot;authnet&quot;&amp;gt;&#39; . &quot;\n&quot;;
        $output .= &#39;&amp;lt;tr&amp;gt;&#39; . &quot;\n\t\t&quot; . &#39;&amp;lt;th colspan=&quot;2&quot;&amp;gt;&amp;lt;b&amp;gt;Outgoing Parameters&amp;lt;/b&amp;gt;&amp;lt;/th&amp;gt;&#39; . &quot;\n&quot; . &#39;&amp;lt;/tr&amp;gt;&#39; . &quot;\n&quot;;
        foreach ($this-&amp;gt;params as $key =&amp;gt; $value)
        {
            $output .= &quot;\t&quot; . &#39;&amp;lt;tr&amp;gt;&#39; . &quot;\n\t\t&quot; . &#39;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;&#39; . $key . &#39;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&#39;;
            $output .= &#39;&amp;lt;td&amp;gt;&#39; . $value . &#39;&amp;lt;/td&amp;gt;&#39; . &quot;\n&quot; . &#39;&amp;lt;/tr&amp;gt;&#39; . &quot;\n&quot;;
        }

        $output .= &#39;&amp;lt;/table&amp;gt;&#39; . &quot;\n&quot;;
        if (!empty($this-&amp;gt;xml))
        {
            $output .= &#39;XML: &#39;;
            $output .= htmlentities($this-&amp;gt;xml);
        }
        return $output;
    }

    private function process()
    {
        $this-&amp;gt;ch = curl_init();
        curl_setopt($this-&amp;gt;ch, CURLOPT_URL, $this-&amp;gt;url);
     curl_setopt($this-&amp;gt;ch, CURLOPT_RETURNTRANSFER, 1);
     curl_setopt($this-&amp;gt;ch, CURLOPT_HTTPHEADER, Array(&quot;Content-Type: text/xml&quot;));
     curl_setopt($this-&amp;gt;ch, CURLOPT_HEADER, 0);
     curl_setopt($this-&amp;gt;ch, CURLOPT_POSTFIELDS, $this-&amp;gt;xml);
     curl_setopt($this-&amp;gt;ch, CURLOPT_POST, 1);
     curl_setopt($this-&amp;gt;ch, CURLOPT_SSL_VERIFYPEER, 0);
        $this-&amp;gt;response = curl_exec($this-&amp;gt;ch);
        if($this-&amp;gt;response)
        {
            $this-&amp;gt;parseResults();
            if ($this-&amp;gt;resultCode === &#39;Ok&#39;)
            {
                $this-&amp;gt;success = true;
                $this-&amp;gt;error   = false;
            }
            else
            {
                $this-&amp;gt;success = false;
                $this-&amp;gt;error   = true;
            }
            curl_close($this-&amp;gt;ch);
            unset($this-&amp;gt;ch);
        }
        else
        {
            throw new AuthnetCIMException(&#39;Connection error: &#39; . curl_error($this-&amp;gt;ch) . &#39; (&#39; . curl_errno($this-&amp;gt;ch) . &#39;)&#39;, self::EXCEPTION_CURL);
        }
    }&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;$cim = new AuthnetCIM(&#39;api-id&#39;, &#39;api-key&#39;, 
                                       AuthnetCIM::USE_DEVELOPMENT_SERVER);&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;// Process the transaction
  $cim-&amp;gt;setParameter(&#39;amount&#39;, $amount);
  $cim-&amp;gt;setParameter(&#39;customerProfileId&#39;, $customerProfileId);
  $cim-&amp;gt;setParameter(&#39;customerPaymentProfileId&#39;, $customerPaymentProfileId);
  //$cim-&amp;gt;setParameter(&#39;customerShippingAddressId&#39;, $shipping_profile_id);
  $cim-&amp;gt;setParameter(&#39;cardCode&#39;, $cvv);
  $cim-&amp;gt;setLineItem(&#39;1&#39;, &#39;xxxx&#39;, &#39;xxxxxx&#39;, &#39;1&#39;, &#39;9.95&#39;);
  $cim-&amp;gt;createCustomerProfileTransaction();
  
  //test if transaction went through 
  if ($cim-&amp;gt;isSuccessful())
  {
  //should we store this approval code??----------------------
   $approval_code = $cim-&amp;gt;getAuthCode();&lt;/pre&gt;
&lt;pre&gt;                } &lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;public function createCustomerProfileTransaction($type = &#39;profileTransAuthCapture&#39;)
    {
        $types = array(&#39;profileTransAuthCapture&#39;, &#39;profileTransCaptureOnly&#39;,&#39;profileTransAuthOnly&#39;);
        if (!in_array($type, $types))
        {
            trigger_error(&#39;createCustomerProfileTransaction() parameter must be&quot;profileTransAuthCapture&quot;, &quot;profileTransCaptureOnly&quot;, &quot;profileTransAuthOnly&quot;, or empty&#39;, E_USER_ERROR);
        }

        $this-&amp;gt;xml = &#39;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
                      &amp;lt;createCustomerProfileTransactionRequest xmlns=&quot;AnetApi/xml/v1/schema/AnetApiSchema.xsd&quot;&amp;gt;
                          &amp;lt;merchantAuthentication&amp;gt;
                              &amp;lt;name&amp;gt;&#39; . $this-&amp;gt;login . &#39;&amp;lt;/name&amp;gt;
                              &amp;lt;transactionKey&amp;gt;&#39; . $this-&amp;gt;transkey . &#39;&amp;lt;/transactionKey&amp;gt;
                          &amp;lt;/merchantAuthentication&amp;gt;
                          &amp;lt;refId&amp;gt;&#39;. $this-&amp;gt;params[&#39;refId&#39;] .&#39;&amp;lt;/refId&amp;gt;
                          &amp;lt;transaction&amp;gt;
                              &amp;lt;&#39; . $type . &#39;&amp;gt;
                                  &amp;lt;amount&amp;gt;&#39;. $this-&amp;gt;params[&#39;amount&#39;] .&#39;&amp;lt;/amount&amp;gt;&#39;;
        if (isset($this-&amp;gt;params[&#39;taxAmount&#39;]))
        {
            $this-&amp;gt;xml .= &#39;
                                  &amp;lt;tax&amp;gt;
                                       &amp;lt;amount&amp;gt;&#39;. $this-&amp;gt;params[&#39;taxAmount&#39;].&#39;&amp;lt;/amount&amp;gt;
                                       &amp;lt;name&amp;gt;&#39;. $this-&amp;gt;params[&#39;taxName&#39;] .&#39;&amp;lt;/name&amp;gt;
                                       &amp;lt;description&amp;gt;&#39;.$this-&amp;gt;params[&#39;taxDescription&#39;].&#39;&amp;lt;/&lt;pre&gt;&lt;wbr&gt;&lt;/wbr&gt;description&amp;gt;
                                  &amp;lt;/tax&amp;gt;&#39;;
        }
        if (isset($this-&amp;gt;params[&#39;shipAmount&#39;]))
        {
            $this-&amp;gt;xml .= &#39;
                                  &amp;lt;shipping&amp;gt;
                                       &amp;lt;amount&amp;gt;&#39;. $this-&amp;gt;params[&#39;shipAmount&#39;].&#39;&amp;lt;/amount&amp;gt;
                                       &amp;lt;name&amp;gt;&#39;. $this-&amp;gt;params[&#39;shipName&#39;] .&#39;&amp;lt;/name&amp;gt;
                                       &amp;lt;description&amp;gt;&#39;.$this-&amp;gt;params[&#39;shipDescription&#39;].&#39;&amp;lt;&lt;wbr&gt;&lt;/wbr&gt;/description&amp;gt;
                                  &amp;lt;/shipping&amp;gt;&#39;;
        }
        if (isset($this-&amp;gt;params[&#39;dutyAmount&#39;]))
        {
            $this-&amp;gt;xml .= &#39;
                                  &amp;lt;duty&amp;gt;
                                       &amp;lt;amount&amp;gt;&#39;. $this-&amp;gt;params[&#39;dutyAmount&#39;].&#39;&amp;lt;/amount&amp;gt;
                                       &amp;lt;name&amp;gt;&#39;. $this-&amp;gt;params[&#39;dutyName&#39;] .&#39;&amp;lt;/name&amp;gt;
                                       &amp;lt;description&amp;gt;&#39;.$this-&amp;gt;params[&#39;dutyDescription&#39;].&#39;&amp;lt;&lt;wbr&gt;&lt;/wbr&gt;/description&amp;gt;
                                  &amp;lt;/duty&amp;gt;&#39;;
        }
        $this-&amp;gt;xml .= &#39;
                                  &amp;lt;lineItems&amp;gt;&#39; . $this-&amp;gt;getLineItems() . &#39;&amp;lt;/lineItems&amp;gt;
                                  &amp;lt;customerProfileId&amp;gt;&#39;.$this-&amp;gt;params[&#39;customerProfil&lt;wbr&gt;&lt;/wbr&gt;eId&#39;].&#39;&amp;lt;/customerProfileId&amp;gt;
                                  &amp;lt;customerPaymentProfileId&amp;gt;&#39;.$this-&amp;gt;params[&#39;custome&lt;wbr&gt;&lt;/wbr&gt;rPaymentProfileId&#39;].&#39;&amp;lt;/customerPaymentProfileId&amp;gt;
                                  &amp;lt;customerShippingAddressId&amp;gt;&#39;.$this-&amp;gt;params[&#39;custom&lt;wbr&gt;&lt;/wbr&gt;erShippingAddressId&#39;].&#39;&amp;lt;/customerShippingAddressId&lt;wbr&gt;&lt;/wbr&gt;&amp;gt;&#39;;
        if (isset($this-&amp;gt;params[&#39;orderInvoiceNumber&#39;]))
        {
            $this-&amp;gt;xml .= &#39;
                                  &amp;lt;order&amp;gt;
                                       &amp;lt;invoiceNumber&amp;gt;&#39;.$this-&amp;gt;params[&#39;invoiceNumber&#39;].&#39;&amp;lt;&lt;wbr&gt;&lt;/wbr&gt;/orderInvoiceNumber&amp;gt;
                                       &amp;lt;description&amp;gt;&#39;.$this-&amp;gt;params[&#39;description&#39;].&#39;&amp;lt;/ord&lt;wbr&gt;&lt;/wbr&gt;erDescription&amp;gt;
                                       &amp;lt;purchaseOrderNumber&amp;gt;&#39;.$this-&amp;gt;params[&#39;purchaseOrde&lt;wbr&gt;&lt;/wbr&gt;rNumber&#39;].&#39;&amp;lt;/orderPurchaseOrderNumber&amp;gt;
                                  &amp;lt;/order&amp;gt;&#39;;
        }
        $this-&amp;gt;xml .= &#39;
                                  &amp;lt;taxExempt&amp;gt;&#39;. $this-&amp;gt;params[&#39;taxExempt&#39;].&#39;&amp;lt;/taxExempt&amp;gt;
                                  &amp;lt;recurringBilling&amp;gt;&#39;.$this-&amp;gt;params[&#39;recurringBillin&lt;wbr&gt;&lt;/wbr&gt;g&#39;].&#39;&amp;lt;/recurringBilling&amp;gt;
                                  &amp;lt;cardCode&amp;gt;&#39;. $this-&amp;gt;params[&#39;cardCode&#39;].&#39;&amp;lt;/cardCode&amp;gt;&#39;;
        if (isset($this-&amp;gt;params[&#39;orderInvoiceNumber&#39;]))
        {
            $this-&amp;gt;xml .= &#39;
                                  &amp;lt;approvalCode&amp;gt;&#39;. $this-&amp;gt;params[&#39;approvalCode&#39;].&#39;&amp;lt;/approvalCode&amp;gt;&#39;;
        }
        $this-&amp;gt;xml .= &#39;
                              &amp;lt;/&#39; . $type . &#39;&amp;gt;
                          &amp;lt;/transaction&amp;gt;
                      &amp;lt;/createCustomerProfileTransactionRequest&amp;gt;&#39;;
        $this-&amp;gt;process();
    }&lt;/pre&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/1642209066814338856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/authorizenet-cim-integration-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/1642209066814338856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/1642209066814338856'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/authorizenet-cim-integration-with-php.html' title='Authorize.Net CIM integration with PHP'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-3001297501037895280</id><published>2012-07-10T02:05:00.000-07:00</published><updated>2012-07-10T02:05:59.084-07:00</updated><title type='text'>IRCTC Tatkal Tickets  :  Individuals can now book only 2 Tatkal tickets from 10 AM to 12 noon using IRCTC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;

&lt;div class=&quot;detail&quot;&gt;   
&lt;h2&gt;IRCTC Tatkal Tickets  :  Individuals can now book only 2 Tatkal tickets from 10 AM to 12 noon using IRCTC&lt;/h2&gt;   
                 &lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;https://www.irctc.co.in/&quot;&gt;Indian Railways Catering and Tourism
Corporation&lt;/a&gt; (IRCTC), as a part of The Indian Railways’ move to introduce new
rules in booking Tatkal train tickets, has said that Individuals will now be permitted
to book only two tickets from 10 am to 12 noon. Only two tickets can be booked
from one IP address between 10 AM and 12 noon.&lt;/p&gt;

&lt;p&gt;Users will now be able to open their account
to book tatkal tickets between 10 am and 12 noon only once. This will enable
maximum users to access tatkal tickets. IRCTC has disabled the quick book
option and cash card option between 10 AM and 12 noon.&lt;/p&gt;

&lt;p&gt;Web service agents have been permitted to
book only one Tatkal ticket per train per day through the internet only after
12 noon. To ensure its smooth run, an anti-IT fraud squad has been created to
detect cases of fraud and to enhance cyberspace surveillance against possible
threats to the system.&lt;/p&gt;

&lt;p&gt;This move comes as a part of the Railways introducing
new rules in booking Tatkal train tickets. Now, booking counters will now open
at 10 AM instead of 8 AM, the day before the journey from the originating
station.&lt;/p&gt;

&lt;p&gt;Meanwhile, the railways has also put in
place measures to make online Tatkal bookings easier. High capacity database
servers have been installed and the Internet bandwidth has been increased from
344 mbps to 450 mbps. &amp;nbsp;It has also
installed Captcha, a technology used to prevent automated software from cornering
tatkal tickets by fraudulent means. &amp;nbsp;Agents
against whom complaints are received will be blacklisted and their user-id
deactivated. A list of such agents will also be put on the IRCTC website.&lt;/p&gt;&lt;p&gt;

The Indian Railways expects e-ticket bookings to
increase from 3.5 lakh per day as on date to five lakh per day in the next four
months. It eventually expects the number of e-ticket bookings to increase to
about eight lakh per day in the long term.&lt;/p&gt;                                &lt;/div&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/3001297501037895280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/individuals-can-now-book-only-2-tatkal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3001297501037895280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3001297501037895280'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/individuals-can-now-book-only-2-tatkal.html' title='IRCTC Tatkal Tickets  :  Individuals can now book only 2 Tatkal tickets from 10 AM to 12 noon using IRCTC'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-1856407785493785911</id><published>2012-07-01T10:09:00.002-07:00</published><updated>2012-07-01T22:14:20.771-07:00</updated><title type='text'>Registration form using PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;margin: 0px; padding: 0px 0px 0px 20px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter formcode &quot; id=&quot;highlighter_142139&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 1em 0px !important; outline: 0px !important; padding-bottom: 1px !important; padding-left: 20px; padding-right: 1px !important; padding-top: 1px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 608px;&quot;&gt;
&lt;div class=&quot;lines&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;Here is the registration form:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;form id=&#39;register&#39; action=&#39;register.php&#39; method=&#39;post&#39;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; accept-charset=&#39;UTF-8&#39;&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;fieldset &amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;legend&amp;gt;Register&amp;lt;/legend&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;input type=&#39;hidden&#39; name=&#39;submitted&#39; id=&#39;submitted&#39; value=&#39;1&#39;/&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;label for=&#39;name&#39; &amp;gt;Your Full Name*: &amp;lt;/label&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;input type=&#39;text&#39; name=&#39;name&#39; id=&#39;name&#39; maxlength=&quot;50&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;label for=&#39;email&#39; &amp;gt;Email Address*:&amp;lt;/label&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;input type=&#39;text&#39; name=&#39;email&#39; id=&#39;email&#39; maxlength=&quot;50&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;label for=&#39;username&#39; &amp;gt;UserName*:&amp;lt;/label&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;input type=&#39;text&#39; name=&#39;username&#39; id=&#39;username&#39; maxlength=&quot;50&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;label for=&#39;password&#39; &amp;gt;Password*:&amp;lt;/label&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;input type=&#39;password&#39; name=&#39;password&#39; id=&#39;password&#39; maxlength=&quot;50&quot; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;input type=&#39;submit&#39; name=&#39;Submit&#39; value=&#39;Submit&#39; /&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;/fieldset&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;Form validation&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
At this point it is a good idea to put some form validation code in place, so we make sure that we have all the data required to create the user account. We need to check if name and email, and password are filled in and that the email is in the proper format.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
We can use the free JavaScript form validation script to add form validations quickly and easily, with lesser code.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Here is a sample JavaScript validation code to be used for the sample form we created earlier:&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
var frmvalidator &amp;nbsp;= new Validator(&quot;register&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.EnableOnPageErrorDisplay();&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.EnableMsgsTogether();&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.addValidation(&quot;name&quot;,&quot;req&quot;,&quot;Please provide your name&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.addValidation(&quot;email&quot;,&quot;req&quot;,&quot;Please provide your email address&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.addValidation(&quot;email&quot;,&quot;email&quot;,&quot;Please provide a valid email address&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.addValidation(&quot;username&quot;,&quot;req&quot;,&quot;Please provide a username&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
frmvalidator.addValidation(&quot;password&quot;,&quot;req&quot;,&quot;Please provide a password&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;Handling the form submission&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Now we have to handle the form data that is submitted.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Here is the sequence (see the file fg_membersite.php in the downloaded source):&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
function RegisterUser()&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!isset($_POST[&#39;submitted&#39;]))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $formvars = array();&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!$this-&amp;gt;ValidateRegistrationSubmission())&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $this-&amp;gt;CollectRegistrationSubmission($formvars);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!$this-&amp;gt;SaveToDatabase($formvars))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!$this-&amp;gt;SendUserConfirmationEmail($formvars))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $this-&amp;gt;SendAdminIntimationEmail($formvars);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; return true;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;Saving the data in the database&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Now that we gathered all the data, we need to store it into the database.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Here is how we save the form submission to the database.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
function SaveToDatabase(&amp;amp;$formvars)&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(!$this-&amp;gt;DBLogin())&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;HandleError(&quot;Database login failed!&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(!$this-&amp;gt;Ensuretable())&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(!$this-&amp;gt;IsFieldUnique($formvars,&#39;email&#39;))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;HandleError(&quot;This email is already registered&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(!$this-&amp;gt;IsFieldUnique($formvars,&#39;username&#39;))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;HandleError(&quot;This UserName is already used. Please try another username&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(!$this-&amp;gt;InsertIntoDB($formvars))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$this-&amp;gt;HandleError(&quot;Inserting to Database failed!&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Note that you have configured the Database login details in the membersite_config.php file. Most of the cases, you can use &quot;localhost&quot; for database host.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
After logging in, we make sure that the table is existing.(If not, the script will create the required table).&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Then we make sure that the username and email are unique. If it is not unique, we return error back to the user.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;The database table structure&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
This is the table structure. The CreateTable() function in the fg_membersite.php file creates the table. Here is the code:&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
function CreateTable()&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $qry = &quot;Create Table $this-&amp;gt;tablename (&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;id_user INT NOT NULL AUTO_INCREMENT ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;name VARCHAR( 128 ) NOT NULL ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;email VARCHAR( 64 ) NOT NULL ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;phone_number VARCHAR( 16 ) NOT NULL ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;username VARCHAR( 16 ) NOT NULL ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;password VARCHAR( 32 ) NOT NULL ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;confirmcode VARCHAR(32) ,&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;PRIMARY KEY ( id_user )&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;)&quot;;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!mysql_query($qry,$this-&amp;gt;connection))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;HandleDBError(&quot;Error creating the table \nquery was\n $qry&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; return true;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
The id_user field will contain the unique id of the user, and is also the primary key of the table. Notice that we allow 32 characters for the password field. We do this because, as an added security measure, we will store the password in the database encrypted using MD5. Please note that because MD5 is an one-way encryption method, we won&#39;t be able to recover the password in case the user forgets it.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;Inserting the registration to the table&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Here is the code that we use to insert data into the database. We will have all our data available in the $formvars array.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
function InsertIntoDB(&amp;amp;$formvars)&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $confirmcode = $this-&amp;gt;MakeConfirmationMd5($formvars[&#39;email&#39;]);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $insert_query = &#39;insert into &#39;.$this-&amp;gt;tablename.&#39;(&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; username,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; password,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; confirmcode&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; values&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&#39; . $this-&amp;gt;SanitizeForSQL($formvars[&#39;name&#39;]) . &#39;&quot;,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&#39; . $this-&amp;gt;SanitizeForSQL($formvars[&#39;email&#39;]) . &#39;&quot;,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&#39; . $this-&amp;gt;SanitizeForSQL($formvars[&#39;username&#39;]) . &#39;&quot;,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&#39; . md5($formvars[&#39;password&#39;]) . &#39;&quot;,&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;&#39; . $confirmcode . &#39;&quot;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&#39;;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!mysql_query( $insert_query ,$this-&amp;gt;connection))&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;HandleDBError(&quot;Error inserting data to the table\nquery:$insert_query&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; return true;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
}&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Notice that we use PHP function md5() to encrypt the password before inserting it into the database.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Also, we make the unique confirmation code from the user&#39;s email address.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;b&gt;Sending emails&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
Now that we have the registration in our database, we will send a confirmation email to the user. The user has to click a link in the confirmation email to complete the registration process.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
function SendUserConfirmationEmail(&amp;amp;$formvars)&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
{&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $mailer = new PHPMailer();&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $mailer-&amp;gt;CharSet = &#39;utf-8&#39;;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $mailer-&amp;gt;AddAddress($formvars[&#39;email&#39;],$formvars[&#39;name&#39;]);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $mailer-&amp;gt;Subject = &quot;Your registration with &quot;.$this-&amp;gt;sitename;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $mailer-&amp;gt;From = $this-&amp;gt;GetFromAddress();&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $confirmcode = urlencode($this-&amp;gt;MakeConfirmationMd5($formvars[&#39;email&#39;]));&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $confirm_url = $this-&amp;gt;GetAbsoluteURLFolder().&#39;/confirmreg.php?code=&#39;.$confirmcode;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $mailer-&amp;gt;Body =&quot;Hello &quot;.$formvars[&#39;name&#39;].&quot;\r\n\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;Thanks for your registration with &quot;.$this-&amp;gt;sitename.&quot;\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;Please click the link below to confirm your registration.\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;$confirm_url\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;Regards,\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &quot;Webmaster\r\n&quot;.&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; $this-&amp;gt;sitename;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; if(!$mailer-&amp;gt;Send())&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $this-&amp;gt;HandleError(&quot;Failed sending registration confirmation email.&quot;);&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&amp;nbsp; &amp;nbsp; return true;&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table style=&quot;background-image: none !important; border-collapse: collapse !important; border: 0px !important; bottom: auto !important; color: #111111; direction: ltr !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;content&quot; style=&quot;background-image: none !important; border-bottom-width: 0px !important; border-left-style: none !important; border-right-width: 0px !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0px 0px 0.5em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; color: #111111; direction: ltr !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;h2 style=&quot;font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 1.267em; font-weight: normal; margin: 1.737em 0px 0.579em; padding: 0px; text-align: -webkit-auto;&quot;&gt;

&lt;/h2&gt;
&lt;div style=&quot;font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; margin: 0px; padding: 0px 0px 0px 20px; text-align: -webkit-auto;&quot;&gt;
&lt;div class=&quot;syntaxhighlighter nogutter formcode &quot; id=&quot;highlighter_30162&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; margin: 1em 0px !important; outline: 0px !important; padding-bottom: 1px !important; padding-left: 20px; padding-right: 1px !important; padding-top: 1px !important; position: relative !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: 608px;&quot;&gt;
&lt;div class=&quot;lines&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;div class=&quot;line alt2&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding-bottom: 0px !important; padding-left: 20px; padding-right: 0px !important; padding-top: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;table style=&quot;background-image: none !important; border-collapse: collapse !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; text-align: left !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;tbody style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;
&lt;tr style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;td class=&quot;content&quot; style=&quot;background-image: none !important; border-bottom-width: 0px !important; border-left-style: none !important; border-right-width: 0px !important; border-top-width: 0px !important; bottom: auto !important; direction: ltr !important; float: none !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0px 0px 0.5em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: top !important; width: auto !important;&quot;&gt;&lt;code class=&quot;plain&quot; style=&quot;background-image: none !important; border: 0px !important; bottom: auto !important; direction: ltr !important; display: inline !important; float: none !important; font-family: Consolas, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, Courier, monospace !important; font-size: 1em !important; height: auto !important; left: auto !important; line-height: 1.5em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/1856407785493785911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/registration-form-using-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/1856407785493785911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/1856407785493785911'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/registration-form-using-php.html' title='Registration form using PHP'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-7405237699068044509</id><published>2012-07-01T02:50:00.000-07:00</published><updated>2012-07-01T02:50:47.324-07:00</updated><title type='text'>PHP Database Access</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1 style=&quot;color: #003399; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px;&quot;&gt;

Create the database in MySQL&lt;/h1&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify; text-indent: 2em;&quot;&gt;
&lt;span style=&quot;background-color: white; text-indent: 2em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify; text-indent: 2em;&quot;&gt;
&lt;span style=&quot;background-color: white; text-indent: 2em;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify; text-indent: 2em;&quot;&gt;
&lt;span style=&quot;background-color: white; text-indent: 2em;&quot;&gt;PHP with databases access, we have chosen MySQL database because it is free and also because it is the most widely used in UNIX environment. To this end, the server where the pages are hosted must provide us with tools to create the database or have access to Telnet.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify; text-indent: 2em;&quot;&gt;
The command to create a MySQL database is the following:&amp;nbsp;&lt;span style=&quot;background-color: white; color: #9c0000; font-family: monospace; font-size: 10pt; text-align: left;&quot;&gt;mysqladmin -u root create data_base&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; text-align: justify; text-indent: 2em;&quot;&gt;
To create the table you can use your web server&#39;s MySQL administration tool or you can write a text file with the content of the equivalent SQL and then indicate the database engine to execute it with the following instruction:&amp;nbsp;&lt;span style=&quot;background-color: white; color: #9c0000; font-family: monospace; font-size: 10pt; text-align: left;&quot;&gt;mysql -u root base_datos &amp;lt;test.sql&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h1 style=&quot;color: #003399; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px;&quot;&gt;

Connection to the database&lt;/h1&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;html&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;PHP SWT Example&amp;lt;/title&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;codigophp2&quot; style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;?php&lt;br /&gt;function Connect()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!($link=mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;)))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &quot;Error connecting to server.&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!mysql_select_db(&quot;base_datos&quot;,$link))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &quot;Error Selecting database.&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $link;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$link=Conectarse();&lt;br /&gt;echo &quot;Connection Success.&amp;lt;br&amp;gt;&quot;;&lt;br /&gt;&lt;br /&gt;mysql_close($link); //cierra la conexion&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h1 style=&quot;color: #003399; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px;&quot;&gt;

Querying the database&lt;/h1&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;?php&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;function Connect()&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!($link=mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;)))&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;echo &quot;Error connecting to server.&quot;;&lt;/span&gt;&lt;span style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (!mysql_select_db(&quot;base_datos&quot;,$link))&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;echo &quot;Error Selecting database.&quot;;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $link;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;html&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;PHP SWT Example&amp;lt;/title&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/head&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;H1&amp;gt;Ejemplo de uso de bases de datos con PHP y MySQL&amp;lt;/H1&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;codigophp2&quot; style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;include(&quot;connection.phtml&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$link=Conect();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$result=mysql_query(&quot;select * from users&quot;,$link);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;amp;nbsp;ID&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;amp;nbsp;Username&amp;amp;nbsp;&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;codigophp2&quot; style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;?php&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;while($row = mysql_fetch_array($result)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf(&quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;amp;nbsp;%s&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;amp;nbsp;%s&amp;amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&quot;, $row[&quot;id&quot;],$row[&quot;username&quot;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_free_result($result);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_close($link);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/table&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/body&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;/html&amp;gt;&amp;nbsp;&lt;/span&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h1 style=&quot;color: #003399; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px;&quot;&gt;

Inserting records to the database&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;codigophp2&quot; style=&quot;color: #9c0000; font-family: monospace; font-size: 11px;&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;include(&quot;connection.phtml&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$link=Conect();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$id=$_GET[&#39;id&#39;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$username=$_GET[&#39;username&#39;];&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mysql_query(&quot;insert into users(id,username) values (&#39;$id&#39;,&#39;$username&#39;)&quot;,$link);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;header(&quot;Location: thanks.phtml&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: #ededed; color: navy; font-family: monospace; font-size: 11px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/7405237699068044509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/php-database-access.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/7405237699068044509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/7405237699068044509'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/07/php-database-access.html' title='PHP Database Access'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-5998896736308560635</id><published>2012-06-28T10:47:00.003-07:00</published><updated>2012-06-28T10:47:58.128-07:00</updated><title type='text'>Introduction to Preg in PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;The PHP function,&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;preg_grep&lt;/i&gt;&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;, is used to search an array for specific patterns and then return a new array based on that filtering. There are two ways to return the results. You can return them as is, or you can invert them (instead of only returning what matches, it would only return what does not match.) It is phrased as:&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;preg_grep ( search_pattern, $your_array, optional_inverse )&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp;The search_pattern needs to be a regular expression. If you are unfamiliar with them&amp;nbsp;&lt;/span&gt;This Article&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;&amp;nbsp;gives you an overview of the syntax.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;color: #333333; font-family: inherit; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding: 0px; text-decoration: inherit; white-space: pre-wrap;&quot;&gt;&lt;code style=&quot;font-family: &#39;Droid Sans Mono&#39;, Courier, monospace; font-style: inherit; margin: 0px; padding: 0px; text-decoration: inherit;&quot;&gt; &amp;lt;? 
 $data = array(0, 1, 2, &#39;three&#39;, 4, 5, &#39;six&#39;, 7, 8, &#39;nine&#39;, 10); 
 $mod1 = &lt;b&gt;preg_grep&lt;/b&gt;(&quot;/4|5|6/&quot;, $data); 
 $mod2 = &lt;b&gt;preg_grep&lt;/b&gt;(&quot;/[0-9]/&quot;, $data, PREG_GREP_INVERT); 
 print_r($mod1); 
 echo &quot;&amp;lt;br&amp;gt;&quot;; 
 print_r($mod2); 
 ?&amp;gt; &lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;This code would result in the following data:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;Array ( [4] =&amp;gt; 4 [5] =&amp;gt; 5 )&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;Array ( [3] =&amp;gt; three [6] =&amp;gt; six [9] =&amp;gt; nine )&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
First we assign our $data variable. This is a list of numbers, some in alpha form, others in numeric. The first thing we run is called $mod1. Here we are searching for anything that contains 4, 5, or 6. When our result is printed below we only get 4 and 5, because 6 was written as &#39;six&#39; so it did not match our search.&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
Next we run $mod2, which is searching for anything that contains a numeric character. But this time we include&amp;nbsp;&lt;b&gt;PREG_GREP_INVERT&lt;/b&gt;. This will invert our data, so instead of outputting numbers, it outputs all of our entries that where not numeric (three, six and nine).&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;&lt;b&gt;Preg_Match :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;The&lt;/span&gt;&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;Preg_Match&lt;/i&gt;&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;PHP function is used to search a string, and return a 1 or 0. If the search was successful a 1 will be returned, and if it was not found a 0 will be returned. Although other variables can be added, it is most simply phrased as:&lt;/span&gt;&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;preg_match(search_pattern, your_string)&lt;/b&gt;&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;. The search_pattern needs to be a regular expression.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding: 0px; text-decoration: inherit; white-space: pre-wrap;&quot;&gt;&lt;code style=&quot;font-family: &#39;Droid Sans Mono&#39;, Courier, monospace; font-style: inherit; margin: 0px; padding: 0px; text-decoration: inherit;&quot;&gt; &amp;lt;? 
 $data = &quot;I had a box of cerial for breakfast today, and then I drank some juice.&quot;;
 if (&lt;b&gt;preg_match&lt;/b&gt;(&quot;/juice/&quot;, $data))
 {
 echo &quot;You had juice.&amp;lt;br&amp;gt;&quot;;
 }
 else
 {
 echo &quot;You had did not have juice.&amp;lt;br&amp;gt;&quot;;
 }
 if (&lt;b&gt;preg_match&lt;/b&gt;(&quot;/eggs/&quot;, $data))
 {
 echo &quot;You had eggs.&amp;lt;br&amp;gt;&quot;;
 }
 else
 {
 echo &quot;You had did not have eggs.&amp;lt;br&amp;gt;&quot;;
 } 
 ?&amp;gt;&lt;/code&gt;&lt;/pre&gt;
The code above uses preg_match to check for a key word (first juice then egg) and replies based on whether it is true (1) or false (0). Because it returns these two values it is most often used in a conditional statement&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;span style=&quot;background-color: white; text-decoration: inherit;&quot;&gt;&lt;b&gt;Preg_Match_All :&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;i&gt;Preg_Match_All&lt;/i&gt;&amp;nbsp;is used to search a string for specific patterns and stores the results in an array. Unlike&amp;nbsp;&lt;i&gt;preg_match&lt;/i&gt;&amp;nbsp;which stops searching after it finds a match,&amp;nbsp;&lt;i&gt;preg_match_all&lt;/i&gt;&amp;nbsp;searches the entire string and records all matches. It is phrased as:&amp;nbsp;&lt;b&gt;preg_match_all (pattern, string, $array, optional_ordering, optional_offset)&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding: 0px; text-decoration: inherit; white-space: pre-wrap;&quot;&gt;&lt;code style=&quot;font-family: &#39;Droid Sans Mono&#39;, Courier, monospace; font-style: inherit; margin: 0px; padding: 0px; text-decoration: inherit;&quot;&gt; &amp;lt;? $data = &quot;The party will start at 10:30 pm and run untill 12:30 am&quot;; 
 &lt;b&gt;preg_match_all&lt;/b&gt;(&#39;/(\d+:\d+)\s*(am|pm)/&#39;, $data, $match, &lt;i&gt;PREG_PATTERN_ORDER&lt;/i&gt;);
 echo &quot;Full: &amp;lt;br&amp;gt;&quot;; 
 print_r($match[0]); 
 echo &quot;&amp;lt;p&amp;gt;Raw: &amp;lt;br&amp;gt;&quot;; 
 print_r($match[1]); 
 echo &quot;&amp;lt;p&amp;gt;Tags: &amp;lt;br&amp;gt;&quot;; 
 print_r($match[2]); 
 ?&amp;gt; &lt;/code&gt;&lt;/pre&gt;
In our first example we use PREG_PATTERN_ORDER. We are searching for 2 things; one is the time, the other is it&#39;s am/pm tag. Our results are outputted to $match, as an array where $match[0] contains all matches, $match[1] contains all data matching our first sub-serach (the time) and $match[2] contains all data matching our second sub-search (am/pm).&lt;div style=&quot;margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding: 0px; text-decoration: inherit; white-space: pre-wrap;&quot;&gt;&lt;code style=&quot;font-family: &#39;Droid Sans Mono&#39;, Courier, monospace; font-style: inherit; margin: 0px; padding: 0px; text-decoration: inherit;&quot;&gt; &amp;lt;? $data = &quot;The party will start at 10:30 pm and run untill 12:30 am&quot;; 
 &lt;b&gt;preg_match_all&lt;/b&gt;(&#39;/(\d+:\d+)\s*(am|pm)/&#39;, $data, $match, &lt;i&gt;PREG_SET_ORDER&lt;/i&gt;); 
 echo &quot;First: &amp;lt;br&amp;gt;&quot;; 
 echo $match[0][0] . &quot; , &quot; . $match[0][1] . &quot; , &quot;. $match [0][2] .&quot;&amp;lt;br&amp;gt;&quot;; 
 echo &quot;Second: &amp;lt;br&amp;gt;&quot;; 
 echo $match[1][0] . &quot; , &quot; . $match[1][1] . &quot; , &quot;. $match [1][2] .&quot;&amp;lt;br&amp;gt;&quot;;
 ?&amp;gt; &lt;/code&gt;&lt;/pre&gt;
In our second example we use PREG_SET_ORDER. This puts each full result into an array. The first result is $match[0], with $match[0][0] being the full match, $match[0][1] being the first sub-match and $match[0][2] being the second sub-match.
&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;b&gt;Preg_replace :&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
The&amp;nbsp;&lt;i&gt;preg_replace&lt;/i&gt;&amp;nbsp;function is used to do a find-and-replace on a string or an array. We can give it one thing to find and replace (for example it seeks out the word &#39;him&#39; and changes it to &#39;her&#39;) or we can give it a full list of things (an array) to search for, each with a corresponding replacement. It is phrased as&amp;nbsp;&lt;b&gt;preg_replace ( search_for, replace_with, your_data , optional_limit, optional_count )&lt;/b&gt;&amp;nbsp;The limit will default to -1 which is no limit. Remember your_data can be a string or an array.&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding: 0px; text-decoration: inherit; white-space: pre-wrap;&quot;&gt;&lt;code style=&quot;font-family: &#39;Droid Sans Mono&#39;, Courier, monospace; font-style: inherit; margin: 0px; padding: 0px; text-decoration: inherit;&quot;&gt;&amp;lt;? 
 $data = &quot;The cat likes to sit on the fence. He also likes to climb the tree.&quot;; 
 
 $find =&quot;/the/&quot;; 
 $replace =&quot;a&quot;; 
 
 //1. replace single word 
 Echo &quot;$data &amp;lt;br&amp;gt;&quot;; 
 Echo &lt;b&gt;preg_replace&lt;/b&gt; ($find, $replace, $data); 
 
 //create arrays 
 $find2 = array (&#39;/the/&#39;, &#39;/cat/&#39;); 
 $replace2 = array (&#39;a&#39;, &#39;dog&#39;); 
 
 //2. replace with array values 
 Echo &lt;b&gt;preg_replace&lt;/b&gt; ($find2, $replace2, $data); 
 
 //3. Replace just once
 Echo &lt;b&gt;preg_replace&lt;/b&gt; ($find2, $replace2, $data, 1); 
 
 //4. Keep a count of replacements 
 $count = 0; 
 Echo &lt;b&gt;preg_replace&lt;/b&gt; ($find2, $replace2, $data, -1, $count); 
 Echo &quot;&amp;lt;br&amp;gt;You have made $count replacements&quot;; 
 
 ?&amp;gt; &lt;/code&gt;&lt;/pre&gt;
In our first example we simply replace &#39;the&#39; with &#39;a&#39;. As you can see these are cAse seNsiTIvE. Then we set up an array, so in our second example we are replacing both the words &#39;the&#39; and &#39;cat&#39;. In our third example, we set the limit to 1, so each word is only replaced one time. Finally in our 4th example, we keep count of how many replacements we have made.
&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;b&gt;Preg_Spilit :&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
The function&amp;nbsp;&lt;i&gt;Preg_Spilit&lt;/i&gt;&amp;nbsp;is used to take a string, and put it into an array. The string is broken up into different values in the array based upon your input. It is phrased as&amp;nbsp;&lt;b&gt;preg_split ( split_pattern, your_data, optional_limit, optional_flags )&lt;/b&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: inherit; margin-bottom: 1.5em; margin-left: 3em; margin-top: 1.5em; padding: 0px; text-decoration: inherit; white-space: pre-wrap;&quot;&gt;&lt;code style=&quot;font-family: &#39;Droid Sans Mono&#39;, Courier, monospace; font-style: inherit; margin: 0px; padding: 0px; text-decoration: inherit;&quot;&gt; &amp;lt;?php 
 $str = &#39;I like goats. You like cats. He likes dogs.&#39;; 
 $chars = &lt;b&gt;preg_split&lt;/b&gt;(&#39;//&#39;, $str); 
 print_r($chars); 
 echo &quot;&amp;lt;p&amp;gt;&quot;; 
 $words= &lt;b&gt;preg_split&lt;/b&gt;(&#39;/ /&#39;, $str); 
 print_r($words); 
 echo &quot;&amp;lt;p&amp;gt;&quot;; 
 $sentances= &lt;b&gt;preg_split&lt;/b&gt;(&#39;/\./&#39;, $str, -1 , &lt;i&gt;PREG_SPLIT_NO_EMPTY&lt;/i&gt;); 
 print_r($sentances); 
 ?&amp;gt; &lt;/code&gt;&lt;/pre&gt;
In the code above we preform three splits. In our first, we split the data by each character. In the second, we split it with a blank space, thus giving each word (and not each letter) an array entry. And in our third example we use a &#39;.&#39; period to split the data, therefor giving each sentence it&#39;s own array entry.&lt;div style=&quot;margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
Because in our last example we use a &#39;.&#39; period to split, a new entry is started after our final period, so we add the flag&amp;nbsp;&lt;i&gt;PREG_SPLIT_NO_EMPTY&lt;/i&gt;&amp;nbsp;so that no empty results are returned. Other available flags are&amp;nbsp;&lt;i&gt;PREG_SPLIT_DELIM_CAPTURE&lt;/i&gt;&amp;nbsp;which also captures the character you are splitting by (our &quot;.&quot; for example) and&amp;nbsp;&lt;i&gt;PREG_SPLIT_OFFSET_CAPTURE&lt;/i&gt;&amp;nbsp;which captures the offset in characters where the split has occurred.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #333333; font-family: verdana; font-size: 12px; line-height: 18px; margin-bottom: 1.5em; margin-top: 1.5em; padding: 0px; text-decoration: inherit;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/5998896736308560635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/introduction-to-preg-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5998896736308560635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5998896736308560635'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/introduction-to-preg-in-php.html' title='Introduction to Preg in PHP'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-5325493973617818151</id><published>2012-06-28T10:31:00.000-07:00</published><updated>2012-06-28T10:31:35.429-07:00</updated><title type='text'>Send Mail using SMTP with PHPMailer and GMail</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Website owners can use their own SMTP server for sending email messages from their website, but it makes sense even than to use GMail for sending mail. The chance is big that your websites IP address is on a blacklist if your site is on hosted by a shared web hosting provider. If not or you host your site on your own server, there is always a risk that your IP address get blacklisted. Because of some limitations, the SMTP server from Google is a good choice applications with less than 500 recipients a day&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;Requirements&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You need for this PHPMailer code example a PHP5 enabled web host (I did tests only on Linux), the port 465 need to be open and of course you need a GMail or Google Apps account.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;PHPMailer tutorial for GMail and Google Apps&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
GMail account or setup your domain for Google applications.&lt;/div&gt;
&lt;div&gt;
Download a recent version of PHPMailer (I’m using the version 5.02)&lt;/div&gt;
&lt;div&gt;
Check with your web hosting provider that port 465 (TCP out) is open, if not ask him to open that port&lt;/div&gt;
&lt;div&gt;
Include the PHPMailer class file: require_once(&#39;phpmailer/class.phpmailer.php&#39;);&lt;/div&gt;
&lt;div&gt;
Create those two constant variables to store your GMail login and password. Use the login for your Google Apps mail account if you have one.&lt;/div&gt;
&lt;div&gt;
define(&#39;GUSER&#39;, &#39;you@gmail.com&#39;); // GMail username&lt;/div&gt;
&lt;div&gt;
define(&#39;GPWD&#39;, &#39;password&#39;); // GMail password&lt;/div&gt;
&lt;div&gt;
Use the following function to send the e-mail messages (add the function in one of your included files):&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
function smtpmailer($to, $from, $from_name, $subject, $body) {&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;global $error;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail = new PHPMailer(); &amp;nbsp;// create a new object&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;IsSMTP(); // enable SMTP&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;SMTPDebug = 0; &amp;nbsp;// debugging: 1 = errors and messages, 2 = messages only&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;SMTPAuth = true; &amp;nbsp;// authentication enabled&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;SMTPSecure = &#39;ssl&#39;; // secure transfer enabled REQUIRED for GMail&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;Host = &#39;smtp.gmail.com&#39;;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;Port = 465;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;Username = GUSER; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;Password = GPWD; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;SetFrom($from, $from_name);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;Subject = $subject;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;Body = $body;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;$mail-&amp;gt;AddAddress($to);&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;if(!$mail-&amp;gt;Send()) {&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$error = &#39;Mail error: &#39;.$mail-&amp;gt;ErrorInfo;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return false;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;} else {&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$error = &#39;Message sent!&#39;;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return true;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Call the function within your code:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
smtpmailer(&#39;to@mail.com&#39;, &#39;&#39;, &#39;from@mail.com&#39;, &#39;yourName&#39;, &#39;test mail message&#39;, &#39;Hello World!&#39;);&lt;/div&gt;
&lt;div&gt;
Use this more “advanced” usage inside your application:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
if (smtpmailer(&#39;to@mail.com&#39;, &#39;from@mail.com&#39;, &#39;yourName&#39;, &#39;test mail message&#39;, &#39;Hello World!&#39;)) {&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;// do something&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
if (!empty($error)) echo $error;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/5325493973617818151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/send-mail-using-smtp-with-phpmailer-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5325493973617818151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5325493973617818151'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/send-mail-using-smtp-with-phpmailer-and.html' title='Send Mail using SMTP with PHPMailer and GMail'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-3642126398468044528</id><published>2012-06-26T06:18:00.000-07:00</published><updated>2012-06-26T06:21:55.686-07:00</updated><title type='text'>Optimizing PHP Code</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;

&lt;h1&gt;Optimized and more efficient PHP code&lt;/h1&gt;


&lt;ol style=&quot;color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19px; text-align: justify; &quot;&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;echo&amp;nbsp;is faster than&amp;nbsp;print.&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;require_once()&amp;nbsp;is expensive&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;If a method can be static, declare it static. Speed improvement is by a factor of 4.&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;Unset your variables to free memory, especially large arrays.&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;Use echo&#39;s multiple parameters instead of string concatenation.&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;Set the maxvalue for your for-loops before and not in the loop.&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;str_replace&amp;nbsp;is faster than&amp;nbsp;preg_replace, but&amp;nbsp;strtr&amp;nbsp;is faster than&amp;nbsp;str_replace&amp;nbsp;by a factor of 4&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;Avoid magic like __get, __set, __autoload&lt;/li&gt;

&lt;li style=&quot;padding-top: 10px; &quot;&gt;Use full paths in includes and requires, less time spent on resolving the OS paths.&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;If you need to find out the time when the script started executing,&amp;nbsp;INSERT:CONTENT:END SERVER[&#39;REQUEST_TIME&#39;]&amp;nbsp;is preferred to&amp;nbsp;time()&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;See if you can use strncasecmp, strpbrk and stripos instead of regex&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;str_replace&amp;nbsp;is faster than&amp;nbsp;preg_replace, but&amp;nbsp;strtr&amp;nbsp;is faster than&amp;nbsp;str_replace&amp;nbsp;by a factor of 4&lt;/li&gt;
&lt;li style=&quot;padding-top: 10px; &quot;&gt;If the function, such as string replacement function, accepts both arrays and single characters as arguments, and if your argument list is not too long, consider writing a few redundant replacement statements, passing one character at a time, instead of one line of code that accepts arrays as search and replace arguments.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;It&#39;s better to use select statements than multi if, else if, statements.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Error suppression with @ is very slow.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Turn on apache&#39;s mod_deflate&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Close your database connections when you&#39;re done with them&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;$row[&#39;id&#39;]&amp;nbsp;is 7 times faster than&amp;nbsp;$row[id]&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Error messages are expensive&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Do not use functions inside of for loop, such as&amp;nbsp;for ($x=0; $x &amp;lt; count($array); $x)&amp;nbsp;The count() function gets called each time.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Incrementing a local variable in a method is the fastest. Nearly the same as calling a local variable in a function.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Incrementing a global variable is 2 times slow than a local var.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Incrementing an object property (eg.&amp;nbsp;$this-&amp;gt;prop++) is 3 times slower than a local variable.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Incrementing an undefined local variable is 9-10 times slower than a pre-initialized one.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Just declaring a global variable without using it in a function also slows things down (by about the same amount as incrementing a local var). PHP probably does a check to see if the global exists.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Method invocation appears to be independent of the number of methods defined in the class because I added 10 more methods to the test class (before and after the test method) with no change in performance.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Methods in derived classes run faster than ones defined in the base class.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;A function call with one parameter and an empty function body takes about the same time as doing 7-8&amp;nbsp;$localvar++operations. A similar method call is of course about 15&amp;nbsp;$localvar++&amp;nbsp;operations.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Surrounding your string by &#39; instead of “&amp;nbsp;will make things interpret a little faster since php looks for variables inside&amp;nbsp;”...&quot; but not inside &#39;...&#39;. Of course you can only do this when you don&#39;t need to have variables in the string.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;When echoing strings it&#39;s faster to separate them by comma instead of dot. Note: This only works with echo, which is a function that can take several strings as arguments.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;A PHP script will be served at least 2-10 times slower than a static HTML page by Apache. Try to use more static HTML pages and fewer scripts.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Your PHP scripts are recompiled every time unless the scripts are cached. Install a PHP caching product to typically increase performance by 25-100% by removing compile times.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Cache as much as possible. Use memcached - memcached is a high-performance memory object caching system intended to speed up dynamic web applications by alleviating database load. OP code caches are useful so that your script does not have to be compiled on every request&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;When working with strings and you need to check that the string is either of a certain length you&#39;d understandably would want to use the strlen() function. This function is pretty quick since it&#39;s operation does not perform any calculation but merely return the already known length of a string available in the zval structure (internal C struct used to store variables in PHP). However because strlen() is a function it is still somewhat slow because the function call requires several operations such as lowercase &amp;amp; hashtable lookup followed by the execution of said function. In some instance you can improve the speed of your code by using an isset() trick.&lt;br&gt;&lt;br&gt;Example:if (strlen($foo) &amp;lt; 5) { echo &quot;Foo is too short&quot;; }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;vs.&lt;br&gt;&lt;br&gt;if (!isset($foo{5})) { echo &quot;Foo is too short&quot;; }&lt;br&gt;&lt;br&gt;Calling isset() happens to be faster then strlen() because unlike strlen(), isset() is a language construct and not a function meaning that it&#39;s execution does not require function lookups and lowercase. This means you have virtually no overhead on top of the actual code that determines the string&#39;s length.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;When incrementing or decrementing the value of the variable&amp;nbsp;$i++&amp;nbsp;happens to be a tad slower then&amp;nbsp;++$i. This is something PHP specific and does not apply to other languages, so don&#39;t go modifying your C or Java code thinking it&#39;ll suddenly become faster, it won&#39;t.&amp;nbsp;++$i&amp;nbsp;happens to be faster in PHP because instead of 4 opcodes used for&amp;nbsp;$i++&amp;nbsp;you only need 3. Post incrementation actually causes in the creation of a temporary var that is then incremented. While pre-incrementation increases the original value directly. This is one of the optimization that opcode optimized like Zend&#39;s PHP optimizer. It is a still a good idea to keep in mind since not all opcode optimizers perform this optimization and there are plenty of ISPs and servers running without an opcode optimizer.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Not everything has to be OOP, often it is too much overhead, each method and object call consumes a lot of memory.&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Do not implement every data structure as a class, arrays are useful, too&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Don&#39;t split methods too much, think, which code you will really re-use&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;You can always split the code of a method later, when needed&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Make use of the countless predefined functions&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;If you have very time consuming functions in your code, consider writing them as C extensions&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;Profile your code. A profiler shows you, which parts of your code consumes how many time. The Xdebug debugger already contains a profiler. Profiling shows you the bottlenecks in overview&lt;/li&gt;&lt;li style=&quot;padding-top: 10px; &quot;&gt;mod_gzip which is available as an Apache module compresses your data on the fly and can reduce the data to transfer up to 80%&lt;/li&gt;
   
    &lt;/ol&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/3642126398468044528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/optimizing-php-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3642126398468044528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3642126398468044528'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/optimizing-php-code.html' title='Optimizing PHP Code'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-7534527221852296937</id><published>2012-06-19T22:52:00.000-07:00</published><updated>2012-06-19T23:29:28.507-07:00</updated><title type='text'>PHP Array Functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
array_chunk() Definition and Usage  &lt;br/&gt;

The array_chunk() function splits an array into chunks of new arrays.
Syntax  &lt;br/&gt;
&lt;b&gt; array_chunk(array,size,preserve_key) &lt;/b&gt; &lt;br/&gt;

&lt;table class=&quot;reference&quot;&gt; 
  &lt;tbody&gt;&lt;tr&gt;
    &lt;th width=&quot;20%&quot; valign=&quot;top&quot; align=&quot;left&quot;&gt;Parameter&lt;/th&gt;
    &lt;th width=&quot;80%&quot; valign=&quot;top&quot; align=&quot;left&quot;&gt;Description&lt;/th&gt;
  &lt;/tr&gt;  
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Required. Specifies the array to use&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;size&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Required. Specifies how many elements each new array will contain&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;preserve_key&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Optional. Possible values:&lt;ul&gt;
      &lt;li&gt;true - Preserves the keys from the original array.&lt;/li&gt;
      &lt;li&gt;false - Default. Does not preserve the keys from the original array.&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;&lt;/table&gt;

&lt;h2&gt;Example 1&lt;/h2&gt;

&lt;div class=&quot;code notranslate&quot;&gt;&lt;div&gt;

&amp;lt;?php&lt;br&gt;
$a=array(&quot;a&quot;=&amp;gt;&quot;Cat&quot;,&quot;b&quot;=&amp;gt;&quot;Dog&quot;,&quot;c&quot;=&amp;gt;&quot;Horse&quot;,&quot;d&quot;=&amp;gt;&quot;Cow&quot;);&lt;br&gt;
print_r(array_chunk($a,2));&lt;br&gt;
?&amp;gt;

&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The output of the code above will be:&lt;/p&gt;

&lt;div class=&quot;code notranslate&quot;&gt;&lt;div&gt;

Array (&lt;br&gt;
[0] =&amp;gt; Array ( [a] =&amp;gt; Cat [b] =&amp;gt; Dog )&lt;br&gt;
[1] =&amp;gt; Array ( [c] =&amp;gt; Horse [d] =&amp;gt; Cow )&lt;br&gt;
)

&lt;/div&gt;&lt;/div&gt;


&lt;h2&gt;Example 2&lt;/h2&gt;
&lt;div class=&quot;code notranslate&quot;&gt;&lt;div&gt;

&amp;lt;?php&lt;br&gt;
$a=array(&quot;a&quot;=&amp;gt;&quot;Cat&quot;,&quot;b&quot;=&amp;gt;&quot;Dog&quot;,&quot;c&quot;=&amp;gt;&quot;Horse&quot;,&quot;d&quot;=&amp;gt;&quot;Cow&quot;);&lt;br&gt;
print_r(array_chunk($a,2,true));&lt;br&gt;
?&amp;gt;

&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The output of the code above will be:&lt;/p&gt;
&lt;div class=&quot;code notranslate&quot;&gt;&lt;div&gt;

Array (&lt;br&gt;
[0] =&amp;gt; Array ( [a] =&amp;gt; Cat [b] =&amp;gt; Dog )&lt;br&gt;
[1] =&amp;gt; Array ( [c] =&amp;gt; Horse [d] =&amp;gt; Cow )&lt;br&gt;
)

&lt;/div&gt;&lt;/div&gt;

&lt;table class=&quot;reference&quot;&gt;
  &lt;tbody&gt;&lt;tr&gt;
    &lt;th width=&quot;35%&quot; valign=&quot;top&quot; align=&quot;left&quot;&gt;Function&lt;/th&gt;
    &lt;th width=&quot;60%&quot; valign=&quot;top&quot; align=&quot;left&quot;&gt;Description&lt;/th&gt;
    &lt;th width=&quot;5%&quot; valign=&quot;top&quot; align=&quot;left&quot;&gt;PHP&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array.asp&quot;&gt;array()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Creates an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_change_key_case.asp&quot;&gt;array_change_key_case()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns an array with all keys in lowercase or uppercase&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_chunk.asp&quot;&gt;array_chunk()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Splits an array into chunks of arrays&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_combine.asp&quot;&gt;array_combine()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Creates an array by using one array for keys and another for its values&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_count_values.asp&quot;&gt;array_count_values()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns an array with the number of occurrences for each value&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_diff.asp&quot;&gt;array_diff()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array values, and returns the differences&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_diff_assoc.asp&quot;&gt;array_diff_assoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys and values, and returns the differences&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_diff_key.asp&quot;&gt;array_diff_key()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys, and returns the differences&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_diff_uassoc.asp&quot;&gt;array_diff_uassoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys and values, with an additional user-made function check, and returns the differences&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_diff_ukey.asp&quot;&gt;array_diff_ukey()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys, with an additional user-made function check, and returns the differences&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_fill.asp&quot;&gt;array_fill()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Fills an array with values&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_filter.asp&quot;&gt;array_filter()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Filters elements of an array using a user-made function&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_flip.asp&quot;&gt;array_flip()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Exchanges all keys with their associated values in an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_intersect.asp&quot;&gt;array_intersect()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array values, and returns the matches&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_intersect_assoc.asp&quot;&gt;array_intersect_assoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys and values, and returns the matches&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_intersect_key.asp&quot;&gt;array_intersect_key()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys, and returns the matches&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_intersect_uassoc.asp&quot;&gt;array_intersect_uassoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys and values, with an additional user-made function check, and returns the matches&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_intersect_ukey.asp&quot;&gt;array_intersect_ukey()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys, with an additional user-made function check, and returns the matches&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_key_exists.asp&quot;&gt;array_key_exists()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Checks if the specified key exists in the array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_keys.asp&quot;&gt;array_keys()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns all the keys of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_map.asp&quot;&gt;array_map()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sends each value of an array to a user-made function, which returns new values&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_merge.asp&quot;&gt;array_merge()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Merges one or more arrays into one array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_merge_recursive.asp&quot;&gt;array_merge_recursive()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Merges one or more arrays into one array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_multisort.asp&quot;&gt;array_multisort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts multiple or multi-dimensional arrays&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_pad.asp&quot;&gt;array_pad()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Inserts a specified number of items, with a specified value, to an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_pop.asp&quot;&gt;array_pop()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Deletes the last element of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_product.asp&quot;&gt;array_product()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Calculates the product of the values in an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_push.asp&quot;&gt;array_push()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Inserts one or more elements to the end of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_rand.asp&quot;&gt;array_rand()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns one or more random keys from an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_reduce.asp&quot;&gt;array_reduce()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns an array as a string, using a user-defined function&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_reverse.asp&quot;&gt;array_reverse()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns an array in the reverse order&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_search.asp&quot;&gt;array_search()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Searches an array for a given value and returns the key&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_shift.asp&quot;&gt;array_shift()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Removes the first element from an array, and returns the value of the removed element&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_slice.asp&quot;&gt;array_slice()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns selected parts of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_splice.asp&quot;&gt;array_splice()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Removes and replaces specified elements of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_sum.asp&quot;&gt;array_sum()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns the sum of the values in an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_udiff.asp&quot;&gt;array_udiff()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array values in a user-made function and returns an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_udiff_assoc.asp&quot;&gt;array_udiff_assoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys, and compares array values in a user-made function, and returns an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_udiff_uassoc.asp&quot;&gt;array_udiff_uassoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys and array values in user-made functions, and returns an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_uintersect.asp&quot;&gt;array_uintersect()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array values in a user-made function and returns an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_uintersect_assoc.asp&quot;&gt;array_uintersect_assoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys, and compares array values in a user-made function, and returns an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_uintersect_uassoc.asp&quot;&gt;array_uintersect_uassoc()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Compares array keys and array values in user-made functions, and returns an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_unique.asp&quot;&gt;array_unique()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Removes duplicate values from an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_unshift.asp&quot;&gt;array_unshift()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Adds one or more elements to the beginning of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_values.asp&quot;&gt;array_values()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns all the values of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_walk.asp&quot;&gt;array_walk()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Applies a user function to every member of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_walk_recursive.asp&quot;&gt;array_walk_recursive()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Applies a user function recursively to every member of an 
 array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_arsort.asp&quot;&gt;arsort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array in reverse order and maintain index 
 association&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_asort.asp&quot;&gt;asort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array and maintain index association&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_compact.asp&quot;&gt;compact()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Create array containing variables and their values&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_count.asp&quot;&gt;count()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Counts elements in an array, or properties in an object&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_current.asp&quot;&gt;current()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns the current element in an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_each.asp&quot;&gt;each()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Returns the current key and value pair from an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_end.asp&quot;&gt;end()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sets the internal pointer of an array to its last element&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_extract.asp&quot;&gt;extract()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Imports variables into the current symbol table from an 
 array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_in_array.asp&quot;&gt;in_array()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Checks if a specified value exists in an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_key.asp&quot;&gt;key()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Fetches a key from an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_krsort.asp&quot;&gt;krsort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array by key in reverse order&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_ksort.asp&quot;&gt;ksort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array by key&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_list.asp&quot;&gt;list()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Assigns variables as if they were an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_natcasesort.asp&quot;&gt;natcasesort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array using a case insensitive &quot;natural order&quot; 
 algorithm&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_natsort.asp&quot;&gt;natsort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array using a &quot;natural order&quot; algorithm&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_next.asp&quot;&gt;next()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Advance the internal array pointer of an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_pos.asp&quot;&gt;pos()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Alias of current()&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_prev.asp&quot;&gt;prev()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Rewinds the internal array pointer&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_range.asp&quot;&gt;range()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Creates an array containing a range of elements&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_reset.asp&quot;&gt;reset()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sets the internal pointer of an array to its first element&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_rsort.asp&quot;&gt;rsort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array in reverse order&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_shuffle.asp&quot;&gt;shuffle()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Shuffles an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_sizeof.asp&quot;&gt;sizeof()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Alias of count()&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_sort.asp&quot;&gt;sort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_uasort.asp&quot;&gt;uasort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array with a user-defined function and 
 maintain index association&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_uksort.asp&quot;&gt;uksort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array by keys using a user-defined function&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;&lt;a href=&quot;func_array_usort.asp&quot;&gt;usort()&lt;/a&gt;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Sorts an array by values using a user-defined  
 function&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;&lt;/table&gt;

&lt;h2&gt;PHP Array Constants&lt;/h2&gt;

&lt;table class=&quot;reference&quot;&gt;
  &lt;tbody&gt;&lt;tr&gt;
    &lt;th width=&quot;35%&quot; align=&quot;left&quot;&gt;Constant&lt;/th&gt;
    &lt;th width=&quot;60%&quot; align=&quot;left&quot;&gt;Description&lt;/th&gt;
    &lt;th width=&quot;5%&quot; align=&quot;left&quot;&gt;PHP&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;CASE_LOWER&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used with array_change_key_case() to convert array keys to 
 lower case&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;CASE_UPPER&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used with array_change_key_case() to convert array keys to 
 upper case&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
 &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;SORT_ASC&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used with array_multisort() to sort in ascending order&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;SORT_DESC&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used with array_multisort() to sort in descending order&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;SORT_REGULAR&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used to compare items normally&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;SORT_NUMERIC&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used to compare items numerically&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;SORT_STRING&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used to compare items as strings&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;SORT_LOCALE_STRING&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;Used to compare items as strings, based on the current 
 locale &lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;4&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;COUNT_NORMAL&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;COUNT_RECURSIVE&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_OVERWRITE&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_SKIP&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_PREFIX_SAME&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_PREFIX_ALL&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_PREFIX_INVALID&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_PREFIX_IF_EXISTS&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_IF_EXISTS&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td valign=&quot;top&quot;&gt;EXTR_REFS&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
    &lt;td valign=&quot;top&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/tbody&gt;&lt;/table&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/7534527221852296937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-array-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/7534527221852296937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/7534527221852296937'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-array-functions.html' title='PHP Array Functions'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-5493726466472152414</id><published>2012-06-19T22:23:00.002-07:00</published><updated>2012-06-19T22:23:37.836-07:00</updated><title type='text'>PHP HTML basic tips, tricks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;

&lt;div id=&quot;post-5&quot; class=&quot;post-5 post type-post status-publish format-standard hentry category-html category-tips-tricks tag-lamp tag-php tag-tutorial tag-tutorials tag-web&quot;&gt;
   &lt;h2&gt;PHP HTML basic tips and&amp;nbsp;tricks&lt;/h2&gt;

   &lt;div class=&quot;entry&quot;&gt;
    &lt;p&gt;PHP is an HTML-embedded scripting language. The goal of the language is to allow web developers to write dynamically generated pages quickly. In the course of web development of using PHP PHP and HTML interact a lot. PHP can generate HTML, and HTML can pass information to PHP.&lt;/p&gt;
&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Encoding/decoding when passing a data through a form or URL&lt;/strong&gt;&lt;br&gt;
Certain characters, for example ‘&amp;amp;’, have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings. There are several stages for which encoding is important. Assuming that you have a string $data, which contains the string you want to pass on in a non-encoded way, these are the relevant stages.&lt;/p&gt;
&lt;p&gt;Passing a value through HTML FORM you must include it in double quotes, and htmlspecialchars() the whole value. For exampe see the code below&lt;/p&gt;
&lt;p class=&quot;example&quot;&gt;&lt;em&gt;&amp;lt;?php echo “&amp;lt;input name=’data’ type=’hidden’ value=’&lt;strong&gt;” . htmlspecialchars($data) . “&lt;/strong&gt;‘&amp;gt;”; ?&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;While passing a value through URL you must encode it with urlencode(). It will convert all non-alphanumeric characters except -_. with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. See example below.&lt;br&gt;
&lt;em&gt;&amp;lt;?php echo “&amp;lt;a href=’” . htmlspecialchars(“/nextpage.php?stage=23&amp;amp;data=” .&lt;strong&gt;urlencode($data)&lt;/strong&gt; . “‘&amp;gt;\n”; ?&amp;gt;&lt;br&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Creating a PHP arrays in a HTML form&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To get your FORM result sent as an array to your PHP script you name the INPUT, SELECT, TEXTAREA elements like this:&lt;br&gt;
&lt;em&gt;&amp;lt;input name=”&lt;strong&gt;MyArray[]&lt;/strong&gt;“&amp;gt;&lt;br&gt;
&amp;lt;input name=”MyArray[]“&amp;gt;&lt;br&gt;
&amp;lt;input name=”MyArray[]“&amp;gt;&lt;br&gt;
&amp;lt;input name=”MyArray[]“&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you do not specify the keys, the array gets filled in the order the elements appear in the form. Above example will contain keys 0, 1, 2 and 3. Notice the square brackets after the variable name, that’s what makes it an array. You can group the elements into different arrays by assigning the same name to different elements:&lt;br&gt;
&lt;em&gt;&amp;lt;input name=”&lt;strong&gt;MyArray[]&lt;/strong&gt;“&amp;gt;&lt;br&gt;
&amp;lt;input name=”MyArray[]“&amp;gt;&lt;br&gt;
&amp;lt;input name=”&lt;strong&gt;MyOtherArray[]&lt;/strong&gt;“&amp;gt;&lt;br&gt;
&amp;lt;input name=”MyOtherArray[]“&amp;gt;&lt;br&gt;
&lt;/em&gt;This produces two arrays, MyArray and MyOtherArray, that gets sent to the PHP script. It’s also possible to assign specific keys to your arrays:&lt;br&gt;
&lt;em&gt;&amp;lt;input name=”AnotherArray[]“&amp;gt;&lt;br&gt;
&amp;lt;input name=”AnotherArray[]“&amp;gt;&lt;br&gt;
&amp;lt;input name=”&lt;strong&gt;AnotherArray[email]&lt;/strong&gt;“&amp;gt;&lt;br&gt;
&amp;lt;input name=”AnotherArray[phone]“&amp;gt;&lt;/em&gt;&lt;br&gt;
The AnotherArray array will now contain the keys 0, 1, email and phone.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Getting results from a select multiple HTML tag.&lt;/strong&gt;&lt;br&gt;
The select multiple tag in an HTML construct allows users to select multiple items from a list. These items are then passed to the action handler for the form. The problem is that they are all passed with the same widget name. I.e.&lt;br&gt;
&lt;em&gt;&amp;lt;select name=”var” &lt;strong&gt;multiple=”yes”&lt;/strong&gt;&amp;gt;&lt;br&gt;
&lt;/em&gt;Each selected option will arrive at the action handler as var=option1, var=option2, var=option3. Each option will overwrite the contents of the previous $var variable. The solution is to use PHP’s “array from form element” feature. The following should be used:&lt;br&gt;
&lt;em&gt;&amp;lt;select name=”&lt;strong&gt;var[]&lt;/strong&gt;” multiple=”yes”&amp;gt;&lt;br&gt;
&lt;/em&gt;Now first item becomes $var[0], the next $var[1], etc.&lt;/p&gt;
&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Passing a variable from Javascript to PHP&lt;br&gt;
&lt;/strong&gt;Since Javascript is a client-side technology, and PHP is a server-side technology, the two languages cannot directly share variables. It is, however, possible to pass variables between the two. One way of accomplishing this is to generate Javascript code with PHP, and have the browser refresh itself, passing specific variables back to the PHP script. The example below shows precisely how to do this &amp;mdash; it allows PHP code to capture screen height and width, something that is normally only possible on the client side.&lt;br&gt;
&lt;em&gt;&amp;lt;?php&lt;br&gt;
if (isset($_GET[&#39;width&#39;]) AND isset($_GET[&#39;height&#39;])) {&lt;br&gt;
&amp;nbsp; // output the geometry variables&lt;br&gt;
&amp;nbsp; echo “Screen width is: “. $_GET[&#39;width&#39;] .”&amp;lt;br /&amp;gt;\n”;&lt;br&gt;
&amp;nbsp; echo “Screen height is: “. $_GET[&#39;height&#39;] .”&amp;lt;br /&amp;gt;\n”;&lt;br&gt;
} else {&lt;br&gt;
&amp;nbsp; // pass the geometry variables&lt;br&gt;
&amp;nbsp; // (preserve the original query string&lt;br&gt;
&amp;nbsp; //&amp;nbsp;&amp;nbsp; &amp;mdash; post variables will need to handled differently)&lt;/em&gt;&lt;/p&gt;
&lt;p align=&quot;justify&quot;&gt;&lt;em&gt;&amp;nbsp; echo “&amp;lt;script language=’javascript’&amp;gt;\n”;&lt;br&gt;
&amp;nbsp; echo “&amp;nbsp; location.href=\”${_SERVER[&#39;SCRIPT_NAME&#39;]}?${_SERVER[&#39;QUERY_STRING&#39;]}”&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . &lt;strong&gt;“&amp;amp;width=\” + screen.width + \”&amp;amp;height=\” + screen.height;\n”;&lt;/strong&gt;&lt;br&gt;
&amp;nbsp; echo “&amp;lt;/script&amp;gt;\n”;&lt;br&gt;
&amp;nbsp; exit();&lt;br&gt;
}&lt;br&gt;
?&amp;gt;&amp;nbsp;&lt;br&gt;
&lt;/em&gt;&lt;/p&gt;
    

    

   &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/5493726466472152414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-html-basic-tips-tricks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5493726466472152414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5493726466472152414'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-html-basic-tips-tricks.html' title='PHP HTML basic tips, tricks'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-1623407304694544011</id><published>2012-06-19T22:18:00.000-07:00</published><updated>2012-06-19T22:18:04.618-07:00</updated><title type='text'>PHP Arrays Tutorials</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div id=&quot;post-9&quot; class=&quot;post-9 post type-post status-publish format-standard hentry category-tutorials tag-html tag-lamp tag-php tag-technology tag-tips-tricks tag-tutorial tag-web&quot;&gt;
   &lt;h2&gt;PHP Arrays Tutorial and PHP Array&amp;nbsp;Examples&lt;/h2&gt;

   &lt;div class=&quot;entry&quot;&gt;
    &lt;p align=&quot;justify&quot;&gt;An array in PHP is actually an ordered map. A map is a type that maps values to keys. This type is optimized in several ways, so you can use it as a real array, or a list (vector), hashtable (which is an implementation of a map), dictionary, collection, stack, queue and probably more. Because you can have another PHP array as a value, you can also quite easily simulate trees.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PHP Array Syntax: Create an Array&lt;/strong&gt;&lt;br&gt;
language-construct &lt;strong&gt;array()&lt;/strong&gt; is used to create an array in PHP. See example below&lt;/p&gt;
&lt;p&gt;&lt;em&gt;array( [key =&amp;gt;] value&lt;br&gt;
&amp;nbsp; , …&lt;br&gt;
&amp;nbsp; )&lt;br&gt;
&lt;/em&gt;&lt;strong&gt;key&lt;/strong&gt;: key may be an integer or string&lt;br&gt;
&lt;strong&gt;value&lt;/strong&gt;: A value can be of any PHP type&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Examples&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;$arr = array(“foo” =&amp;gt; “bar”, 12 =&amp;gt; true);&lt;br&gt;
echo $arr[&quot;foo&quot;]; this will print bar&lt;br&gt;
echo $arr[12]; this will print 1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;if you provide the brackets with no key specified, then the maximum of the existing integer indices +1 is taken as key. see below&lt;/p&gt;
&lt;p&gt;&lt;em&gt;$arr = array(5 =&amp;gt; 1, 12 =&amp;gt; 2); This will create an array with 2 elements&lt;br&gt;
$arr[] = 56;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new key will be&amp;nbsp;maximum key + 1 i.e $arr[13] = 56&lt;br&gt;
$arr[&quot;x&quot;] = 42;&amp;nbsp; This adds a new element to the array with key “x”&lt;br&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;array(5 =&amp;gt; 43, 32, 56, “b” =&amp;gt; 12); This array is the same as following.&lt;br&gt;
array(5 =&amp;gt; 43, 6 =&amp;gt; 32, 7 =&amp;gt; 56, “b” =&amp;gt; 12); &lt;/em&gt;&lt;/p&gt;
&lt;p align=&quot;justify&quot;&gt;&lt;strong&gt;Handling arrays from html form inputs to php scripts&lt;/strong&gt;&lt;br&gt;
Following example will show we can use an array from html form inputs.&lt;/p&gt;
&lt;p&gt;HTML form with array&lt;br&gt;
&lt;em&gt;&amp;lt;input type=”checkbox” name=”selected_ids[]” value=”1?&amp;gt;&lt;br&gt;
&amp;lt;input type=”checkbox” name=”selected_ids[]” value=”2?&amp;gt;&lt;br&gt;
&amp;lt;input type=”checkbox” name=”selected_ids[]” value=”3?&amp;gt;&lt;br&gt;
&amp;lt;input type=”checkbox” name=”selected_ids[]” value=”11?&amp;gt;&lt;br&gt;
&amp;lt;input type=”checkbox” name=”selected_ids[]” value=”12?&amp;gt;&lt;br&gt;
&amp;lt;input type=”checkbox” name=”selected_ids[]” value=”13?&amp;gt;&lt;br&gt;
&lt;/em&gt;&lt;/p&gt;
&lt;p align=&quot;justify&quot;&gt;When we submit above form, it will generate $_POST[&#39;selected_ids&#39;][] array to the form handling php script. This array holds all selected checkbox values from above html form. foreach() construct can be used to extract values from the array. Following code example will show how we can extract those values from the returning array.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;foreach ($_POST[&#39;selected_ids&#39;] as $key =&amp;gt; $value) {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo “Key: $key; Value: $value&amp;lt;br&amp;gt;”;&lt;br&gt;
}&lt;br&gt;
&lt;/em&gt;for example if 1,2 and 12 is selected from the above html form then above code will print&lt;br&gt;
&lt;em&gt;Key: 0 Value: 1&lt;br&gt;
Key: 1 Value: 2&lt;br&gt;
Key: 2 Value: 12&lt;/em&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;



&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/1623407304694544011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-arrays-tutorials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/1623407304694544011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/1623407304694544011'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-arrays-tutorials.html' title='PHP Arrays Tutorials'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-5392053220788519628</id><published>2012-06-14T01:54:00.004-07:00</published><updated>2012-06-14T02:00:53.691-07:00</updated><title type='text'>PHP: How to detect / get the real client IP address of website visitors</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;

echo $_SERVER[&#39;REMOTE_ADDR&#39;]; 

&lt;br/&gt;

&lt;pre&gt;&lt;code&gt;function get_ip_address() {
    foreach (array(&#39;&lt;strong&gt;HTTP_CLIENT_IP&lt;/strong&gt;&#39;, &#39;&lt;strong&gt;HTTP_X_FORWARDED_FOR&lt;/strong&gt;&#39;, &#39;&lt;strong&gt;HTTP_X_FORWARDED&lt;/strong&gt;&#39;, &#39;&lt;strong&gt;HTTP_X_CLUSTER_CLIENT_IP&lt;/strong&gt;&#39;, &#39;&lt;strong&gt;HTTP_FORWARDED_FOR&lt;/strong&gt;&#39;, &#39;&lt;strong&gt;HTTP_FORWARDED&lt;/strong&gt;&#39;, &#39;&lt;strong&gt;REMOTE_ADDR&lt;/strong&gt;&#39;) as $key) {
        if (array_key_exists($key, $_SERVER) === true) {
            foreach (explode(&#39;,&#39;, $_SERVER[$key]) as $ip) {
                if (&lt;strong&gt;filter_var&lt;/strong&gt;($ip, FILTER_VALIDATE_IP) !== false) {
                    return $ip;
                }
            }
        }
    }
}&lt;/code&gt;&lt;/pre&gt;



&lt;center&gt;&lt;b&gt;Server variables&lt;/b&gt;&lt;/center&gt; &lt;br/&gt;
&lt;hr&gt;
GATEWAY_INTERFACE =  $_SERVER[&#39;GATEWAY_INTERFACE&#39;]; &lt;br&gt;
SERVER_ADDR =  $_SERVER[&#39;SERVER_ADDR&#39;]; &lt;br&gt;
SERVER_NAME =  $_SERVER[&#39;SERVER_NAME&#39;]; &lt;br&gt;
SERVER_SOFTWARE =  $_SERVER[&#39;SERVER_SOFTWARE&#39;]; &lt;br&gt;
SERVER_PROTOCOL =  $_SERVER[&#39;SERVER_PROTOCOL&#39;]; &lt;br&gt;
REQUEST_METHOD =  $_SERVER[&#39;REQUEST_METHOD&#39;]; &lt;br&gt;
REQUEST_TIME =  $_SERVER[&#39;REQUEST_TIME&#39;]; &lt;br&gt;
QUERY_STRING =  $_SERVER[&#39;QUERY_STRING&#39;]; &lt;br&gt;
DOCUMENT_ROOT =  $_SERVER[&#39;DOCUMENT_ROOT&#39;]; &lt;br&gt;
HTTP_ACCEPT =  $_SERVER[&#39;HTTP_ACCEPT&#39;]; &lt;br&gt;
HTTP_ACCEPT_CHARSET =  $_SERVER[&#39;HTTP_ACCEPT_CHARSET&#39;]; &lt;br&gt;
HTTP_ACCEPT_ENCODING =  $_SERVER[&#39;HTTP_ACCEPT_ENCODING&#39;]; &lt;br&gt;
HTTP_ACCEPT_LANGUAGE =  $_SERVER[&#39;HTTP_ACCEPT_LANGUAGE&#39;]; &lt;br&gt;
HTTP_CONNECTION =  $_SERVER[&#39;HTTP_CONNECTION&#39;]; &lt;br&gt;
HTTP_HOST =  $_SERVER[&#39;HTTP_HOST&#39;]; &lt;br&gt;
HTTP_REFERER =  $_SERVER[&#39;HTTP_REFERER&#39;]; &lt;br&gt;
HTTP_USER_AGENT =  $_SERVER[&#39;HTTP_USER_AGENT&#39;]; &lt;br&gt;
HTTPS =  $_SERVER[&#39;HTTPS&#39;]; &lt;br&gt;
REMOTE_ADDR =  $_SERVER[&#39;REMOTE_ADDR&#39;]; &lt;br&gt;
REMOTE_HOST =  $_SERVER[&#39;REMOTE_HOST&#39;]; &lt;br&gt;
REMOTE_PORT =  $_SERVER[&#39;REMOTE_PORT&#39;]; &lt;br&gt;
SCRIPT_FILENAME =  $_SERVER[&#39;SCRIPT_FILENAME&#39;]; &lt;br&gt;
SERVER_ADMIN =  $_SERVER[&#39;SERVER_ADMIN&#39;]; &lt;br&gt;
SERVER_PORT =  $_SERVER[&#39;SERVER_PORT&#39;]; &lt;br&gt;
SERVER_SIGNATURE =  $_SERVER[&#39;SERVER_SIGNATURE&#39;]; &lt;br&gt;
PATH_TRANSLATED =  $_SERVER[&#39;PATH_TRANSLATED&#39;]; &lt;br&gt;
SCRIPT_NAME =  $_SERVER[&#39;SCRIPT_NAME&#39;]; &lt;br&gt;
REQUEST_URI =  $_SERVER[&#39;REQUEST_URI&#39;]; &lt;br&gt;
PHP_AUTH_DIGEST =  $_SERVER[&#39;PHP_AUTH_DIGEST&#39;]; &lt;br&gt;
PHP_AUTH_USER =  $_SERVER[&#39;PHP_AUTH_USER&#39;]; &lt;br&gt;
PHP_AUTH_PW =  $_SERVER[&#39;PHP_AUTH_PW&#39;]; &lt;br&gt;
AUTH_TYPE =  $_SERVER[&#39;AUTH_TYPE&#39;]; &lt;br&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/5392053220788519628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-how-to-detect-get-real-client-ip.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5392053220788519628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/5392053220788519628'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-how-to-detect-get-real-client-ip.html' title='PHP: How to detect / get the real client IP address of website visitors'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-3619198263674337593</id><published>2012-06-11T10:01:00.001-07:00</published><updated>2012-06-11T10:01:17.959-07:00</updated><title type='text'>PHP : Session And Cookie</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt; PHP : Session And Cookie &lt;/h1&gt; &lt;br/&gt;


&lt;p&gt;

difference between cookies and sessions is that cookies are stored in the user&#39;s browser, and sessions are not. &lt;br/&gt; 
This difference determines what each is best used for.
A cookie can keep information in the user&#39;s browser until deleted. &lt;br/&gt;

If a person has a login and password, this can be set as a cookie in their browser so they do not have to re-login to your website every time they visit. &lt;br/&gt;

You can store almost anything in a browser cookie. The trouble is that a user can block cookies or delete them at any time. &lt;br/&gt;

 If, for example, your website&#39;s shopping cart utilized cookies, and a person had their browser set to block them, then they could not shop at your website.  &lt;br/&gt;



&lt;/p&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/3619198263674337593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-session-and-cookie.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3619198263674337593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3619198263674337593'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/php-session-and-cookie.html' title='PHP : Session And Cookie'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-3502099724578684223</id><published>2012-06-08T03:40:00.002-07:00</published><updated>2012-06-11T03:00:31.043-07:00</updated><title type='text'>HCL interview questions for PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
HCL interview questions for PHP
&lt;br /&gt;

&lt;div itemtype=&quot;http://schema.org/BlogPosting&quot; itemscope=&quot;itemscope&quot; class=&quot;post hentry&quot;&gt;

&lt;div itemprop=&quot;articleBody&quot; id=&quot;post-body-6764836370540854853&quot; class=&quot;post-body entry-content&quot;&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;1.what is ajax?&lt;br&gt;2.different response types in ajax?&lt;br&gt;3.different states in ajax?&lt;br&gt;4.what is json?&lt;br&gt;5.how to parse json response data?&lt;br&gt;6.how do u place two div elements side by side?&lt;br&gt;7.how do u place two images one on another?&lt;br&gt;8.stored procedures?&lt;br&gt;9.diff b/w echo and print?&lt;br&gt;10.&quot;sk.aariz@gmail.com&quot; how to get the string b/w two dots(.) using php string functions?&lt;br&gt;11.what is shift operator?&lt;br&gt;12.what is array_shift?&lt;br&gt;13 .what is array_unshift?&lt;br&gt;14.array_combine().&lt;br&gt;$array1 = (a=&amp;gt;abc,a=&amp;gt;bc,a=&amp;gt;ac,a=&amp;gt;abcd);&lt;br&gt;$array2 = (azaad,aariz);&lt;br&gt;what ia the o/p of array_combine()?&lt;br&gt;15.how to override inline css with external css?&lt;br&gt;16.how will you validate input data in javascript and in php?(cross site scripting)&lt;br&gt;17.echo print(&#39;hello&#39;); what is the o/p?&lt;br&gt;18.CSS sprite technique?&lt;br&gt;19.document types in html?&lt;br&gt;20.Difference between HTML and DHTML?&lt;br&gt;21.How willa create the following layout using div&#39;s?&lt;br&gt;22.what is the difference between padding and margin?&lt;br&gt;23.I have two iframes in a page how can I pass variables of one frame to another using javascript?&lt;br&gt;24.Explain singleton pattern?&lt;br&gt;25.What is Encapsulation?How will you achieve that in PHP?&lt;br&gt;26 What is load balencing? How will you do it?&lt;br&gt;27.How will you pass sessions from one server to another?&lt;br&gt;28.What is opcode &amp;amp; opcode cache?&lt;br&gt;29.How will you fix cross browser issues for CSS and JAVASCRIPT?&lt;br&gt;30.Is there any place in your project where the application is running slow?How will you fix that?&lt;br&gt;31.What is CSS sprite technique?&lt;br&gt;32.AJAX states?&lt;br&gt;33.In which variable you will get the response states?&lt;br&gt;34.What are environment variables.&lt;br&gt;35.Difference between PHP4 and PHP5?&lt;br&gt;36.How will you improve the page performence in front-end(front-end caching)?&lt;br&gt;37.Diff between a div teg and a span tag?&lt;br&gt;38.Explain CSS box model?&lt;br&gt;39.What is cascading?&lt;br&gt;40.Separating a number from a string using javascript?&lt;br&gt;41.CSS hacks?&lt;br&gt;42.What are access specifiers in PHP?&lt;br&gt;43.Diffenrece between Abstract class and Interface?&lt;br&gt;44.What are the different mysql Engines?&lt;br&gt;45.What is a persistance cookie?&lt;br&gt;46.What is static keyword?&lt;br&gt;47.Different query optimization techniques?&lt;br&gt;48.Inheritance in Javascript?&lt;br&gt;49.Difference between visibility :hidden and display:none?&lt;br&gt;50.XHTML Rules?&lt;br&gt;51.How will you optimize php applications?&lt;br&gt;52.What are the properties of CSS &quot;position&quot; ?&lt;br&gt;53.Different types of joins in mysql?&lt;br&gt;54.How will you find whether your browser supports cookies using javascript?&lt;br&gt;55.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgluWfWSUUtBae-TZ4F-gqwNdOKSO8AJ4gixwvtFHIHaII2rjq2ny6pooHjwfndygidjW1J_IaQaVVUwbwdx7Ex3_QDw9YxaoMLe0amj2GhckK-RsphDrH7bk22u7oq01uFL7RDZQ0PA4c/s1600/student_marks.png&quot;&gt;&lt;img border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5560169197353744626&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgluWfWSUUtBae-TZ4F-gqwNdOKSO8AJ4gixwvtFHIHaII2rjq2ny6pooHjwfndygidjW1J_IaQaVVUwbwdx7Ex3_QDw9YxaoMLe0amj2GhckK-RsphDrH7bk22u7oq01uFL7RDZQ0PA4c/s320/student_marks.png&quot; style=&quot;display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 130px;&quot;&gt;&lt;/a&gt;&lt;br&gt;How will you get student name and total marks of a first rank student?&lt;br&gt;&lt;br&gt;56.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXlbfEf9AymtW7yqyuxGPEGCR4g7MXYw_aqZApDd0Sy6wQR0eJqR29wDHlSS7IFoBtNL6YK76TnNoOVdvtwtSrAREkRcIuREJJygMagKw7FtyrIMIJZTZuStW9-BmcsLIiVc_v47r_1CA/s1600/emp-interview.png&quot;&gt;&lt;img border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5560170644757084146&quot; alt=&quot;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXlbfEf9AymtW7yqyuxGPEGCR4g7MXYw_aqZApDd0Sy6wQR0eJqR29wDHlSS7IFoBtNL6YK76TnNoOVdvtwtSrAREkRcIuREJJygMagKw7FtyrIMIJZTZuStW9-BmcsLIiVc_v47r_1CA/s320/emp-interview.png&quot;&gt;&lt;/a&gt;&lt;br&gt;one employee can take interview to any number of candidates.How will you get count of candidates an employee taken interview?
&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/3502099724578684223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/hcl-interview-questions-for-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3502099724578684223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3502099724578684223'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/hcl-interview-questions-for-php.html' title='HCL interview questions for PHP'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgluWfWSUUtBae-TZ4F-gqwNdOKSO8AJ4gixwvtFHIHaII2rjq2ny6pooHjwfndygidjW1J_IaQaVVUwbwdx7Ex3_QDw9YxaoMLe0amj2GhckK-RsphDrH7bk22u7oq01uFL7RDZQ0PA4c/s72-c/student_marks.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-2092453879747806252</id><published>2012-06-07T02:20:00.001-07:00</published><updated>2012-06-21T10:44:57.089-07:00</updated><title type='text'>What is Moodle?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;

What is Moodle?&lt;/h1&gt;
&lt;br /&gt;
Moodle is a Learning Management System, Course Management System, or Virtual Learning Environment, depending on which term you prefer. Its goal is to give teachers and students the tools they need to teach and learn. Moodle comes from a background of Social Constructionist pedagogy, however, it can be used to support any style of teaching and learning.

There are other types of software systems that are important for educational institutions, for example ePortfolios, Student Information Systems and Content repositories. Generally, Moodle does not try to re-invent these areas of functionality. Instead, tries to be the best LMS possible, and then interoperate gracefully with other systems that provide the other areas of functionality. It is, however, perfectly possible to use Moodle as a stand-alone system, without integrating it with anything else.

Moodle is a web application written in PHP. Moodle is open source. Copyright is owned by individual contributors, not assigned to a single entity, although the company Moodle Pty Ltd in Perth Australia, owned by Moodle&#39;s founder Martin Dougiamas, manages the project. 

&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 14pt;&quot;&gt;What Is Moodle?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Moodle is a free, online,
open source course management system&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;used in an increasing
number of universities to conduct online and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;blended courses as well as
to enhance traditional classroom&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;courses..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: BellGothicStd-Black; font-size: 18pt;&quot;&gt;Getting Started&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Moodle allows instructors
to add all content and activities on the course homepage. Students are able to
see&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;and access all related
content and activities from the main course page rather than having to navigate
between&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;various areas of the course
to access different types of materials. Instructors group content and
activities into&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;modules which can be
organized by topics or by weeks.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Different areas in a
Moodle course include: the &lt;b&gt;Activities &lt;/b&gt;block , the &lt;b&gt;People &lt;/b&gt;block ,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;the &lt;b&gt;Administration &lt;/b&gt;block
, &lt;b&gt;Settings &lt;/b&gt;, &lt;b&gt;Editing &lt;/b&gt;, &lt;b&gt;Add a Resource &lt;/b&gt;area , and &lt;b&gt;Add an
Activity &lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif;&quot;&gt;Moodle:
Introduction&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;The Activities Block&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;The Activities block
allows users to view a list of all course activities arranged by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;category. This block will
only display categories that have items available to participants.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;The People Block&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;The &lt;b&gt;People &lt;/b&gt;block
displays the names, assigned roles, and profiles of every currently&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;enrolled participant in
the course. You can access a user’s profile by clicking on their&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;name. You can edit your
own profile by clicking on your name and choosing the &lt;b&gt;Edit&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Profile &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;option.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;The Administration Block&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;The &lt;b&gt;Administration &lt;/b&gt;block
is the most important block in your course. The &lt;b&gt;Turn Editing&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;On &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;option
enables you to add activities and resources to the course. After turning
editing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;on there will be several
small icons in each block and topic. These include arrows for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;altering the position
(left, right, up, or down), the update icon, the delete icon, and the eye&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;icon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: BellGothicStd-Black; font-size: 18pt;&quot;&gt;Changing Your Settings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;To adjust the course
settings, click the &lt;b&gt;Settings &lt;/b&gt;item located under &lt;b&gt;Administration &lt;/b&gt;block.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Here you can set the
course availability to students. Additionally you may add a short&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;summary of the course, as
well as change the number of topics.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Icons&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 9pt;&quot;&gt;*Note: You
must create groups and set the activity to group mode to have an impact on
this. Once something is in group mode, the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 9pt;&quot;&gt;icon will
look like &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Using the
eye icons: &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;When eye icon is ‘open’ the item is visible and accessible to
participants. When the icon&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;is clicked the eye will ‘close’
and the item becomes hidden and inaccessible to participants. This function is&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;useful when you want to
keep an item in your course (rather than deleting it), but do not want
participants to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;have access to it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Icon
Effect Icon Effect Icon Effect Icon Effect&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Edit item&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Close/Hide&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;item Delete/Remove Groups
Icon*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;See all&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;weeks/topics&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Open/Show&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Item Indent/shift right
Move here&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;See one&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;week/topic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Help Move Icon*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Make Current (highlight)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;week/topic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Making a Course Visible to Students&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. Click on &lt;b&gt;Settings &lt;/b&gt;under
the Administration block.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. Under the &lt;b&gt;Availability
&lt;/b&gt;block, set the &lt;b&gt;Availability&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;drop-down to &lt;b&gt;This
course is available to&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;students&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. Click on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Note: &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Your
course will remain in gray on the Moodle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;homepage
until your next login.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Changing the Number of Modules (aka Topics)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Each Moodle course, by
default, is created with 10 modules (topics).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;To change the number of
modules, follow these steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. Click on &lt;b&gt;Settings &lt;/b&gt;under
the &lt;b&gt;Administration &lt;/b&gt;panel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. Under the &lt;b&gt;Notes &lt;/b&gt;box,
you will see a drop-down menu for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Number of
weeks/topics&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;. Click on the menu and select&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;the number of modules you
want.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. Click on .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Changing the Course Theme&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Each Moodle course is
created with the default Adelphi Moodle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;theme. To change the
theme, follow these steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. Click on &lt;b&gt;Settings &lt;/b&gt;under
the &lt;b&gt;Administration &lt;/b&gt;panel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. Under the &lt;b&gt;Notes &lt;/b&gt;box,
you will see a drop-down menu for&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Force
Theme&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;. Click on the menu and select the desired theme.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. Click on .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Changing the Course Description on the Moodle Homepage&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. Click on &lt;b&gt;Settings &lt;/b&gt;under
the &lt;b&gt;Administration &lt;/b&gt;panel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. In the &lt;b&gt;Notes &lt;/b&gt;box
describe the course in no more than&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;three sentences.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. Click on .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: BellGothicStd-Black; font-size: 18pt;&quot;&gt;Navigating the Course&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;In order to return to the
course homepage from any&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;other place in the course
(e.g. a discussion forum,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;or a resource), click on
the course name (or ID) in&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;the upper left corner
underneath the Adelphi logo,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;or click on the course
number on the bottom of the page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Organizing Modules&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;The default view shows all
course materials organized by modules as the instructor has organized them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Modules can be displayed in
different ways:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: SymbolMT; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Change visibility to students by clicking the eye icon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: SymbolMT; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Collapsed modules by using the collapse button of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;module that should be the
last one visible.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: SymbolMT; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Expand modules by using the expand button of the module&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;that should be the last
one visible.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: SymbolMT; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Highlight the current module by using the highlight icon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Display by Type of Content&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;The activities block
provides a list of the types of activities deployed in the course. Clicking on
a category, such&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;as forums, resources, or
assignments, will bring up a list with all items in that category.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Display by User Activity&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. In the People block,
click on Participants.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. The following page will
have the information on the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;student like Address and
Last Access.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. To have a more in-depth
view of student’s activity, click&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;on the student’s name.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;4. From the students
profile click on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;the &lt;b&gt;Activity Reports &lt;/b&gt;tab.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;5. Orgnanized by each
topic is the student’s&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;activity in your class.
You can see the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;number of times a student
accessed an&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;activity, and the last
time of access.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Allowing Pop-Up Windows to Appear in Mozilla Firefox&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;When Firefox prompts you
that it has blocked a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;popup, click &lt;b&gt;Options &lt;/b&gt;(or
&lt;b&gt;Preferences&lt;/b&gt;) and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;select &lt;b&gt;Allow popups for
moodle.adelphi.edu&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: BellGothicStd-Black; font-size: 18pt;&quot;&gt;Assigning Roles&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;The &lt;b&gt;Assign Roles &lt;/b&gt;option
allows you to enroll users in your course and provide them with a specific
role.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Teachers can typically
assign the roles of &lt;b&gt;Teacher&lt;/b&gt;, &lt;b&gt;Non-editing teacher&lt;/b&gt;, and &lt;b&gt;Student&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Wingdings-Regular; font-size: 10.5pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Note&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;: Your
students will be put on your Participants list as they register in the
C.L.A.S.S. system. The&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;list will be updated
regularly throughout the day. However, if a student is not showing up in your
Moodle&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Course, use the Assign
Roles option to add them in (or add in another Teacher or Non-Editing teacher,
if&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;you wish).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Teacher
Non-editing teacher Student&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Teachers can do anything&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;within a course, including&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;changing the activities
and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;grading students.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;This role is similar to
that of&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Teaching Assistant. A
nonediting&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;teacher can enter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;grades for the students,
but&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;he/she cannot edit the
contents&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;of the course.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;Students have access to
the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;course information
provided by&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;the instructor and are
able to&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;post responses in the
forums,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;contribute to wikis, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Adding a User to Your Course&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;To add a user to your
course and assign them one of the above roles,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;follow these steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. In the &lt;b&gt;Administration
&lt;/b&gt;block, click on &lt;b&gt;Assign Roles&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. Click on the role you
wish to assign to the specific&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;user/users (&lt;b&gt;Teacher,
Non-editing teacher,&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;or &lt;b&gt;Student&lt;/b&gt;).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. Type in the name of the
user you wish to add and&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;click on &lt;b&gt;Search&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;4. In the &lt;b&gt;&lt;i&gt;Search
results &lt;/i&gt;&lt;/b&gt;box, select the name of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;user and click on the
left-sided triangle. The user will&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;appear in the existing
users box to the left.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;5. The student’s name and
email will now appear in the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;existing users box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Removing a User from Your Course&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. To remove a user from
the course, select their name&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;from the existing users
box and click on the rightsided&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;triangle.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Note: &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;This step
cannot be undone and a student’s data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;will be
erased from the course.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: BellGothicStd-Black; font-size: 18pt;&quot;&gt;Quickmail&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: Georgia, serif; font-size: 12pt;&quot;&gt;Sending an Email to Your Students&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;1. In the &lt;b&gt;Quickmail &lt;/b&gt;block,
click on &lt;b&gt;Compose&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;2. Check the box next to
the name of the&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;student you wish to email.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;3. Type in a &lt;b&gt;Subject &lt;/b&gt;for
your email&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;4. Type in the text of
your email in the &lt;b&gt;Message&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;box.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;5. &lt;i&gt;Optional&lt;/i&gt;: If you
wish to send an attachment,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;click on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;6. Click on&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt;&quot;&gt;7. Click on Continue. The
email will then appear&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Arial, sans-serif; font-size: 10.5pt; line-height: 115%;&quot;&gt;in the inbox of the student’s designated
email.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/2092453879747806252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/what-is-moodle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/2092453879747806252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/2092453879747806252'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/what-is-moodle.html' title='What is Moodle?'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-2387192077984689010</id><published>2012-06-07T00:45:00.001-07:00</published><updated>2012-06-11T03:15:26.586-07:00</updated><title type='text'>Zend Framework Coding Standard for PHP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Zend Framework Coding Standard for PHP

&lt;div class=&quot;section&quot; id=&quot;coding-standard.overview&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Overview&lt;/h1&gt;&lt;/div&gt;
        

        &lt;div name=&quot;coding-standard.overview.scope&quot; id=&quot;coding-standard.overview.scope&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Scope&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                This document provides guidelines for code formatting and documentation to
                individuals and teams contributing to Zend Framework. Many developers using Zend
                Framework have also found these coding standards useful because their code&#39;s style
                remains consistent with all Zend Framework code. It is also worth noting that it
                requires significant effort to fully specify coding standards.
            &lt;/p&gt;

            &lt;blockquote&gt;&lt;p&gt;&lt;b class=&quot;note&quot;&gt;Note&lt;/b&gt;: 
                
                    Sometimes developers consider the establishment of a standard more important
                    than what that standard actually suggests at the most detailed level of
                    design. The guidelines in Zend Framework&#39;s coding standards capture practices
                    that have worked well on the Zend Framework project. 
                &lt;br&gt;
            &lt;/p&gt;&lt;/blockquote&gt;

            &lt;p class=&quot;para&quot;&gt;
                Topics covered in Zend Framework&#39;s coding standards include:
            &lt;/p&gt;

            &lt;ul class=&quot;itemizedlist&quot;&gt;
                &lt;li class=&quot;listitem&quot;&gt;
                    &lt;p class=&quot;para&quot;&gt;&lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; File Formatting&lt;/p&gt;
                &lt;/li&gt;

                &lt;li class=&quot;listitem&quot;&gt;
                    &lt;p class=&quot;para&quot;&gt;Naming Conventions&lt;/p&gt;
                &lt;/li&gt;

                &lt;li class=&quot;listitem&quot;&gt;
                    &lt;p class=&quot;para&quot;&gt;Coding Style&lt;/p&gt;
                &lt;/li&gt;

                &lt;li class=&quot;listitem&quot;&gt;
                    &lt;p class=&quot;para&quot;&gt;Inline Documentation&lt;/p&gt;
                &lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.overview.goals&quot; id=&quot;coding-standard.overview.goals&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Goals&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                Coding standards are important in any development project, but they are particularly
                important when many developers are working on the same project. Coding standards
                help ensure that the code is high quality, has fewer bugs, and can be easily
                maintained.
            &lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;

&lt;div class=&quot;section&quot; id=&quot;coding-standard.php-file-formatting&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;PHP File Formatting&lt;/h1&gt;&lt;/div&gt;
        

        &lt;div name=&quot;coding-standard.php-file-formatting.general&quot; id=&quot;coding-standard.php-file-formatting.general&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;General&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                For files that contain only &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code, the closing tag (&quot;?&amp;gt;&quot;) is
                never permitted. It is not required by &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt;, and omitting it´
                prevents the accidental injection of trailing white space into the response.
            &lt;/p&gt;

            &lt;blockquote&gt;&lt;p&gt;&lt;b class=&quot;note&quot;&gt;Note&lt;/b&gt;: 
                
                    &lt;em class=&quot;emphasis&quot;&gt;Important&lt;/em&gt;: Inclusion of arbitrary binary data as permitted
                    by  &lt;span class=&quot;methodname&quot;&gt;__HALT_COMPILER()&lt;/span&gt; is prohibited from
                    &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; files in the Zend Framework project or files derived
                    from them. Use of this feature is only permitted for some installation scripts.
                &lt;br&gt;
            &lt;/p&gt;&lt;/blockquote&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.php-file-formatting.indentation&quot; id=&quot;coding-standard.php-file-formatting.indentation&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Indentation&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;Indentation should consist of 4 spaces. Tabs are not allowed.&lt;/p&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.php-file-formatting.max-line-length&quot; id=&quot;coding-standard.php-file-formatting.max-line-length&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Maximum Line Length&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                The target line length is 80 characters. That is to say, Zend Framework developers
                should strive keep each line of their code under 80 characters where possible and
                practical. However, longer lines are acceptable in some circumstances. The maximum
                length of any line of &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code is 120 characters.
            &lt;/p&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.php-file-formatting.line-termination&quot; id=&quot;coding-standard.php-file-formatting.line-termination&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Line Termination&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                Line termination follows the Unix text file convention. Lines must end with a
                single linefeed (LF) character. Linefeed characters are represented as ordinal 10,
                or hexadecimal 0x0A.
            &lt;/p&gt;

            &lt;p class=&quot;para&quot;&gt;
                Note: Do not use carriage returns (CR) as is the convention in Apple OS&#39;s (0x0D) or
                the carriage return - linefeed combination (&lt;acronym class=&quot;acronym&quot;&gt;CRLF&lt;/acronym&gt;) as is standard
                for the Windows OS (0x0D, 0x0A).
            &lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;

&lt;div class=&quot;section&quot; id=&quot;coding-standard.php-file-formatting&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;PHP File Formatting&lt;/h1&gt;&lt;/div&gt;
        

        &lt;div name=&quot;coding-standard.php-file-formatting.general&quot; id=&quot;coding-standard.php-file-formatting.general&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;General&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                For files that contain only &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code, the closing tag (&quot;?&amp;gt;&quot;) is
                never permitted. It is not required by &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt;, and omitting it´
                prevents the accidental injection of trailing white space into the response.
            &lt;/p&gt;

            &lt;blockquote&gt;&lt;p&gt;&lt;b class=&quot;note&quot;&gt;Note&lt;/b&gt;: 
                
                    &lt;em class=&quot;emphasis&quot;&gt;Important&lt;/em&gt;: Inclusion of arbitrary binary data as permitted
                    by  &lt;span class=&quot;methodname&quot;&gt;__HALT_COMPILER()&lt;/span&gt; is prohibited from
                    &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; files in the Zend Framework project or files derived
                    from them. Use of this feature is only permitted for some installation scripts.
                &lt;br&gt;
            &lt;/p&gt;&lt;/blockquote&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.php-file-formatting.indentation&quot; id=&quot;coding-standard.php-file-formatting.indentation&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Indentation&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;Indentation should consist of 4 spaces. Tabs are not allowed.&lt;/p&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.php-file-formatting.max-line-length&quot; id=&quot;coding-standard.php-file-formatting.max-line-length&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Maximum Line Length&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                The target line length is 80 characters. That is to say, Zend Framework developers
                should strive keep each line of their code under 80 characters where possible and
                practical. However, longer lines are acceptable in some circumstances. The maximum
                length of any line of &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code is 120 characters.
            &lt;/p&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.php-file-formatting.line-termination&quot; id=&quot;coding-standard.php-file-formatting.line-termination&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Line Termination&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                Line termination follows the Unix text file convention. Lines must end with a
                single linefeed (LF) character. Linefeed characters are represented as ordinal 10,
                or hexadecimal 0x0A.
            &lt;/p&gt;

            &lt;p class=&quot;para&quot;&gt;
                Note: Do not use carriage returns (CR) as is the convention in Apple OS&#39;s (0x0D) or
                the carriage return - linefeed combination (&lt;acronym class=&quot;acronym&quot;&gt;CRLF&lt;/acronym&gt;) as is standard
                for the Windows OS (0x0D, 0x0A).
            &lt;/p&gt;
        &lt;/div&gt;
    &lt;/div&gt;


&lt;div class=&quot;section&quot; id=&quot;coding-standard.coding-style&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Coding Style&lt;/h1&gt;&lt;/div&gt;
        

        &lt;div name=&quot;coding-standard.coding-style.php-code-demarcation&quot; id=&quot;coding-standard.coding-style.php-code-demarcation&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;PHP Code Demarcation&lt;/h1&gt;&lt;/div&gt;
            

            &lt;p class=&quot;para&quot;&gt;
                &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code must always be delimited by the full-form, standard
                &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; tags:
            &lt;/p&gt;

            &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


            &lt;p class=&quot;para&quot;&gt;
                Short tags are never allowed. For files containing only &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt;
                code, the closing tag must always be omitted (See &lt;a class=&quot;link&quot; href=&quot;coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general&quot;&gt;General standards&lt;/a&gt;).
            &lt;/p&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.coding-style.strings&quot; id=&quot;coding-standard.coding-style.strings&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Strings&lt;/h1&gt;&lt;/div&gt;
            

            &lt;div name=&quot;coding-standard.coding-style.strings.literals&quot; id=&quot;coding-standard.coding-style.strings.literals&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;String Literals&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    When a string is literal (contains no variable substitutions), the apostrophe or
                    &quot;single quote&quot; should always be used to demarcate the string:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Example String&#39;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;

            &lt;div name=&quot;coding-standard.coding-style.strings.literals-containing-apostrophes&quot; id=&quot;coding-standard.coding-style.strings.literals-containing-apostrophes&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;String Literals Containing Apostrophes&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    When a literal string itself contains apostrophes, it is permitted to demarcate
                    the string with quotation marks or &quot;double quotes&quot;. This is especially useful
                    for &lt;b&gt;&lt;tt&gt;SQL&lt;/tt&gt;&lt;/b&gt; statements:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sql&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;SELECT `id`, `name` from `people` &quot;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;. &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;WHERE `name`=&#39;Fred&#39; OR `name`=&#39;Susan&#39;&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    This syntax is preferred over escaping apostrophes as it is much easier to read.
                &lt;/p&gt;
            &lt;/div&gt;

            &lt;div name=&quot;coding-standard.coding-style.strings.variable-substitution&quot; id=&quot;coding-standard.coding-style.strings.variable-substitution&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Variable Substitution&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Variable substitution is permitted using either of these forms:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$greeting&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Hello $name, welcome back!&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$greeting&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Hello {$name}, welcome back!&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    For consistency, this form is not permitted:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$greeting&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Hello ${name}, welcome back!&quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;

            &lt;div name=&quot;coding-standard.coding-style.strings.string-concatenation&quot; id=&quot;coding-standard.coding-style.strings.string-concatenation&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;String Concatenation&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Strings must be concatenated using the &quot;.&quot; operator. A space must always
                    be added before and after the &quot;.&quot; operator to improve readability:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$company&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Zend&#39;&lt;/span&gt; . &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39; &#39;&lt;/span&gt; . &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Technologies&#39;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    When concatenating strings with the &quot;.&quot; operator, it is encouraged to
                    break the statement into multiple lines to improve readability. In these
                    cases, each successive line should be padded with white space such that the
                    &quot;.&quot;; operator is aligned under the &quot;=&quot; operator:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sql&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;SELECT `id`, `name` FROM `people` &quot;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;. &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;WHERE `name` = &#39;Susan&#39; &quot;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;. &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;ORDER BY `name` ASC &quot;&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.coding-style.arrays&quot; id=&quot;coding-standard.coding-style.arrays&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Arrays&lt;/h1&gt;&lt;/div&gt;
            

            &lt;div name=&quot;coding-standard.coding-style.arrays.numerically-indexed&quot; id=&quot;coding-standard.coding-style.arrays.numerically-indexed&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Numerically Indexed Arrays&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;Negative numbers are not permitted as indices.&lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    An indexed array may start with any non-negative number, however
                    all base indices besides 0 are discouraged.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    When declaring indexed arrays with the  &lt;span class=&quot;type&quot;&gt;Array&lt;/span&gt;  function, a trailing
                    space must be added after each comma delimiter to improve readability:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sampleArray&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Zend&#39;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Studio&#39;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    It is permitted to declare multi-line indexed arrays using the &quot;array&quot;
                    construct. In this case, each successive line must be padded with spaces such
                    that beginning of each line is aligned:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sampleArray&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Zend&#39;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Studio&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;56.44&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    Alternately, the initial array item may begin on the following line. If so,
                    it should be padded at one indentation level greater than the line containing
                    the array declaration, and all successive lines should have the same
                    indentation; the closing paren should be on a line by itself at the same
                    indentation level as the line containing the array declaration:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sampleArray&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Zend&#39;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Studio&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc66cc;&quot;&gt;56.44&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    When using this latter declaration, we encourage using a trailing comma for
                    the last item in the array; this minimizes the impact of adding new items on
                    successive lines, and helps to ensure no parse errors occur due to a missing
                    comma.
                &lt;/p&gt;
            &lt;/div&gt;

            &lt;div name=&quot;coding-standard.coding-style.arrays.associative&quot; id=&quot;coding-standard.coding-style.arrays.associative&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Associative Arrays&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    When declaring associative arrays with the  &lt;span class=&quot;type&quot;&gt;Array&lt;/span&gt;  construct,
                    breaking the statement into multiple lines is encouraged. In this case, each
                    successive line must be padded with white space such that both the keys and the
                    values are aligned:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sampleArray&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;firstKey&#39;&lt;/span&gt;&amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;firstValue&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;secondKey&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;secondValue&#39;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    Alternately, the initial array item may begin on the following line. If so,
                    it should be padded at one indentation level greater than the line containing
                    the array declaration, and all successive lines should have the same
                    indentation; the closing paren should be on a line by itself at the same
                    indentation level as the line containing the array declaration. For
                    readability, the various &quot;=&amp;gt;&quot; assignment operators should be padded such that
                    they align.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$sampleArray&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;firstKey&#39;&lt;/span&gt;&amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;firstValue&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;secondKey&#39;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;secondValue&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    When using this latter declaration, we encourage using a trailing comma for
                    the last item in the array; this minimizes the impact of adding new items on
                    successive lines, and helps to ensure no parse errors occur due to a missing
                    comma.
                &lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.coding-style.classes&quot; id=&quot;coding-standard.coding-style.classes&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Classes&lt;/h1&gt;&lt;/div&gt;
            

            &lt;div name=&quot;coding-standard.coding-style.classes.declaration&quot; id=&quot;coding-standard.coding-style.classes.declaration&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Class Declaration&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Classes must be named according to Zend Framework&#39;s naming conventions.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The brace should always be written on the line underneath the class name.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Every class must have a documentation block that conforms to the PHPDocumentor
                    standard.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    All code in a class must be indented with four spaces.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Only one class is permitted in each &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; file.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Placing additional code in class files is permitted but discouraged.
                    In such files, two blank lines must separate the class from any additional
                    &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code in the class file.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The following is an example of an acceptable class declaration:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; SampleClass&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// all contents of class&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// must be indented four spaces&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    Classes that extend other classes or which implement interfaces should
                    declare their dependencies on the same line when possible.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; SampleClass &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;extends&lt;/span&gt; FooAbstract implements BarInterface&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    If as a result of such declarations, the line length exceeds the &lt;a class=&quot;link&quot; href=&quot;coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.max-line-length&quot;&gt;maximum line
                        length&lt;/a&gt;, break the line before the &quot;extends&quot; and/or &quot;implements&quot;
                    keywords, and pad those lines by one indentation level.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; SampleClass&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;extends&lt;/span&gt; FooAbstract&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; implements BarInterface&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    If the class implements multiple interfaces and the declaration exceeds the
                    maximum line length, break after each comma separating the interfaces, and
                    indent the interface names such that they align.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; SampleClass&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; implements BarInterface,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BazInterface&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;

            &lt;div name=&quot;coding-standard.coding-style.classes.member-variables&quot; id=&quot;coding-standard.coding-style.classes.member-variables&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Class Member Variables&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Member variables must be named according to Zend Framework&#39;s variable naming
                    conventions.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Any variables declared in a class must be listed at the top of the class, above
                    the declaration of any methods.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The &lt;em class=&quot;emphasis&quot;&gt;var&lt;/em&gt; construct is not permitted. Member variables always
                    declare their visibility by using one of the &lt;span class=&quot;property&quot;&gt;private&lt;/span&gt;,
                    &lt;span class=&quot;property&quot;&gt;protected&lt;/span&gt;, or &lt;span class=&quot;property&quot;&gt;public&lt;/span&gt; modifiers. Giving
                    access to member variables directly by declaring them as public is permitted but
                    discouraged in favor of accessor methods (set &amp;amp; get).
                &lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.coding-style.functions-and-methods&quot; id=&quot;coding-standard.coding-style.functions-and-methods&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Functions and Methods&lt;/h1&gt;&lt;/div&gt;
            

            &lt;div name=&quot;coding-standard.coding-style.functions-and-methods.declaration&quot; id=&quot;coding-standard.coding-style.functions-and-methods.declaration&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Function and Method Declaration&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Functions must be named according to Zend Framework&#39;s function naming
                    conventions.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Methods inside classes must always declare their visibility by using
                    one of the &lt;span class=&quot;property&quot;&gt;private&lt;/span&gt;, &lt;span class=&quot;property&quot;&gt;protected&lt;/span&gt;,
                    or &lt;span class=&quot;property&quot;&gt;public&lt;/span&gt; modifiers.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    As with classes, the brace should always be written on the line underneath the
                    function name. Space between the function name and the opening parenthesis for
                    the arguments is not permitted.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Functions in the global scope are strongly discouraged.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The following is an example of an acceptable function declaration in a class:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Foo&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; bar&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// all contents of function&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// must be indented four spaces&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    In cases where the argument list exceeds the &lt;a class=&quot;link&quot; href=&quot;coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.max-line-length&quot;&gt;maximum line
                        length&lt;/a&gt;, you may introduce line breaks. Additional arguments to the
                    function or method must be indented one additional level beyond the function
                    or method declaration. A line break should then occur before the closing
                    argument paren, which should then be placed on the same line as the opening
                    brace of the function or method with one space separating the two, and at the
                    same indentation level as the function or method declaration. The following is
                    an example of one such situation:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Foo&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; bar&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$arg1&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$arg2&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$arg3&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$arg4&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$arg5&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$arg6&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// all contents of function&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// must be indented four spaces&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;blockquote&gt;&lt;p&gt;&lt;b class=&quot;note&quot;&gt;Note&lt;/b&gt;: 
                    
                        Pass-by-reference is the only parameter passing mechanism permitted in a
                        method declaration.
                    &lt;br&gt;
                &lt;/p&gt;&lt;/blockquote&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Foo&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; bar&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&amp;amp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$baz&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    Call-time pass-by-reference is strictly prohibited.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The return value must not be enclosed in parentheses. This can hinder
                    readability, in additional to breaking code if a method is later changed to
                    return by reference.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Documentation Block Here&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Foo&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* WRONG&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; bar&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;bar&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* RIGHT&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; bar&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;bar&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;

            &lt;div name=&quot;coding-standard.coding-style.functions-and-methods.usage&quot; id=&quot;coding-standard.coding-style.functions-and-methods.usage&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Function and Method Usage&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Function arguments should be separated by a single trailing space after the
                    comma delimiter. The following is an example of an acceptable invocation of a
                    function that takes three arguments:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;threeArguments&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    Call-time pass-by-reference is strictly prohibited. See the function
                    declarations section for the proper way to pass function arguments by-reference.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    In passing arrays as arguments to a function, the function call may include the
                    &quot;array&quot; hint and may be split into multiple lines to improve readability. In
                    such cases, the normal guidelines for writing arrays still apply:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;threeArguments&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;threeArguments&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Zend&#39;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Studio&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #cc66cc;&quot;&gt;56.44&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;threeArguments&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Zend&#39;&lt;/span&gt;, &lt;span style=&quot;color: #ff0000;&quot;&gt;&#39;Studio&#39;&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;,&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #cc66cc;&quot;&gt;56.44&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standard.coding-style.control-statements&quot; id=&quot;coding-standard.coding-style.control-statements&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Control Statements&lt;/h1&gt;&lt;/div&gt;
            

            &lt;div name=&quot;coding-standard.coding-style.control-statements.if-else-elseif&quot; id=&quot;coding-standard.coding-style.control-statements.if-else-elseif&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;If/Else/Elseif&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Control statements based on the &lt;em class=&quot;emphasis&quot;&gt;if&lt;/em&gt; and
                    &lt;em class=&quot;emphasis&quot;&gt;elseif&lt;/em&gt; constructs must have a single space before the
                    opening parenthesis of the conditional and a single space after the closing
                    parenthesis.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    Within the conditional statements between the parentheses, operators must be
                    separated by spaces for readability. Inner parentheses are encouraged to improve
                    logical grouping for larger conditional expressions.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The opening brace is written on the same line as the conditional statement. The
                    closing brace is always written on its own line. Any content within the braces
                    must be indented using four spaces.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; != &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    If the conditional statement causes the line length to exceed the &lt;a class=&quot;link&quot; href=&quot;coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.max-line-length&quot;&gt;maximum line
                        length&lt;/a&gt; and has several clauses, you may break the conditional into
                    multiple lines. In such a case, break the line prior to a logic operator, and
                    pad the line such that it aligns under the first character of the conditional
                    clause. The closing paren in the conditional will then be placed on a line with
                    the opening brace, with one space separating the two, at an indentation level
                    equivalent to the opening control statement.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; || &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;Foo::&lt;span style=&quot;color: #006600;&quot;&gt;CONST&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    The intention of this latter declaration format is to prevent issues when
                    adding or removing clauses from the conditional during later revisions.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    For &quot;if&quot; statements that include &quot;elseif&quot; or &quot;else&quot;, the formatting conventions
                    are similar to the &quot;if&quot; construct. The following examples demonstrate proper
                    formatting for &quot;if&quot; statements with &quot;else&quot; and/or &quot;elseif&quot; constructs:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; != &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;7&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; != &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;elseif&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; == &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;4&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #cc66cc;&quot;&gt;7&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; || &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;Foo::&lt;span style=&quot;color: #006600;&quot;&gt;CONST&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$d&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;elseif&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; != &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; || &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt; != &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$c&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$a&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$b&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; allows statements to be written without braces in some
                    circumstances. This coding standard makes no differentiation- all &quot;if&quot;,
                    &quot;elseif&quot; or &quot;else&quot; statements must use braces.
                &lt;/p&gt;
            &lt;/div&gt;

            &lt;div name=&quot;coding-standards.coding-style.control-statements.switch&quot; id=&quot;coding-standards.coding-style.control-statements.switch&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Switch&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Control statements written with the &quot;switch&quot; statement must have a single space
                    before the opening parenthesis of the conditional statement and after the
                    closing parenthesis.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    All content within the &quot;switch&quot; statement must be indented using four spaces.
                    Content under each &quot;case&quot; statement must be indented using an additional four
                    spaces.
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;switch&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numPeople&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;default&lt;/span&gt;:&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    The construct &lt;span class=&quot;property&quot;&gt;default&lt;/span&gt; should never be omitted from a
                    &lt;span class=&quot;property&quot;&gt;switch&lt;/span&gt; statement.
                &lt;/p&gt;

                &lt;blockquote&gt;&lt;p&gt;&lt;b class=&quot;note&quot;&gt;Note&lt;/b&gt;: 
                    
                        It is sometimes useful to write a &lt;span class=&quot;property&quot;&gt;case&lt;/span&gt; statement
                        which falls through to the next case by not including a
                        &lt;span class=&quot;property&quot;&gt;break&lt;/span&gt; or &lt;span class=&quot;property&quot;&gt;return&lt;/span&gt; within that
                        case. To distinguish these cases from bugs, any &lt;span class=&quot;property&quot;&gt;case&lt;/span&gt;
                        statement where &lt;span class=&quot;property&quot;&gt;break&lt;/span&gt; or &lt;span class=&quot;property&quot;&gt;return&lt;/span&gt;
                        are omitted should contain a comment indicating that the break was
                        intentionally omitted.
                    &lt;br&gt;
                &lt;/p&gt;&lt;/blockquote&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;div name=&quot;coding-standards.inline-documentation&quot; id=&quot;coding-standards.inline-documentation&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Inline Documentation&lt;/h1&gt;&lt;/div&gt;
            

            &lt;div name=&quot;coding-standards.inline-documentation.documentation-format&quot; id=&quot;coding-standards.inline-documentation.documentation-format&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Documentation Format&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    All documentation blocks (&quot;docblocks&quot;) must be compatible with the phpDocumentor
                    format. Describing the phpDocumentor format is beyond the scope of this
                    document. For more information, visit: &lt;a class=&quot;link external&quot; href=&quot;http://phpdoc.org/&quot;&gt;» http://phpdoc.org/&lt;/a&gt;
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    All class files must contain a &quot;file-level&quot; docblock at the top of each file and
                    a &quot;class-level&quot; docblock immediately above each class. Examples of such
                    docblocks can be found below.
                &lt;/p&gt;
            &lt;/div&gt;

            &lt;div name=&quot;coding-standards.inline-documentation.files&quot; id=&quot;coding-standards.inline-documentation.files&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Files&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Every file that contains &lt;acronym class=&quot;acronym&quot;&gt;PHP&lt;/acronym&gt; code must have a docblock at
                    the top of the file that contains these phpDocumentor tags at a minimum:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Short description for file&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Long description for file (if any)...&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * LICENSE: Some license information&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @category&amp;nbsp; &amp;nbsp;Zend&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @package&amp;nbsp; &amp;nbsp; Zend_Magic&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @subpackage Wand&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @copyright&amp;nbsp; Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @license&amp;nbsp; &amp;nbsp; http://framework.zend.com/license&amp;nbsp; &amp;nbsp;BSD License&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @version&amp;nbsp; &amp;nbsp; $Id:$&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @link&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;http://framework.zend.com/package/PackageName&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @since&amp;nbsp; &amp;nbsp; &amp;nbsp; File available since Release 1.5.0&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;*/&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    The &lt;span class=&quot;property&quot;&gt;@category&lt;/span&gt; annotation must have a value of &quot;Zend&quot;.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The &lt;span class=&quot;property&quot;&gt;@package&lt;/span&gt; annotation must be assigned, and should be
                    equivalent to the component name of the class contained in the file; typically,
                    this will only have two segments, the &quot;Zend&quot; prefix, and the component name.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The &lt;span class=&quot;property&quot;&gt;@subpackage&lt;/span&gt; annotation is optional. If provided, it
                    should be the subcomponent name, minus the class prefix. In the example above,
                    the assumption is that the class in the file is either
                    &quot;&lt;span class=&quot;classname&quot;&gt;Zend_Magic_Wand&lt;/span&gt;&quot;, or uses that classname as part of its
                    prefix.
                &lt;/p&gt;
            &lt;/div&gt;

            &lt;div name=&quot;coding-standards.inline-documentation.classes&quot; id=&quot;coding-standards.inline-documentation.classes&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Classes&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Every class must have a docblock that contains these phpDocumentor tags at a
                    minimum:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Short description for class&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * Long description for class (if any)...&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @category&amp;nbsp; &amp;nbsp;Zend&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @package&amp;nbsp; &amp;nbsp; Zend_Magic&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @subpackage Wand&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @copyright&amp;nbsp; Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @license&amp;nbsp; &amp;nbsp; http://framework.zend.com/license&amp;nbsp; &amp;nbsp;BSD License&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @version&amp;nbsp; &amp;nbsp; Release: @package_version@&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @link&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;http://framework.zend.com/package/PackageName&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @since&amp;nbsp; &amp;nbsp; &amp;nbsp; Class available since Release 1.5.0&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; * @deprecated Class deprecated in Release 2.0.0&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;


                &lt;p class=&quot;para&quot;&gt;
                    The &lt;span class=&quot;property&quot;&gt;@category&lt;/span&gt; annotation must have a value of &quot;Zend&quot;.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The &lt;span class=&quot;property&quot;&gt;@package&lt;/span&gt; annotation must be assigned, and should be
                    equivalent to the component to which the class belongs; typically, this will
                    only have two segments, the &quot;Zend&quot; prefix, and the component name.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    The &lt;span class=&quot;property&quot;&gt;@subpackage&lt;/span&gt; annotation is optional. If provided, it
                    should be the subcomponent name, minus the class prefix. In the example above,
                    the assumption is that the class described is either
                    &quot;&lt;span class=&quot;classname&quot;&gt;Zend_Magic_Wand&lt;/span&gt;&quot;, or uses that classname as part of its
                    prefix.
                &lt;/p&gt;
            &lt;/div&gt;

            &lt;div name=&quot;coding-standards.inline-documentation.functions&quot; id=&quot;coding-standards.inline-documentation.functions&quot; class=&quot;section&quot;&gt;&lt;div class=&quot;info&quot;&gt;&lt;h1 class=&quot;title&quot;&gt;Functions&lt;/h1&gt;&lt;/div&gt;
                

                &lt;p class=&quot;para&quot;&gt;
                    Every function, including object methods, must have a docblock that contains at
                    a minimum:
                &lt;/p&gt;

                &lt;ul class=&quot;itemizedlist&quot;&gt;
                    &lt;li class=&quot;listitem&quot;&gt;&lt;p class=&quot;para&quot;&gt;A description of the function&lt;/p&gt;&lt;/li&gt;
                    &lt;li class=&quot;listitem&quot;&gt;&lt;p class=&quot;para&quot;&gt;All of the arguments&lt;/p&gt;&lt;/li&gt;
                    &lt;li class=&quot;listitem&quot;&gt;&lt;p class=&quot;para&quot;&gt;All of the possible return values&lt;/p&gt;&lt;/li&gt;
                &lt;/ul&gt;

                &lt;p class=&quot;para&quot;&gt;
                    It is not necessary to use the &quot;@access&quot; tag because the access level is already
                    known from the &quot;public&quot;, &quot;private&quot;, or &quot;protected&quot; modifier used to declare the
                    function.
                &lt;/p&gt;

                &lt;p class=&quot;para&quot;&gt;
                    If a function or method may throw an exception, use @throws for all known
                    exception classes:
                &lt;/p&gt;

                &lt;div class=&quot;programlisting php&quot;&gt;&lt;div class=&quot;phpcode&quot;&gt;&lt;div style=&quot;font-family: monospace;&quot; class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; color: black; font-weight: normal; font-style: normal;&quot;&gt;&lt;div style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;@throws exceptionclass &lt;span style=&quot;color: #66cc66;&quot;&gt;[&lt;/span&gt;description&lt;span style=&quot;color: #66cc66;&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;





&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/2387192077984689010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/zend-framework-coding-standard-for-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/2387192077984689010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/2387192077984689010'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/zend-framework-coding-standard-for-php.html' title='Zend Framework Coding Standard for PHP'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-6805594166366356401</id><published>2012-06-07T00:30:00.001-07:00</published><updated>2012-06-11T09:10:38.309-07:00</updated><title type='text'>Moodle Features List</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt; Moodle Features List&lt;/h1&gt; &lt;br/&gt;

&lt;p&gt;&lt;br&gt;
Moodle is an active and evolving product. This page lists only some of Moodle&#39;s many features.  We encourage you to click on links to learn more.
&lt;/p&gt;

&lt;table class=&quot;toc&quot; id=&quot;toc&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div id=&quot;toctitle&quot;&gt;&lt;h2&gt;Contents&lt;/h2&gt; &lt;/div&gt;
&lt;ul&gt;
&lt;li class=&quot;toclevel-1 tocsection-1&quot;&gt;&lt;a href=&quot;#Overall_design&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Overall design&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1 tocsection-2&quot;&gt;&lt;a href=&quot;#Site_management&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Site management&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-1 tocsection-3&quot;&gt;&lt;a href=&quot;#User_management&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;User management&lt;/span&gt;&lt;/a&gt;
&lt;ul&gt;
&lt;li class=&quot;toclevel-2 tocsection-4&quot;&gt;&lt;a href=&quot;#Overview&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;3.1&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Overview&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-5&quot;&gt;&lt;a href=&quot;#Enrolment&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;3.2&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Enrolment&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-6&quot;&gt;&lt;a href=&quot;#Roles&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;3.3&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Roles&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;toclevel-1 tocsection-7&quot;&gt;&lt;a href=&quot;#Course_management&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Course management&lt;/span&gt;&lt;/a&gt;
&lt;ul&gt;
&lt;li class=&quot;toclevel-2 tocsection-8&quot;&gt;&lt;a href=&quot;#Overview_2&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.1&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Overview&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-9&quot;&gt;&lt;a href=&quot;#Course_reports&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.2&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Course reports&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-10&quot;&gt;&lt;a href=&quot;#Assignment_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.3&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Assignment Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-11&quot;&gt;&lt;a href=&quot;#Chat_module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.4&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Chat module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-12&quot;&gt;&lt;a href=&quot;#Choice_module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.5&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Choice module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-13&quot;&gt;&lt;a href=&quot;#Forum_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.6&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Forum Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-14&quot;&gt;&lt;a href=&quot;#Glossary_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.7&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Glossary Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-15&quot;&gt;&lt;a href=&quot;#Lesson_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.8&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Lesson Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-16&quot;&gt;&lt;a href=&quot;#Quiz_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.9&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Quiz Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-17&quot;&gt;&lt;a href=&quot;#Resource_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.10&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Resource Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-18&quot;&gt;&lt;a href=&quot;#Survey_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.11&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Survey Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-19&quot;&gt;&lt;a href=&quot;#Wiki_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.12&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Wiki Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;toclevel-2 tocsection-20&quot;&gt;&lt;a href=&quot;#Workshop_Module&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;4.13&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Workshop Module&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;toclevel-1 tocsection-21&quot;&gt;&lt;a href=&quot;#Support&quot;&gt;&lt;span class=&quot;tocnumber&quot;&gt;5&lt;/span&gt; &lt;span class=&quot;toctext&quot;&gt;Support&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/6805594166366356401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/moodle-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6805594166366356401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/6805594166366356401'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/moodle-features.html' title='Moodle Features List'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6764836370540854853.post-3425936144657471780</id><published>2012-06-06T11:21:00.001-07:00</published><updated>2012-06-11T04:49:37.378-07:00</updated><title type='text'>Learn abour your server: php variables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;


&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;4&quot; border=&quot;0&quot; width=&quot;100%&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td bgcolor=&quot;#c0c0c0&quot;&gt;&lt;b&gt;Learn about your server: PHP variables&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The server which is hosting your site (we will suppose in this
tutorial
you have an account with an ISP, so you are not controlling the server)
may
provide you&amp;nbsp; a lot of useful information. In the next table we
have
a very simple code which will allow us to get a huge amount of
information
from the server.&lt;br&gt;
&amp;nbsp;&lt;/p&gt;
&lt;center&gt;
&lt;table cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; border=&quot;1&quot; width=&quot;450&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td bgcolor=&quot;#66ffff&quot; valign=&quot;top&quot;&gt;serverex.php&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td valign=&quot;top&quot;&gt;&amp;lt;form method=post
action=serverex.php?a=1&amp;amp;b=2&amp;amp;c=3&amp;gt; &lt;br&gt;
Name: &amp;lt;input type=text name=name&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
Age: &amp;lt;input type=text name=age&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;input type=submit value=submit&amp;gt;&lt;br&gt;
&amp;lt;/form&amp;gt;&lt;br&gt;
      &lt;p&gt;&amp;lt;hr&amp;gt;&lt;/p&gt;
      &lt;p&gt;&amp;lt;?php&lt;br&gt;
print &lt;a href=&quot;/?phpinfo&quot;&gt;phpinfo&lt;/a&gt;();&lt;br&gt;
?&amp;gt;&lt;/p&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;p&gt;When visiting this page you will find a form in the top an a huge
amount
of information bellow, but in order to get even more information, fill
the
form and submit it.&amp;nbsp; Then we will look to the response page.&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the response page you will get the PHP version instaled in your
server
and additional information about the computer and how it has been set up
to
support .&lt;/p&gt;
&lt;p&gt;Additionally, and we will focus on this part of the information
provided,
in the last part of the response page we will find a section on &lt;b&gt;PHP
variables&lt;/b&gt;.
Depending on the PHP version&amp;nbsp; installed in the server, we may find
slightly
different data in that table. We do believe printing this response page
is
very useful, so we recomment so.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have extract one of the lines from the PHP variables obtained
from that
section of the response page to show you how to use it.&lt;br&gt;
&amp;nbsp;
&lt;table cols=&quot;2&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;PHP_SELF&lt;/td&gt;
      &lt;td nowrap=&quot;nowrap&quot;&gt;/mydir/serverex.php &amp;nbsp; &amp;nbsp;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;So we have a variable and its associated value (in this case the
relative
path to our page).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
&lt;a name=&quot;PHP_SELF&quot;&gt;&lt;/a&gt;Let suppose we want to show in our php page that
information.
For example in the page &quot;serverex.php&quot; above, we want the action
of
our form to be entered automatically, so that it will work exactly in
the
same way with a different file name (file1.php, file2.php, etc.). So we
want
to get this:&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;lt;form method=post action=&quot;&lt;b&gt;relative path to our script&lt;/b&gt;&quot;&amp;gt;&lt;/p&gt;
&lt;/center&gt;
&lt;p&gt;We know PHP_SELF variable will provide us that information, so we
will
make a small transformation of the variable name from PHP_SELF to
$PHP_SELF,
and we will used the latter one in our php page as in the example
bellow:
&lt;br&gt;
&lt;/p&gt;
&lt;center&gt;
&lt;table cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; border=&quot;1&quot; width=&quot;450&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td bgcolor=&quot;#66ffff&quot; valign=&quot;top&quot;&gt;&lt;b&gt;pagename.php&lt;/b&gt; (you may
change
the name of the file)&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td valign=&quot;top&quot;&gt;&amp;lt;form method=get action=&lt;b&gt;&amp;lt;?php &lt;a href=&quot;/?print&quot;&gt;print &lt;/a&gt;$PHP_SELF;
?&amp;gt;&lt;/b&gt;&amp;gt;&lt;br&gt;
Name: &amp;lt;input type=text name=name&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
Age: &amp;lt;input type=text name=age&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;input type=submit value=submit&amp;gt;&lt;br&gt;
&amp;lt;/form&amp;gt;&lt;br&gt;
      &lt;p&gt;&amp;lt;hr&amp;gt;&lt;/p&gt;
      &lt;p&gt;Hi &lt;b&gt;&amp;lt;?php &lt;/b&gt;&lt;b&gt;&lt;a href=&quot;/?print&quot;&gt;print &lt;/a&gt;&lt;/b&gt;&lt;b&gt;$_GET[&quot;name&quot;];
?&amp;gt;&lt;/b&gt;,&amp;nbsp;&lt;br&gt;
I know you are&amp;nbsp; &lt;b&gt;&amp;lt;?php &lt;/b&gt;&lt;b&gt;&lt;a href=&quot;/?print&quot;&gt;print
      &lt;/a&gt;&lt;/b&gt;&lt;b&gt;$_GET[&quot;age&quot;]; ?&amp;gt;&lt;/b&gt; years old. &lt;br&gt;
&amp;nbsp;&lt;/p&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;p&gt;So in the response page the form will point back to the same page.
Additionally,
in this response page we have adding two php codes which will be used
to add
the information entered in the form within the response page. To learn
more
about responding to forms you may go to &lt;a href=&quot;GetandPost.php&quot;&gt;this
page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Depending on the PHP version installed on the server we may used &lt;b&gt;$_GET[&quot;name&quot;]
&lt;/b&gt;or &lt;b&gt;$HTTP_GET_VARS[&quot;name&quot;]&lt;/b&gt; (in older versions of PHP).
Anyway, the
result will be the same (just use that one you will find in the list of
PHP
variables obtained from &quot;askyourserver.php&quot; above).&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;big&gt;&lt;big&gt;&lt;b&gt;Selected PHP variables&lt;/b&gt;&lt;/big&gt;&lt;/big&gt;&lt;/u&gt;&lt;/p&gt;
&lt;p&gt;We have select some PHP variables we consider more likely to be used
by
a beginner and we have put all them in the script bellow. In the right
cell
of the table you will find some useful ways to use them.&lt;br&gt;
&lt;/p&gt;
&lt;center&gt;
&lt;table cellspacing=&quot;2&quot; cellpadding=&quot;2&quot; border=&quot;1&quot; width=&quot;450&quot;&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td bgcolor=&quot;#66ffff&quot; valign=&quot;top&quot;&gt;&lt;b&gt;getphpvariables.php&lt;/b&gt;&lt;/td&gt;
      &lt;td valign=&quot;top&quot;&gt;&lt;br&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td nowrap=&quot;nowrap&quot; valign=&quot;top&quot;&gt;&amp;lt;form method=post action=&lt;b&gt;&amp;lt;?php
      &lt;a href=&quot;/?print&quot;&gt;print &lt;/a&gt;$PHP_SELF;
?&amp;gt;&lt;/b&gt;?a=1&amp;amp;b=2&amp;amp;c=3&amp;gt; &lt;br&gt;
Name: &amp;lt;input type=text name=name&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
Age: &amp;lt;input type=text name=age&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;input type=submit value=submit&amp;gt;&amp;lt;br&amp;gt;&lt;br&gt;
&amp;lt;/form&amp;gt;&lt;br&gt;
Please fill the form and submit it.&lt;br&gt;
      &lt;br&gt;
&amp;lt;hr&amp;gt;&lt;br&gt;
      &lt;br&gt;
Lets get some info:&lt;br&gt;
&amp;lt;p&amp;gt;PHP_SELF: &lt;b&gt;&amp;lt;?php print $PHP_SELF; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
      &lt;br&gt;
&amp;lt;p&amp;gt;The value of variable &quot;a&quot; (get method): &lt;b&gt;&amp;lt;?php print
$_GET[&quot;a&quot;];
?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Value of variable &quot;b&quot; (get method): &lt;b&gt;&amp;lt;?php print
$_GET[&quot;b&quot;];
?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Value of variable &quot;c&quot; (get method): &lt;b&gt;&amp;lt;?php print
$_GET[&quot;c&quot;];
?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Value of variable &quot;name&quot; (post method): &lt;b&gt;&amp;lt;?php print
$_POST[&quot;name&quot;];
?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Value of variable &quot;age&quot; (post method): &lt;b&gt;&amp;lt;?php print
$_POST[&quot;age&quot;];
?&amp;gt;&lt;/b&gt;&lt;br&gt;
      &lt;br&gt;
&amp;lt;p&amp;gt;Language(s) selected in the browser: &lt;b&gt;&amp;lt;?php print
$HTTP_ACCEPT_LANGUAGE;
?&amp;gt;&lt;/b&gt;&lt;br&gt;
      &lt;br&gt;
&amp;lt;p&amp;gt;Host: &lt;b&gt;&amp;lt;?php print $HTTP_HOST; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Referer: &lt;b&gt;&amp;lt;?php print $HTTP_REFERER; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Browser of the visitor: &lt;b&gt;&amp;lt;?php print $HTTP_USER_AGENT;
?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Path to our file: &lt;b&gt;&amp;lt;?php print $PATH_INFO; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Query string: &lt;b&gt;&amp;lt;?php print $QUERY_STRING; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Remote address: &lt;b&gt;&amp;lt;?php print $REMOTE_ADDR; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Remote host: &lt;b&gt;&amp;lt;?php print $REMOTE_HOST; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Name of script: &lt;b&gt;&amp;lt;?php print $SCRIPT_NAME; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Name of server: &lt;b&gt;&amp;lt;?php print $SERVER_NAME; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Local address: &lt;b&gt;&amp;lt;?php print $LOCAL_ADDR; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
&amp;lt;p&amp;gt;Path: &lt;b&gt;&amp;lt;?php print $PATH_TRANSLATED; ?&amp;gt;&lt;/b&gt;&lt;br&gt;
      &lt;br&gt;
      &lt;/td&gt;
      &lt;td nowrap=&quot;nowrap&quot; valign=&quot;top&quot;&gt;&lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;a href=&quot;#PHP_SELF&quot;&gt;Example&lt;/a&gt;&lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
Check Get and Post&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;a href=&quot;GetandPost.php&quot;&gt;here&lt;/a&gt;&lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;a href=&quot;http://phptutorial.info/scripts/languages.php&quot;&gt;Languaje
specific response&lt;/a&gt;&lt;br&gt;
      &lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
Example comming soon&lt;br&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;
&lt;br&gt;
Some of the values you will get from this script will be the same. &lt;br&gt;
&lt;br&gt;
The data may be obtained in different ways as for example those ones:&lt;br&gt;
&amp;nbsp; &lt;b&gt;&amp;lt;?php print &lt;/b&gt;&lt;b&gt;$QUERY_STRING&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;; ?&amp;gt;&lt;br&gt;
&amp;nbsp;&lt;/b&gt;&lt;b&gt; &amp;lt;?php print $_SERVER[&quot;&lt;/b&gt;&lt;b&gt;QUERY_STRING&lt;/b&gt;&lt;b&gt;&quot;];
?&amp;gt;&lt;/b&gt;&lt;b&gt;&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&lt;/b&gt;&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;


&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://smartwebtutorials.blogspot.com/feeds/3425936144657471780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/learn-abour-your-server-php-variables.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3425936144657471780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6764836370540854853/posts/default/3425936144657471780'/><link rel='alternate' type='text/html' href='http://smartwebtutorials.blogspot.com/2012/06/learn-abour-your-server-php-variables.html' title='Learn abour your server: php variables'/><author><name>Ramakrishna Reddy Ambavarapu</name><uri>http://www.blogger.com/profile/12003948604640420453</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0xUFDOjXfCf6EYdIqefo41_81b0Bxc5sf0ENtriAElOFAKocnyXkEBR--nl5CszuVHLf50IJCgnPhb9a5IG0qyFhXzEGQF52smWNiXDfKQ-5BVP_78bupaBHNckOAsg/s113/ramakrishna.jpg'/></author><thr:total>0</thr:total></entry></feed>