<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xpert Developer</title>
	<atom:link href="http://xpertdeveloper.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://xpertdeveloper.com</link>
	<description></description>
	<lastBuildDate>Wed, 17 Jul 2024 20:13:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>Null Coalescing Assignment Operator in PHP 7.4</title>
		<link>https://xpertdeveloper.com/null-coalescing-assignment-operator-in-php-7-4/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=null-coalescing-assignment-operator-in-php-7-4</link>
					<comments>https://xpertdeveloper.com/null-coalescing-assignment-operator-in-php-7-4/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Mon, 27 Apr 2020 09:18:19 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP7]]></category>
		<category><![CDATA[PHP7.4]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=3485</guid>

					<description><![CDATA[<p>PHP 7.4 comes with many good features but this one of my personal favorite. I am sure as a developer, you will also love this short and clean version of code.</p>
<p>The post <a href="https://xpertdeveloper.com/null-coalescing-assignment-operator-in-php-7-4/">Null Coalescing Assignment Operator in PHP 7.4</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>PHP 7.4 has many good features, but this is one of my favorites. I am sure as a developer, you will also love this short and clean version of the code.</p>



<p>This operator helps to remove the use of <a href="https://www.php.net/manual/en/function.isset.php" target="_blank" rel="noreferrer noopener">isset()</a> function. Let&#8217;s see how:</p>



<p>In some cases, we need to check if a variable exists then assign that value else assign some default value. before PHP 7 we used to do this as below:</p>



<pre class="wp-block-code"><code>$data&#91;'username'] = (isset($data&#91;'username']) ? $data&#91;'username'] : 'guest');</code></pre>



<p>After the release of PHP 7, we were able to achieve the same using the following:</p>



<pre class="wp-block-code"><code>$data&#91;'username'] = $data&#91;'username'] ?? 'guest';</code></pre>



<p>After the release of PHP 7.4, we can further simplify this as below:</p>



<pre class="wp-block-code"><code>$data&#91;'username'] ??= 'guest';</code></pre>



<p>All the above code block does the same thing. So pretty clear, right?</p><p>The post <a href="https://xpertdeveloper.com/null-coalescing-assignment-operator-in-php-7-4/">Null Coalescing Assignment Operator in PHP 7.4</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/null-coalescing-assignment-operator-in-php-7-4/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Everything You Need to Know Concerning WordPress</title>
		<link>https://xpertdeveloper.com/wordpress-statistics-2019/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wordpress-statistics-2019</link>
					<comments>https://xpertdeveloper.com/wordpress-statistics-2019/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Thu, 14 Mar 2019 10:38:50 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=3407</guid>

					<description><![CDATA[<p>Have you ever found yourself wondering why WordPress is so immensely popular among web developers? After all, there must some good reasons why it’s so widespread in the online world.</p>
<p>The post <a href="https://xpertdeveloper.com/wordpress-statistics-2019/">Everything You Need to Know Concerning WordPress</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<h2 class="wp-block-heading">This is massive:</h2>



<p>Over <strong>75 million WordPress sites</strong> are known to exist, making up about a third of all active websites on the Internet!</p>



<p>Before we look into a whole list, I will list some best of them here:</p>



<p>And it’s not just your average Joe’s business enterprise that makes use of WordPress, either. Many world-famous companies and institutions also utilize it. These include the likes of <strong>Sony Music, eBay Inc., BBC America, Mercedes-Benz, Time, The Rolling Stones</strong> &#8211; the list goes on and on.</p>



<p>WordPress is so prevalent in the realm of web design because it is <strong>a powerful and versatile tool</strong>. This content management system arrived on the scene in 2003. It was created by Mike Little and Matt Mullenweg as a fork of b2, its predecessor. WordPress managed to win significant recognition and popularity because it’s easy and intuitive to use. What’s more, it features a vast array of themes and plugins.</p>



<h2 class="wp-block-heading">It gets even better:</h2>



<p>WordPress is completely <strong>free to download and use</strong>, so you are more than welcome to use it right now, if you so wished. And you’d quickly learn how to use it effectively. Believe it or not, you don’t need to put in long hours to make a decent looking web page.</p>



<p>And if you think WordPress could do with some tweaks and adjustments, you’re allowed to change the source code to your liking. You can even share this new version with the world, without any fear of a litany of litigious threats coming your way. What’s not to like!</p>



<p>This is just the beginning of the story, however. <strong>There’s much more to what makes WordPress tick than this brief introduction could ever hope to describe.</strong></p>



<p>But don’t worry:</p>



<p>There is a place where you can get all the important info you need.</p>



<p>Pretty much anything you have to know about WordPress is in the infographic below, given to you in a sea of quick and fun facts and stats, not weighed down by walls of unnecessary text. It would be a challenge to find a better place where you can learn about this topic in such a condensed yet engaging format.</p>



<figure class="wp-block-image is-style-default"><img fetchpriority="high" decoding="async" width="800" height="23956" src="https://static.xpertdeveloper.com/uploads/2019/03/WordPress-Statistics.png" alt="WordPress Statistics" class="wp-image-3408" srcset="https://xpertdeveloper.com/wp-content/uploads/2019/03/WordPress-Statistics.png 800w, https://xpertdeveloper.com/wp-content/uploads/2019/03/WordPress-Statistics-300x8984.png 300w, https://xpertdeveloper.com/wp-content/uploads/2019/03/WordPress-Statistics-200x5989.png 200w, https://xpertdeveloper.com/wp-content/uploads/2019/03/WordPress-Statistics-768x22998.png 768w, https://xpertdeveloper.com/wp-content/uploads/2019/03/WordPress-Statistics-480x14374.png 480w" sizes="(max-width: 800px) 100vw, 800px" /></figure>


<p>[/fusion_text][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]</p><p>The post <a href="https://xpertdeveloper.com/wordpress-statistics-2019/">Everything You Need to Know Concerning WordPress</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/wordpress-statistics-2019/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Caution while working with float values in PHP</title>
		<link>https://xpertdeveloper.com/caution-while-working-with-float-values-in-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=caution-while-working-with-float-values-in-php</link>
					<comments>https://xpertdeveloper.com/caution-while-working-with-float-values-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Thu, 07 Mar 2019 12:01:49 +0000</pubDate>
				<category><![CDATA[Tips & Tricks]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=3389</guid>

					<description><![CDATA[<p>You are here reading this article means you are stunned by the behavior of float values in PHP. You might wonder why a separate article on this simple topic but before thinking that try running the below php code once. Are you surprised now? You will end up with the result like -8.8817841970013E-16 even if we have the same value at both sides of expression. Before we look into the correct way to deal with float values in PHP, first have a look at the reason for this odd behaviour of float values in PHP. PHP official website has already added a warning for the same behaviour of float values. So I will grab that exact explanation here: Up to here, we have seen why this type of strange behavior happens while working with float values in PHP. Now time to see how we can deal with these float values in PHP. Comparing float values in PHP First, we will see how you can get into a trap of float values while comparing those. We will with code examples to understand this in a better way. Refer few code blocks below to check the same: In the above code block, &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/caution-while-working-with-float-values-in-php/">Caution while working with float values in PHP</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>You are here reading this article means you are stunned by the behavior of <strong>float values in PHP</strong>. </p>



<p>You might wonder why a separate article on this simple topic but before thinking that try running the below php code once.</p>



<pre class="wp-block-code"><code>echo (5.63+0.06) - 5.69;</code></pre>



<p>Are you surprised now? You will end up with the result like -8.8817841970013E-16 even if we have the same value at both sides of expression.</p>



<p>Before we look into the correct way to deal with float values in PHP, first have a look at the reason for this odd behaviour of <strong>float values in PHP</strong>.</p>



<p>PHP official website has already added a warning for the same behaviour of float values. So I will grab that exact explanation here:</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large is-style-default"><img decoding="async" width="1024" height="450" data-id="3392" src="https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-1024x450.png" alt="Float Values in PHP" class="wp-image-3392" srcset="https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-1024x450.png 1024w, https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-200x88.png 200w, https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-300x132.png 300w, https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-768x337.png 768w, https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-1200x527.png 1200w, https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning-480x211.png 480w, https://xpertdeveloper.com/wp-content/uploads/2019/03/Floating-Point-warning.png 1273w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</figure>



<p>Up to here, we have seen why this type of strange behavior happens while working with float values in PHP. Now time to see how we can deal with these float values in PHP.</p>



<h2 class="wp-block-heading"><strong>Comparing float values in PHP</strong></h2>



<p>First, we will see how you can get into a trap of float values while comparing those. We will with code examples to understand this in a better way. Refer few code blocks below to check the same:</p>



<pre class="wp-block-code"><code>$a = 5.69;
$b = 5.69;
var_dump($a == $b);
// Output: bool(true)</code></pre>



<p>In the above code block, we can see that both values are the same and giving us the proper result. Now let’s check the tricky part in comparing float values in PHP.</p>



<pre class="wp-block-code"><code>$a = 5.63 + 0.06;
$b = 5.69;
 var_dump($a == $b);
// Output: bool(false)</code></pre>



<h2 class="wp-block-heading">Solution</h2>



<p>A quick and simple solution to this problem in comparing float values is to cast that to string and compare those values. Now it will compare two strings and it does not have any precision error.</p>



<pre class="wp-block-code"><code>$a = (string) (5.63 + 0.06);
$b = (string) 5.69;
var_dump($a == $b);
// Output: bool(true)</code></pre>



<p>If you think (like me) converting to a string gives us a correct result. But is not an ideal solution then the next solution is for you. <br></p>



<p>To get the solution of the above problem, we will need BCMath PHP Extension installed with PHP. You can read this article on <a href="http://localhost/xpertdev/install-bcmath-extension-in-php/">how to install PHP BCMath in PHP</a>.<br></p>



<p>Once you are done with installing BCMath extension, you can use below code and get the proper result. Instead of using direct sum we will use the bcadd method.</p>



<pre class="wp-block-code"><code>$a = bcadd(5.63, 0.06, 2);
$b = bcadd(5.69, 0, 2);
var_dump($a == $b);
// Output: bool(true)</code></pre>



<p>Let’s have a look at one more example of the same kind of case:</p>



<pre class="wp-block-code"><code>echo bcadd(5.63, 0.06, 2) - 5.69;</code></pre>



<p>You can find all the methods available for BCMath here. <a href="http://php.net/manual/en/ref.bc.php">http://php.net/manual/en/ref.bc.php</a></p>



<p>Share if you have a similar kind of experience<strong> working with float values in PHP</strong>.</p><p>The post <a href="https://xpertdeveloper.com/caution-while-working-with-float-values-in-php/">Caution while working with float values in PHP</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/caution-while-working-with-float-values-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install BCmath Extension in PHP</title>
		<link>https://xpertdeveloper.com/install-bcmath-extension-in-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-bcmath-extension-in-php</link>
					<comments>https://xpertdeveloper.com/install-bcmath-extension-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Tue, 31 Jul 2018 05:16:07 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=4612</guid>

					<description><![CDATA[<p>PHP offers various extensions to deal with different cases. BCMath is one of PHP extension which helps us while working with float values in PHP. In BCMath, BC Stands for Binary Calculator. In this article, we will see how to Install BCMath Extension in PHP on various platforms.   [gads] BC Stands for Binary Calculator Install BCMath Extension in PHP &#8211; Windows The installation of PHP extension in PHP is very simple. Open your active php.ini and look for the line [code]extension=php_bcmath.dll[/code]. If that line is commented with [code];[/code] at the start then you just need to remove that [code];[/code] and restart apache will load this BCMath extension with PHP. Install BCMath Extension in PHP &#8211; Ubuntu To install PHP extension in Ubuntu you will need either root or sudo user access. We will see how BCMath extension can be installed on various versions of PHP. PHP 5.6 [cc lang=&#8221;php&#8221;]sudo apt install php5.6-bcmath[/cc] [gads] PHP 7.0 [cc lang=&#8221;php&#8221;]sudo apt install php7.0-bcmath[/cc] Other PHP Version [cc lang=&#8221;php&#8221;]sudo apt install php-bcmath[/cc] If you are not sure which version of PHP you are using then you can type [code]php -v[/code] in your terminal and you will get a version of PHP installed. If &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/install-bcmath-extension-in-php/">Install BCmath Extension in PHP</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<div data-elementor-type="wp-post" data-elementor-id="4612" class="elementor elementor-4612">
				<div class="elementor-element elementor-element-49254f7e e-flex e-con-boxed sticky-no is-skin bg-el bg-inherit bg-light nochange-no bg-no bg-no box-no e-con e-parent" data-id="49254f7e" data-element_type="container">
					<div class="e-con-inner">
				<div class="elementor-element elementor-element-1e1d28ec elementor-widget elementor-widget-text-editor" data-id="1e1d28ec" data-element_type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
			<style>/*! elementor - v3.23.0 - 15-07-2024 */
.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}</style>				<p>PHP offers various extensions to deal with different cases. BCMath is one of PHP extension which helps us while working with float values in PHP. In BCMath, BC Stands for Binary Calculator. In this article, we will see how to <strong>Install BCMath Extension in PHP</strong> on various platforms.</p><p> </p><p>[gads]</p><blockquote><p>BC Stands for <strong>Binary Calculator</strong></p></blockquote><h2>Install BCMath Extension in PHP &#8211; Windows</h2><p>The installation of PHP extension in PHP is very simple. Open your active php.ini and look for the line [code]extension=php_bcmath.dll[/code]. If that line is commented with [code];[/code] at the start then you just need to remove that [code];[/code] and restart apache will load this BCMath extension with PHP.</p><h2>Install BCMath Extension in PHP &#8211; Ubuntu</h2><p>To install PHP extension in Ubuntu you will need either root or sudo user access. We will see how BCMath extension can be installed on various versions of PHP.</p><h4>PHP 5.6</h4><p>[cc lang=&#8221;php&#8221;]<br />sudo apt install php5.6-bcmath<br />[/cc]</p><p>[gads]</p><h4>PHP 7.0</h4><p>[cc lang=&#8221;php&#8221;]<br />sudo apt install php7.0-bcmath<br />[/cc]</p><h4>Other PHP Version</h4><p>[cc lang=&#8221;php&#8221;]<br />sudo apt install php-bcmath<br />[/cc]</p><p>If you are not sure which version of PHP you are using then you can type [code]php -v[/code] in your terminal and you will get a version of PHP installed.</p><p>If all the above method did not work for you then you can search for all available module which is related to PHP. Type apt-cache search php in your terminal and it will list all PHP modules and extension which are compatible with your PHP version.</p><p>Once an extension is installed using any of the above methods then you need to restart the apache server in order to load <strong>BCMath extension in PHP</strong>.</p><h2>Install BCMath Extension in PHP &#8211; CentOS</h2><p>Same as Ubuntu you will need root or sudo user access to install an extension in PHP.</p><h4>PHP 5.6</h4><p>[cc lang=&#8221;php&#8221;]<br />sudo yum install php56u-bcmath<br />[/cc]</p><h4>PHP 7</h4><p>[cc lang=&#8221;php&#8221;]<br />sudo yum install php7.0-bcmath<br />[/cc]</p><p>If above did not work for you then you can search for an available package for your PHP version using [code]sudo yum search bcmath[/code] and it will show available bcmath package for your PHP installation.</p><p>After the extension is installed you need to restart apache using [code]sudo service httpd restart[/code] and you are done with the installation of PHP BCMath extension.</p><p>In the next article, we will see what is the use of this PHP BCMath Extension while working with float values in PHP.</p>						</div>
				</div>
					</div>
				</div>
				</div><p>The post <a href="https://xpertdeveloper.com/install-bcmath-extension-in-php/">Install BCmath Extension in PHP</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/install-bcmath-extension-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Facts about Magento You Should Know</title>
		<link>https://xpertdeveloper.com/facts-about-magento/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=facts-about-magento</link>
					<comments>https://xpertdeveloper.com/facts-about-magento/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Tue, 17 Jul 2018 07:46:54 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=4661</guid>

					<description><![CDATA[<p>Magento is unarguably one of the largest website platforms that offers remarkable e-commerce solutions for small and large-scale businesses, firms, and personal projects. It is an easy go-to for programmers and is currently being used by big industry players like Ford, Samsung, Christian Louboutin, Lenovo, Fox Connect, Coca-Cola, and Nike because of its open-source feature and the customizable features it offers. So if you have shopped online before or you do so often, it is very likely you have gone through a website that was built with Magento. Stats show that as at 2017, more than 220,000 websites were active on the Magento platform. Today, the numbers have risen to well over 250,000 websites worldwide. [gads] Originally founded a decade and a year ago by Varien, Magento announced the launch of its premier beta client in the seven months that followed the software’s launch. It was also named after magenta, which was the color used for its first logo. Its current logo and name are, however, inspired by a popular game called Dungeons and Dragons. Today, Magento boasts two versions – the free edition, which is also known as Magento Community, and Magento Commerce for enterprises. The community created by &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/facts-about-magento/">Facts about Magento You Should Know</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Magento is unarguably one of the largest website platforms that offers remarkable e-commerce solutions for small and large-scale businesses, firms, and personal projects.</p>
<p> It is an easy go-to for programmers and is currently being used by big industry players like Ford, Samsung, Christian Louboutin, Lenovo, Fox Connect, Coca-Cola, and Nike because of its open-source feature and the customizable features it offers. So if you have shopped online before or you do so often, it is very likely you have gone through a website that was built with Magento.<br />
 Stats show that as at 2017, more than 220,000 websites were active on the Magento platform. Today, the numbers have risen to well over 250,000 websites worldwide.</p>
<p> [gads]</p>
<p> Originally founded a decade and a year ago by Varien, Magento announced the launch of its premier beta client in the seven months that followed the software’s launch. It was also named after magenta, which was the color used for its first logo. Its current logo and name are, however, inspired by a popular game called Dungeons and Dragons.</p>
<p> <img decoding="async" src="https://static.xpertdeveloper.com/uploads/2018/07/MAGENTO-INFOGRAPHIC.png" alt="Magento Facts You should know" width="917" height="27873" class="aligncenter size-full wp-image-3334" /></p>
<p> Today, Magento boasts two versions – the free edition, which is also known as Magento Community, and Magento Commerce for enterprises.<br />
 The community created by Magento is run as such. It has an annual eCommerce conference of users, merchants, developers and partners. The first of this kind held in Los Angeles, USA in 2011 with over 600 people in attendance. However, the community currently boasts of over 800,000 users who come from over 73 countries from all around the world. </p>
<p> 12 months after Magento was founded, it recorded 500,000 downloads and acquired over 50,000 merchant users that same year. In fact, till date, the word ‘Magento’ is a more searched word than the term “eCommerce” on the Google search engine. </p>
<p> [gads]</p>
<p> While most other website builders don’t require coding and so take away the flexibility that should come with owning your own website, Magento is designed for the avid programmer and allows a great deal of flexibility. It also is best suited for dedicated or VPS hosting, as the platform is not the lightest content management system out there. Luckily, <a href="https://websitebuilder.org/hostgator-coupon" target="_blank" rel="noopener noreferrer">discount hosting plans</a> are not so hard to come by these days.</p>
<p> Now, that’s a challenge for non-programmers because the platform requires a certain level of coding competence. It also means that creating a website will be a herculean task without the requisite coding knowledge. To put it mildly, the platform is for coders who don’t want to start from scratch.</p>
<p> For starters, Magento&#8217;s source code has 11 programming languages and they include HTML, JavaScript, XML, PHP, CSS, ActionScript, XML schema, and MXML. Also, in data storage, it uses “entity.attribute.value” – all of these will probably not make sense to you if you are not familiar with programming. </p>
<p> Let’s go a few paces down memory lane to show you bits and pieces of the behind-the-scenes of Magento’s development.<br />
 In developing Magento, most of it, an estimated 99.9%, was developed in the Ukraine and that development, over the years, has taken 2514 years in man-hour efforts at a cost of $138,254,110. </p>
<p> [gads]</p>
<p> Today, the average salary earned by PHP developers of Magento is within the range of $73,000 and $103,000 with a good number of these developers in the U.S, Canada, Germany, India and Ukraine. </p>
<p> It also boast a gross merchandise of $100 billion every year while merchants who sell on the Magento platforms sold $101 billion worth of merchandise to over 51 million customers in 2016. </p>
<p> Moreover, of the 14,500 stores that use Magento’s platform, 6 out of 10 merchants run outfits that are business-to-business or business-to-customer in nature. And by projections, their customer base on their Magento-based websites would have increased by 200% in 2020.<br />
 By demographics, the country with the highest number of Magento users is the United States with a wide 100,000 margin between the numbers in the UK and Netherlands. </p>
<p> Revenue-wise, Magento has made $4.2billion in revenue and that figure is expected to grow to $14.2billion in 2020. </p>
<p> With Magento-based websites, like websites built on other platforms, security is always a major concern and the history says a few things about the issues customers and business owners who shop and own websites built with Magento have experienced or may be exposed to. </p>
<p> According to a recent survey, a significant 85% of eCommerce websites that have been hacked over the last decade have been Magento websites. And of the stores listed on the platform, at least 62% of them are prone to one security issue while 14% have over 4 security issues to deal with. In fact, it was recently discovered that over 4,000 stores that use the platform were exposed to attacks like cross-site scripting. </p>
<p> Stores can now choose to remain on the Magento 1 version or hop on to the Magento 2 version which is an improvement on the technical issues that the old version has. That said, it’s been discovered that stores that sell clothing accessories and products form the majority of those who use Magento.x1 while Magento.x2 is mostly used by stores that sell footwear, toys, computers, electronics, and cosmetics. </p><p>The post <a href="https://xpertdeveloper.com/facts-about-magento/">Facts about Magento You Should Know</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/facts-about-magento/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Can HTML5 Boost VR Gaming?</title>
		<link>https://xpertdeveloper.com/can-html5-boost-vr-gaming/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=can-html5-boost-vr-gaming</link>
					<comments>https://xpertdeveloper.com/can-html5-boost-vr-gaming/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Wed, 16 Aug 2017 06:53:41 +0000</pubDate>
				<guid isPermaLink="false">http://localhost/xpertdev/?p=4628</guid>

					<description><![CDATA[<p>HTML5 has proven to be an interesting language for game developers. Part of the idea when it first emerged was that it would help to make games and other programs easily workable on a variety of devices. This very idea, as you can imagine, was instantly exciting in gaming. Previously, the best we could do adapting things like mobile games from browser experiences, or console games from mobile experiences, was imitation. Now we can more or less translate an exact game from one platform to the other with minimal alteration. Plus, anyone with some basic coding experience and JavaScript skill can learn how to create a game from scratch in HTML5. It looked like the total package for developers even a few years ago. [gads] So far, while we have yet to see anyone game propped up as the prevailing example of HTML5&#8217;s success, we have begun to see a lot of the positive effects we had expected. Some of the earlier implementations were in the casino genre, where the need to translate online success to mobile platforms was clear. Back in 2015, online developers working in this genre started to launch their first HTML5 products, optimizing games to suit &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/can-html5-boost-vr-gaming/">Can HTML5 Boost VR Gaming?</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>HTML5 has proven to be an interesting language for game developers. Part of the idea when it first emerged was that it would help to make games and other programs easily workable on a variety of devices. This very idea, as you can imagine, was instantly exciting in gaming. Previously, the best we could do adapting things like mobile games from browser experiences, or console games from mobile experiences, was imitation. Now we can more or less translate an exact game from one platform to the other with minimal alteration. Plus, anyone with some basic coding experience and JavaScript skill can <a href="https://www.udemy.com/create-a-html5-game-from-scratch/">learn how to create a game from scratch</a> in HTML5. It looked like the total package for developers even a few years ago.</p>
<p> [gads]</p>
<p> <img loading="lazy" decoding="async" src="http://static.xpertdeveloper.com/uploads/2017/08/HTML5_VR_Gaming.jpg" alt="HTML5 VR Gaming" width="520" height="293" class="aligncenter size-full wp-image-3301" /></p>
<p> So far, while we have yet to see anyone game propped up as the prevailing example of HTML5&#8217;s success, we have begun to see a lot of the positive effects we had expected. Some of the earlier implementations were in the casino genre, where the need to translate online success to mobile platforms was clear. Back in 2015, online developers working in this genre started to <a href="https://www.androidslots.co.uk/news/new-games/genesis-launch-first-exclusive-html5-slot-bier-fest">launch their first HTML5 products</a>, optimizing games to suit multiple devices. Two years later, there are countless online casino titles that are available in identical form on mobile devices. It&#8217;s almost been a subtle shift, because this is an industry that&#8217;s always evolving and expanding with or without a new coding language, but it&#8217;s still resulted in a lot of fun, versatile games.</p>
<p> Beyond casino platforms, weve also seen the gradual rollout of a lot more impressive games that work similarly on different gaming systems of media. You might be surprised at some of the <a href="https://tutorialzine.com/2015/02/30-amazing-games-made-only-with-html5">amazing games made with HTML5</a>, in that some have become very popular without the fact that they were written in this language necessarily being broadcast. Bejeweled is probably the most famous of the bunch, though titles like 2048, Angry Birds, and HexGL are certainly recognizable as well.</p>
<p> [gads]</p>
<p> It&#8217;s pretty clear that expectations have been met regarding HTML5 game design. The next question is where it might go from here? To address this question we need only think about the near future of gaming in general, and there it&#8217;s clear that virtual reality is king. So—can HTML5 boost VR gaming in any significant way?</p>
<p> That&#8217;s a difficult question to answer at this stage given that VR is still getting off the ground, at least where game design is concerned. But the name to watch is WebVR. This is effectively another design language that has been described as <a href="https://venturebeat.com/2017/05/06/webvr-gaming-is-virtual-realitys-sweet-spot/">virtual reality&#8217;s sweet spot</a>, and it&#8217;s one that can actually be paired with HTML5. The effect is basically to turn web-based games into VR experiences that can be enjoyed on phones or desktops, without any kind of VR equipment. Its a means of bringing VR gaming to the masses and broadening the experiences, and its one of the key developments that could make VR more popular.</p><p>The post <a href="https://xpertdeveloper.com/can-html5-boost-vr-gaming/">Can HTML5 Boost VR Gaming?</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/can-html5-boost-vr-gaming/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Secure Websites &#8211; Why Using an SSL Certificate is Important</title>
		<link>https://xpertdeveloper.com/importance-of-an-ssl-certificate/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=importance-of-an-ssl-certificate</link>
					<comments>https://xpertdeveloper.com/importance-of-an-ssl-certificate/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Thu, 30 Mar 2017 07:10:40 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=4634</guid>

					<description><![CDATA[<p>There has been a big shift towards a more secured World Wide Web these past couple of years. Websites are not using SSL security to safeguard data transmissions to and from the server. Top names such as Google and Microsoft are pushing a more secured internet forward too; Google even started prioritizing secured websites in its search results. An SSL certificate is all you need to get started with securing your site. There are a number of independent certificate issuing companies that can help you get your site secured in no time. Why is using SSL certificate important? There are a number of reasons why SSL certificate is a must, including some benefits you wouldn&#8217;t want to miss. Basic Authentication One of the first functions of using an SSL certificate is to provide authentication. With an SSL certificate in place, users can rest assured knowing that the information they get is coming from the right server instead of an imposter. It works the other way around too. When user submits their information, such as login information or credit card details, they know for sure that the information is being sent to the right server. Authentication is becoming more and more &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/importance-of-an-ssl-certificate/">Secure Websites – Why Using an SSL Certificate is Important</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>There has been a big shift towards a more secured World Wide Web these past couple of years. Websites are not using SSL security to safeguard data transmissions to and from the server. Top names such as Google and Microsoft are pushing a more secured internet forward too; Google even started prioritizing secured websites in its search results.</p>
<p> <img loading="lazy" decoding="async" src="http://static.xpertdeveloper.com/uploads/2017/03/web-security.jpg" alt="Web Security" width="864" height="576" class="aligncenter size-full wp-image-3293" /></p>
<p> An SSL certificate is all you need to get started with <a href="https://hostpresto.com/ssl-certificates/" target="_blank" rel="noopener noreferrer">securing your site</a>. There are a number of independent certificate issuing companies that can help you get your site secured in no time. Why is using SSL certificate important? There are a number of reasons why SSL certificate is a must, including some benefits you wouldn&#8217;t want to miss.</p>
<h2>Basic Authentication</h2>
<p> One of the first functions of using an SSL certificate is to provide authentication. With an SSL certificate in place, users can rest assured knowing that the information they get is coming from the right server instead of an imposter. It works the other way around too. When user submits their information, such as login information or credit card details, they know for sure that the information is being sent to the right server.</p>
<p> Authentication is becoming more and more important due to the increase in phishing attacks. With over 70% of our lives now stored digitally, protecting information online is becoming very important. The presence of an SSL certificate and good implementation of SSL security adds that extra layer of confidence when browsing the web.</p>
<p> Speaking of confidence….</p>
<h2>Trust and Credibility</h2>
<p> A basic SSL certificate can now be acquired for free thanks to programs like Let&#8217;s Encrypt. The free SSL certificate will verify that the domain name access by users is hosted by the right server, providing an extra layer of security in the process. This is called a Domain Validated certificate and it&#8217;s the most basic type of SSL certificate on the market. A DV certificate, however, is not the only type of SSL certificate you can get today.</p>
<p> If you&#8217;re running an online store or a web service, you may want to consider getting an Organization Validated certificate or OV certificate. As you may have guessed, there are more verification steps to complete before you can acquire an OV certificate. The certificate issuing agency will also verify the existence of your business, either through direct confirmations or by relying on government databases.</p>
<p> OV certificates will <a href="https://www.ssl.com/article/dv-ov-and-ev-certificates/" target="_blank" rel="noopener noreferrer">display more information</a> when clicked. It will verify that the domain is owned and run by the right company. For ecommerce websites, this establishes trust and increase credibility. Customers will feel more confident about making purchases on the online store.</p>
<h2>Good for SEO</h2>
<p> As mentioned before, Google and other big brands are starting to take active steps towards a more secured World Wide Web. One of those steps is prioritizing secured contents when displaying search results; Google, Bing and other popular search engines are starting to take the use of SSL certificate as one of the metrics when ranking websites for search results.</p>
<p> Adding a valid SSL certificate to your site alone can help boost SEO performance by a substantial margin. You will have to optimize the rest of the site for maximum performance, but the SSL security is a great start.</p>
<h2>Safe Data Transmissions</h2>
<p> Another key advantage of using a valid SSL certificate is encryption. The information transmitted to and from the server will not be vulnerable to theft and sniffing. Only end points with the right encryption key can decode the transmitted data.</p>
<p> That brings us back to the credit card details and personal information sent by customers to online stores. For ecommerce site owners, a good SSL security implementation is a must. It will help prevent cases of data leaks that can bring a successful online store to a close.</p>
<h2>Direct Impact on Revenue</h2>
<p> One of the things that prevent site owners from investing in a valid SSL certificate is price. A good certificate issued by a reputable body such as Verisign or Symantec can be rather expensive. That said, the verified certificate will also have a direct impact on sales and revenue, especially in the case of online stores.</p>
<p> A lot of studies have revealed that ecommerce sites that are covered with a valid SSL certificate entirely can expect a boost in sales of up to 20% in the first three months alone. The higher level of confidence customers have when browsing through secured sites make them more likely to complete their purchases without hesitation.</p>
<p> The SSL certificate will practically pay for itself. You don&#8217;t have to rely on expensive SSL certificates too. Some hosting companies are adding a free SSL certificate to certain service packages. The benefits of having a valid certificate, however, are indeed too good to miss. Get a good SSL certificate implemented today and start enjoying these benefits we have covered in this article.</p><p>The post <a href="https://xpertdeveloper.com/importance-of-an-ssl-certificate/">Secure Websites – Why Using an SSL Certificate is Important</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/importance-of-an-ssl-certificate/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>3 Coding Languages to Kick Off Your Programming Journey</title>
		<link>https://xpertdeveloper.com/3-coding-languages-to-kick-off-your-programming-journey/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=3-coding-languages-to-kick-off-your-programming-journey</link>
					<comments>https://xpertdeveloper.com/3-coding-languages-to-kick-off-your-programming-journey/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Tue, 21 Feb 2017 07:02:51 +0000</pubDate>
				<guid isPermaLink="false">http://localhost/xpertdev/?p=4630</guid>

					<description><![CDATA[<p>Low-level coding is not as hard as many people assume it to be. According to Michael Morgan and Matthew Butler from Monash University’s IT college, the real challenge is in high-level programming. The drop-out rate for a typical computer science class is at 25%, according to the Higher Education Authority. [gads] Some languages have steeper learning curves that others. Aharon Yadin from The Max Stern Academic College of Emek Yezreel in Israel said that starting with Python reduces the drop out from coding classes by up to 77%, for example. It is better to start with the relatively easier languages before moving on to the complex coding languages. Here are three of the simpler languages that are recommended for beginners. C++ C++ is the step-up language from C. It is considered a fundamental programming language because it addresses the beginning of computer programming. C++ is not necessarily applicable for the learner as a language for writing code that he or she will use in the future, but it is a useful tool for learning how to think like a programmer. C++ teaches the student how to define the problem, create a plan of action and follow through with execution. C++ &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/3-coding-languages-to-kick-off-your-programming-journey/">3 Coding Languages to Kick Off Your Programming Journey</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Low-level coding is not as hard as many people assume it to be. According to Michael Morgan and Matthew Butler from Monash University’s IT college, the real challenge is in high-level programming. The <a href="http://www.thejournal.ie/college-drop-out-rates-revealed-40207-Oct2010/" target="_blank" rel="noopener noreferrer">drop-out rate for a typical computer science class</a> is at 25%, according to the Higher Education Authority.</p>
<p> [gads]</p>
<p> <img loading="lazy" decoding="async" src="http://static.xpertdeveloper.com/uploads/2017/02/programming-1024x684.jpg" alt="" width="625" height="417" class="aligncenter size-large wp-image-3288" /></p>
<p> Some languages have steeper learning curves that others. Aharon Yadin from The Max Stern Academic College of Emek Yezreel in Israel said that starting with Python reduces the drop out from coding classes by up to 77%, for example. It is better to start with the relatively easier languages before moving on to the complex coding languages. Here are three of the simpler languages that are recommended for beginners.</p>
<h2>C++</h2>
<p> C++ is the step-up language from C. It is considered a fundamental programming language because it addresses the beginning of computer programming. C++ is not necessarily applicable for the learner as a language for writing code that he or she will use in the future, but it is a useful tool for learning how to <a href="http://lifehacker.com/dont-just-learn-to-code-learn-how-to-think-from-comput-1598683903" target="_blank" rel="noopener noreferrer">think like a programmer</a>. C++ teaches the student how to define the problem, create a plan of action and follow through with execution. C++ is used in a wide variety of applications ranging from robotics to video games. Learning it, therefore, will equip a beginner with the basics of programming.</p>
<p> [gads]</p>
<h2>Python</h2>
<p> Some experts recommend Python as the first coding language to learn. It was developed in the 1980s by Guido van Rossum. He then gave the language to the Python Software Foundation, which in turn set up the rules. Python is an open source language. That means it can be used by anyone for any purpose, including commercial purposes, for free. Python is predominantly a scripting language, meaning that it is best used for creating easy-to-read code in a short time. Python is a high-level flexible language and as such is used for many applications. With the language being open source, there is a ton of documentation and instructional material that is freely available online for beginners.</p>
<h2>Java</h2>
<p> Java is an object-oriented programming language that was developed by Oracle. It is one of the most enduring languages as it is found in almost all applications written in code. The wide use makes it a valuable tool to learn. Java is not easy to learn. However, there are many places where <a href="https://makeawebsitehub.com/learn-to-code-for-free/" target="_blank" rel="noopener noreferrer">coding can be learnt for free</a>, so anyone willing to dedicate time and effort can master coding in Java. The language fosters analytical and logical thinking, all skills which are invaluable in coding.</p>
<p> Regardless what language you choose to start with, the most important thing is the application of effort and time.</p><p>The post <a href="https://xpertdeveloper.com/3-coding-languages-to-kick-off-your-programming-journey/">3 Coding Languages to Kick Off Your Programming Journey</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/3-coding-languages-to-kick-off-your-programming-journey/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Magento 1 Vs Magento 2 [Infographic]</title>
		<link>https://xpertdeveloper.com/magento1-vs-magento2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=magento1-vs-magento2</link>
					<comments>https://xpertdeveloper.com/magento1-vs-magento2/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Sat, 21 Jan 2017 07:05:52 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=4632</guid>

					<description><![CDATA[<p>It is often seen as a matter of conflict between Magento 2 users when it comes to Magento 2 migration. Since its release, Magento 2 has dominated the ecommerce market with its state of the art design, superior coding and latest features. However, migrating to Magento 2 has been held by many insecurities that have not yet been addressed. We will address all the reasons to tell why you are missing the new platform in this infographic compiled and designed by FMEextensions &#8211; a Magento custom development agency. Faster is Better In the older versions of Magento 2, speed was quite the disagreement. But thanks to the superior coding practices of Magento developers, the new version has wiped all records of slow page loading and delayed checkout process. Magento 2 now loads pages 50% faster than Magento 1x. The checkout process has also improved and now runs 38% faster than the previous versions. The page loading has been significantly reduced and set to benchmark of maximum 2 seconds. This means Magento 2 merchants no longer need to suffer increased bounce rates and shopping cart abandonment due to sluggish page loading and broken checkout process. With the new coding techniques, the &#8230;</p>
<p>The post <a href="https://xpertdeveloper.com/magento1-vs-magento2/">Magento 1 Vs Magento 2 [Infographic]</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>It is often seen as a matter of conflict between Magento 2 users when it comes to Magento 2 migration. Since its release, Magento 2 has dominated the ecommerce market with its state of the art design, superior coding and latest features. However, migrating to Magento 2 has been held by many insecurities that have not yet been addressed. We will address all the reasons to tell why you are missing the new platform in this infographic compiled and designed by FMEextensions &#8211;  a <a href="https://www.fmeextensions.com/magento-custom-development.html" target="_blank" title="Magento custom development agency" rel="noopener noreferrer">Magento custom development agency</a>. </p>
<h2>Faster is Better</h2>
<p> In the older versions of Magento 2, speed was quite the disagreement. But thanks to the superior coding practices of Magento developers, the new version has wiped all records of slow page loading and delayed checkout process. Magento 2 now loads pages 50% faster than Magento 1x. The checkout process has also improved and now runs 38% faster than the previous versions. The page loading has been significantly reduced and set to benchmark of maximum 2 seconds. This means Magento 2 merchants no longer need to suffer increased bounce rates and shopping cart abandonment due to sluggish page loading and broken checkout process. With the new coding techniques, the Magento 2 can take on orders 117% more orders compared to the older versions without breaking a sweat. Its now capable of handling heavier loads than it used, but without compromising the user experience. With its notched up performance in speed, it can now take up to 2.1 million more page views per hour. </p>
<p> Speed is a significant improvement in the new version, but not the only improvement. Magento 2 now features much safer transactions with secured payment gateways through its enhanced modular structure. Merchants can use SEO feature more freely and effectively to rank their web pages and get better results in faster periods. The back office is also simplified and streamlined compared to the previous admin panel. The navigation is compact with elegantly designed panel. Any merchant can use it without needing any technical skills or prior experience. To view more information about Magento 2, see the infographic below. </p>
<p> <img loading="lazy" decoding="async" src="http://static.xpertdeveloper.com/uploads/2017/01/Magento-1-Vs-Magento-2.jpg" alt="Magento-1-Vs-Magento-2" width="1100" height="4860" class="aligncenter size-full wp-image-3281" /></p><p>The post <a href="https://xpertdeveloper.com/magento1-vs-magento2/">Magento 1 Vs Magento 2 [Infographic]</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/magento1-vs-magento2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Yii2: Connection string for different Database Server</title>
		<link>https://xpertdeveloper.com/db-connection-string-for-different-database-server-in-yii2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=db-connection-string-for-different-database-server-in-yii2</link>
					<comments>https://xpertdeveloper.com/db-connection-string-for-different-database-server-in-yii2/#respond</comments>
		
		<dc:creator><![CDATA[Avinash]]></dc:creator>
		<pubDate>Wed, 07 Dec 2016 07:13:05 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<guid isPermaLink="false">http://localhost/xpertdev/?p=4636</guid>

					<description><![CDATA[<p>Yii2 supports different database server types and each one have its own way to connect to database. To connect with any database we need to prepare DSN for connection. In this quick tip, we are going to see how DSN should be created for different Database servers. [gads] If you are running the basic app of Yii2 then you need to make these changes in [code]db.php[/code] file under config directory and in case of advance application, it should be done in [code]main.php[/code] under config directory. [cc lang=&#8221;php&#8221;] [/cc]</p>
<p>The post <a href="https://xpertdeveloper.com/db-connection-string-for-different-database-server-in-yii2/">Yii2: Connection string for different Database Server</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>Yii2 supports different database server</strong> types and each one have its own way to connect to database. To connect with any database we need to prepare <strong>DSN</strong> for connection.</p>
<p> In this quick tip, we are going to see how DSN should be created for different Database servers.</p>
<p> [gads]</p>
<p> If you are running the basic app of Yii2 then you need to make these changes in [code]db.php[/code] file under config directory and in case of advance application, it should be done in [code]main.php[/code] under config directory.</p>
<p> [cc lang=&#8221;php&#8221;]<br />
 <?php
 return [
    'components' =  [
          'db' => [<br />
            &#8216;class&#8217; => &#8216;yii\db\Connection&#8217;,<br />
            &#8216;dsn&#8217; => &#8216;mysql:host=localhost;dbname=reportsa_macromoney&#8217;, // MySQL, MariaDB<br />
            //&#8217;dsn&#8217; => &#8216;sqlite:/path/to/database/file&#8217;, // SQLite<br />
            //&#8217;dsn&#8217; => &#8216;pgsql:host=localhost;port=5432;dbname=mydatabase&#8217;, // PostgreSQL<br />
            //&#8217;dsn&#8217; => &#8216;cubrid:dbname=demodb;host=localhost;port=33000&#8217;, // CUBRID<br />
            //&#8217;dsn&#8217; => &#8216;sqlsrv:Server=localhost;Database=mydatabase&#8217;, // MS SQL Server, sqlsrv driver<br />
            //&#8217;dsn&#8217; => &#8216;dblib:host=localhost;dbname=mydatabase&#8217;, // MS SQL Server, dblib driver<br />
            //&#8217;dsn&#8217; => &#8216;mssql:host=localhost;dbname=mydatabase&#8217;, // MS SQL Server, mssql driver<br />
            //&#8217;dsn&#8217; => &#8216;oci:dbname=//localhost:1521/mydatabase&#8217;, // Oracle<br />
           &#8216;username&#8217; => &#8216;DB User Name&#8217;,<br />
           &#8216;password&#8217; => &#8216;Password for selected user&#8217;,<br />
           &#8216;charset&#8217; => &#8216;utf8&#8217;,<br />
         ]<br />
      ];<br />
 ];</p>
<p> ?><br />
 [/cc]</p><p>The post <a href="https://xpertdeveloper.com/db-connection-string-for-different-database-server-in-yii2/">Yii2: Connection string for different Database Server</a> first appeared on <a href="https://xpertdeveloper.com">Xpert Developer</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://xpertdeveloper.com/db-connection-string-for-different-database-server-in-yii2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
