<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>My Programming Tutorials</title>
	<atom:link href="https://www.myprogrammingtutorials.com/feed" rel="self" type="application/rss+xml" />
	<link>https://www.myprogrammingtutorials.com/</link>
	<description>Lets turn into a Professional Developer</description>
	<lastBuildDate>Thu, 24 Oct 2024 09:54:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.5</generator>

<image>
	<url>https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/01/cropped-logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>My Programming Tutorials</title>
	<link>https://www.myprogrammingtutorials.com/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">3073289</site>	<item>
		<title>Why Rust is Gaining Popularity in Systems Programming</title>
		<link>https://www.myprogrammingtutorials.com/rust-in-systems-programming.html</link>
					<comments>https://www.myprogrammingtutorials.com/rust-in-systems-programming.html#respond</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Thu, 24 Oct 2024 09:50:38 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[Technology]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=836</guid>

					<description><![CDATA[<p>The popular Rust programming language has become one of the most important languages for new systems programming projects in recent years. Rust is a fascinating programming language due to its memory safety, speed, and concurrency characteristics which provide solutions for many issues faced by developers when working with lower-level languages like Cor C++. This makes… <a href="https://www.myprogrammingtutorials.com/rust-in-systems-programming.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/rust-in-systems-programming.html">Why Rust is Gaining Popularity in Systems Programming</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The popular Rust programming language has become one of the most important languages for new systems programming projects in recent years. Rust is a fascinating programming language due to its memory safety, speed, and concurrency characteristics which provide solutions for many issues faced by developers when working with lower-level languages like Cor C++. This makes Rust a pretty attractive option for systems programming, particularly where performance and reliability are concerned. In this article, I&amp;#39;ll talk about why Rust is becoming trendy in systems programming, how it stacks up against other languages as well as the impact of Rust on The wider programming ecosystem.</p>
<p>Rust is being chosen as the way to go for systems programming language because it does not achieve its speed at the cost of memory safety. Memory management is a well-known problematic abrasive in systems programming languages like C and C++; either static method was to hold-up for user dynamism (because suddenly some part of code requires more or less memory) then manual, almost complete with no able reference mechanism. The common result was buffer overflow/underflows &amp;amp; dereferencing to `null` whereas this place should be properly allocated. Rust, however, came along with a borrow checker and ownership model that guaranteed memory safety at compile time leading to the elimination of many bugs that had routinely plagued C-based (and even some C++ codebases). This is why the ease of writing reliable and efficient code has motivated companies, especially those in heavily regulated industries like finance or sensitive about costs such as gaming to choose Rust. For instance, it might be a piece of software for machines by the construction equipment company while developers take care of pricing and logistics algorithms around heavy machinery like <a href="https://khetigaadi.com/jcb-price-backhoe-loaders/en" target="_blank" rel="nofollow noopener">JCB price</a> comparisons in sales platforms.</p>
<h3>Controlling Memory Leak and Buffer Overflows in Rust</h3>
<p>Suppose there is one spot in the system’s programming, Memory handling any which way is the hardest. These languages include C and C++, which put the onus of explicitly allocating, freeing up memory onto developers. Many issues arise from this, such as dangling pointers, double frees, or memory leaks simple changes lead to system failure and open up new opportunities for attackers. Rust solves this problem with a unique ownership &amp;amp; borrowing system causing the memory to never be mismanaged. This guarantees that when a variable goes out of scope its associated memory is deallocated, and this checking occurs at compile time in contrast to some other programming languages which have done so at run-time (although I am not aware of any examples with similar features).</p>
<p>The main advantage of using Rust for systems programming is memory safety without relying on a garbage collector. Unlike languages like Java or Go, where garbage collection can introduce bottlenecks and degrades performance in high-performance applications, Rust puts memory management under your control without suffering from the overhead. The kind of balance between control and safety Rust achieves has made it particularly appealing to sectors like embedded systems, where tight resource management a hardware peculiarity for this field is one must-issue</p>
<h3>Concurrency without tradeoffs</h3>
<p>The other reason for Rust climbing in systems programming is its excellent concurrency model. Systems programming needs to be able to execute multiple processes in parallel, commonly known as concurrency which is very important for modern multi-core processors. Concurrent code written in traditional languages like C or C++ suffers from race conditions, deadlocks, and various synchronization issues which makes writing concurrently faulty.</p>
<p>Not only does Rust’s ownership system prevent memory safety issues, but it also allows it to ensure that data is accessed safely across threads. This isn&amp;#39;t an issue with Rust, as it uses a concurrency model that prevents data races at compile time; This means developers can write multi-threaded applications safe in the knowledge they won&amp;#39;t run into race conditions. This is a huge benefit for industries that use high-throughput concurrent systems like gaming engines, cloud computing platforms, or blockchain tech.</p>
<p>Having thread-safe guarantees, Rust frees the developer to optimize performance and ship software without getting tangled in synchronization bugs. This has enabled the language to be used in high-performance, highly scalable languages: web servers, databases, and operating systems.</p>
<h3>C/C++ Levels of Performance</h3>
<p><strong>Systems Programming:</strong></p>
<p>For decades, one language that has been considered the king of the performance domain is C, and Italy&amp;#39;s next-level brother C++. Rust reaches its performance with extra safety guarantees, making it a strong case for many high-performance applications. With Rust, its zero-cost abstractions ensure that high-level constructs like iterators, pattern matching, and trait-based polymorphism have no runtime penalty.</p>
<p>In addition, because Rust has a powerful optimizing compiler, you will be able to write code that performs as well (or even faster) than C in a safe and maintainable manner. This is especially handy in places like operating and real-time systems, where minimal latency and high throughput are table stakes. Consequently, Rust is starting to be used in performance-sensitive applications such as web browsers (where Mozilla&amp;#39;s Servo engine already uses it) and blockchain systems (high transaction throughput becomes vital).</p>
<h3>Feasibility in Big Projects and Corporates</h3>
<p>Rust is not only a rising star on the popularity level, but a monumental company, and projects like it. Rust was developed by Mozilla and now ships with the Firefox Web browser in an effort to improve performance and security. Polkadot Polkadot uses Rust to achieve this high-speed concurrency when managing transactions on the blockchain platform. One example is Amazon Web Services (AWS), which deploys Rust in its serverless services due to the memory safety and performance Rust brings.</p>
<p>The popularity of Rust has been growing, propped up by these high-profile adoptions which in turn have served to validate its value proposition for systems programming. Rust boasts a growing ecosystem of libraries and tools that make it the go-to language for anyone working anywhere from microcontrollers all the way to distributed systems.</p>
<h3>An Active Community And Ecosystem</h3>
<p>A lot of the momentum that Rust has is also due to its mature community and ecosystem. It is the most-loved language in Stack Overflow’s Developer Survey for first-time compilers, neither of which speaks volumes compared to its long-standing approachable community and great beginner support. The Rust community is really big on mentorship and teamwork, which has made the environment excellent for developers of all skill ranges.</p>
<p>Apart from that, the Rust ecosystem provides an extensive set of libraries and frameworks which makes it easier for developers to lay up systems applications. An example would confide in Tokio, which is a famous Rust collection of the taskmaster API, and Rocket, one from higher level web systems on Rust. This is immersed with the focal libraries together with other facilitates, such as for instance cRgo (that Rust package manager), And that’s at the very least bringing a new toolset to adept to encourage capacity sort of run-time optimization to enroot pre-requisite and release enjoy a live virile floral star circling unawarded planet-demanded libations on enchantingly harsh physics base.</p>
<h3>Conclusion</h3>
<p>The popularity that Rust is gaining for systems programming could be explained by its virtues around memory safety + concurrency guarantees in combination with performance closer to C and C++, unlike any other languages. Targeting some of the biggest pain points for traditional systems programming, Rust has emerged as an ideal language for building high-performance and reliable software. With the backing of large tech companies and projects, a growing community of enthusiastic developers, plus its own vibrant ecosystem Rust can only gain momentum as a systems programming language. Rust provides an attractive option for modern systems programming, whether you are targeting embedded hardware or writing real-time software</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/rust-in-systems-programming.html">Why Rust is Gaining Popularity in Systems Programming</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/rust-in-systems-programming.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">836</post-id>	</item>
		<item>
		<title>How XML Files can be Converted into JSON Files with the Help of Online Tools</title>
		<link>https://www.myprogrammingtutorials.com/xml-to-json-converter.html</link>
					<comments>https://www.myprogrammingtutorials.com/xml-to-json-converter.html#respond</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Sat, 10 Sep 2022 04:11:52 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=820</guid>

					<description><![CDATA[<p>XML and JSON are the most popular formats for packaging and sending data in software systems. XML stands for Extensible Markup Language and JSON stands for JavaScript Object Notation. Both XML and JSON are written in such a way that computers and humans can understand them without having to do any translation.  Now different people… <a href="https://www.myprogrammingtutorials.com/xml-to-json-converter.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/xml-to-json-converter.html">How XML Files can be Converted into JSON Files with the Help of Online Tools</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-821" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/xml-to-json.png?resize=1200%2C650&#038;ssl=1" alt="" width="1200" height="650" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/xml-to-json.png?w=1200&amp;ssl=1 1200w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/xml-to-json.png?resize=300%2C163&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/xml-to-json.png?resize=1024%2C555&amp;ssl=1 1024w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/xml-to-json.png?resize=768%2C416&amp;ssl=1 768w" sizes="(max-width: 1000px) 100vw, 1000px" data-recalc-dims="1" /></p>
<p>XML and JSON are the most popular formats for packaging and sending data in software systems. XML stands for Extensible Markup Language and JSON stands for JavaScript Object Notation.</p>
<p>Both XML and JSON are written in such a way that computers and humans can understand them without having to do any translation.  Now different people have different requirements and that’s where the differences between XML and JSON start becoming apparent.</p>
<p>The problem arises when independent systems that utilize different methods of data storage have to interface with each other. To prevent a communication gap, a conversion between the different storage types needs to be available.</p>
<p>That’s why XML to JSON conversion is very important. It enables the independent parts of a large system to communicate with each other without problems.</p>
<h2>How to Convert XML to JSON by Utilizing an Online Tool?</h2>
<p>The conversion process is important, but how does one even go about it? If you are a programmer you have to write up code that is compatible with the system and handles converting XML to JSON and vice versa.</p>
<p>But that is quite cumbersome as the code needs to be different for every system. A much easier method is to simply write a script that sends the data to an <a href="https://www.utilities-online.info/xmltojson"><u>XML to JSON converter</u></a>, gets the conversion, and passes it on to the next system.<img decoding="async" class="aligncenter size-full wp-image-822" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-1.jpeg?resize=1280%2C653&#038;ssl=1" alt="" width="1280" height="653" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-1.jpeg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-1.jpeg?resize=300%2C153&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-1.jpeg?resize=1024%2C522&amp;ssl=1 1024w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-1.jpeg?resize=768%2C392&amp;ssl=1 768w" sizes="(max-width: 1000px) 100vw, 1000px" data-recalc-dims="1" /></p>
<p>But conversion cannot happen willy-nilly. There are some rules that need to be observed so that there are no issues when XML to JSON conversions happen.</p>
<h4><em><i>Rules:</i></em></h4>
<ul>
<li>No delimiter characters should be present in the <a href="https://way2tutorial.com/xml/elements-attributes.php"><u>XML element and attribute</u></a></li>
<li>XML comments will not be converted as they are not represented in JSON.</li>
<li>The conversion is always to JSON strings.</li>
<li>The XML processing instructions are also not present in JSON.</li>
</ul>
<p>Now that the rules are known, we can start with how to utilize an online tool for XML to JSON conversion.</p>
<h3><b>1. </b><strong><b>Search for a Tool</b></strong></h3>
<p>The first step is to find an online XML to JSON converter. You can do this by simply going online and typing the keyword “XML to JSON” in the search bar of your preferred search engine.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-823" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-2.jpeg?resize=1280%2C914&#038;ssl=1" alt="" width="1280" height="914" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-2.jpeg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-2.jpeg?resize=300%2C214&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-2.jpeg?resize=1024%2C731&amp;ssl=1 1024w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-2.jpeg?resize=768%2C548&amp;ssl=1 768w" sizes="(max-width: 1000px) 100vw, 1000px" data-recalc-dims="1" /></p>
<p>The results on the first page are pretty excellent and you can choose any XML to JSON converter from there.</p>
<p>But if you want some advice, then this is what you should look for in an XML to JSON converting tool.</p>
<ul>
<li>There should be multiple file input options such as uploading, importing, and copy-pasting.</li>
<li>The tool should have some semblance of code beautification, and the text should be color <a href="https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html"><u>coded appropriately</u></a>.</li>
<li>The conversion should not require more than a single button press.</li>
<li>The reverse conversion of JSON to XML should also be possible.</li>
</ul>
<p>These are some features that good XML converters have. Do not worry that if a tool has all of the above features and possibly more than it would be a paid tool, most converters are completely free to use and do not have restrictions of any kind.</p>
<h3><b>2. </b><strong><b>Input Your XML to the Tool</b></strong></h3>
<p>Once you have found a suitable tool, you need to input your XML file into it. Depending on the tool there are several ways this can be done. The most straightforward method is to simply write your entire XML file again into the input field or simply copy-paste it.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-824" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-3.jpeg?resize=829%2C584&#038;ssl=1" alt="" width="829" height="584" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-3.jpeg?w=829&amp;ssl=1 829w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-3.jpeg?resize=300%2C211&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-3.jpeg?resize=768%2C541&amp;ssl=1 768w" sizes="(max-width: 829px) 100vw, 829px" data-recalc-dims="1" /></p>
<p>Most tools also allow the user to upload an XML file directly from their PC or portable device. This is a much better and more accessible option. It also reduces the chances of mistyping and ruining the formatting.</p>
<p>A rare option that only a few tools seem to have, is the URL option. Users can provide a link to an online XML file and the tool will automatically retrieve it for conversion. The contents of the file are also shown in the input field, so you can make sure that the correct file was retrieved.</p>
<p>Once you are done inputting the file (in the manner you chose), you simply have to press a button that may say something along the lines of “Convert XML to JSON” or simply “XML to JSON”.</p>
<h3><b>3. </b><strong><b>Download/Copy the JSON File</b></strong></h3>
<p>Naturally, the final step is to get your JSON file. When the confirmation button has been pressed, depending on your internet speed and XML file size, the tool may take a few moments to process the XML and convert it to JSON.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-825" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-4.jpeg?resize=798%2C438&#038;ssl=1" alt="" width="798" height="438" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-4.jpeg?w=798&amp;ssl=1 798w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-4.jpeg?resize=300%2C165&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2022/09/picture-4.jpeg?resize=768%2C422&amp;ssl=1 768w" sizes="(max-width: 798px) 100vw, 798px" data-recalc-dims="1" /></p>
<p>Once the JSON file has been generated then it’s time to save it. If you are using a good tool, then you will be presented with a few choices here as well.</p>
<p>You can simply copy the JSON, delete it, or download and save it on your device. However, some tools are also able to save your data online. Some of them save it against your account, so you might have to create one to use that feature. Others save it against the Ip address so you don’t need to create an account.</p>
<p>Anyhow, after you are done, you have a usable JSON file and you can put it into your system that requires it.</p>
<h2><strong><b>Conclusion</b></strong></h2>
<p>The XML to JSON conversion is an important task to make sure that different systems in enterprise software are able to communicate with each other properly. Since giant systems are developed in small sections with different teams working on each section, differences in storage and communication format can arise.</p>
<p>Some of them may prefer JSON due to its fast run-time speed and others may prefer XML due to its flexibility. But XML to JSON conversion and vice versa is needed whenever such systems have to share data with each other.</p>
<p>Online tools make this task very easy and it only requires a bit of scripting which even non-technical people can do reliably well.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/xml-to-json-converter.html">How XML Files can be Converted into JSON Files with the Help of Online Tools</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/xml-to-json-converter.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">820</post-id>	</item>
		<item>
		<title>What is SCRUM? The 5-letter Framework Explained!</title>
		<link>https://www.myprogrammingtutorials.com/what-is-scrum.html</link>
					<comments>https://www.myprogrammingtutorials.com/what-is-scrum.html#respond</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Tue, 25 Feb 2020 12:03:19 +0000</pubDate>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=769</guid>

					<description><![CDATA[<p>In the world of information technology, time is everything. Most of the fields in science have centuries to develop their theories and concepts. IT, on the other hand, is relatively new, as the internet was just introduced to the internet late into the previous century. There have been some echoes in the minds of the… <a href="https://www.myprogrammingtutorials.com/what-is-scrum.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/what-is-scrum.html">What is SCRUM? The 5-letter Framework Explained!</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="aligncenter wp-image-771 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/what-is-scrum.png?resize=960%2C640&#038;ssl=1" alt="what-is-scrum" width="960" height="640" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/what-is-scrum.png?w=960&amp;ssl=1 960w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/what-is-scrum.png?resize=300%2C200&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/what-is-scrum.png?resize=768%2C512&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /></p>
<p>In the world of information technology, time is everything. Most of the fields in science have centuries to develop their theories and concepts. IT, on the other hand, is relatively new, as the internet was just introduced to the internet late into the previous century. There have been some echoes in the minds of the greatest scientists, but it is only in the 21st century that maximized the internet’s potential. Now, the interest in this particular field may have reached its peak, but people are still learning more from it.</p>
<p>One of the most lucrative parts of information technology is software development. There are so many avenues that this can take you. Mobile applications are also considered as software ones, and this is the focus of most industries these days. Smartphone use has increased dramatically over the past years, but other devices are keeping up. All of them need some sort of software to function. Whether it is the operating system to the application themselves, it is a top priority when it comes to any device.</p>
<p>This is why most software companies would want to release their products as fast as they can. The world of the internet and its consumers is a fickle one. Trends come and go, and that can be applied to the software being used. People want better devices and companies then would want faster roll-outs as well. However, developing an application can take months or even years to prepare. Once it does reach completion, the general public may have moved on already. You also need to know the difference between a trend and fad as <a href="https://www.colleendilen.com/2016/04/27/fads-vs-trends-how-organizations-can-tell-the-difference-and-why-it-matters/" target="_blank" rel="nofollow noopener noreferrer">this article</a> says.</p>
<p>Developers are now trying to use all the ways and means to make production faster. One of which is following a procedure or guide that has been used for the last 20 years. This is known as SCRUM, a set of principles and values that has been taken from the Agile work methodology. In general, scrum gives the idea that customer’s needs are volatile; they can change faster than one might think. As a developer, you need to keep track of these changes and follow them to appease these kinds of demands.</p>
<h3>SCRUM in Detail</h3>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-770" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/scrum-in-detail.png?resize=960%2C600&#038;ssl=1" alt="scrum-in-detail" width="960" height="600" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/scrum-in-detail.png?w=960&amp;ssl=1 960w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/scrum-in-detail.png?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2020/02/scrum-in-detail.png?resize=768%2C480&amp;ssl=1 768w" sizes="(max-width: 960px) 100vw, 960px" data-recalc-dims="1" /></p>
<p>If you are into rugby, then you might be familiar with this term. It can be thought of as a reset mode for all the players. If they want to have the ball, all of the players will have to huddle together. Even if you are in different teams, you need to be together because you have one goal: to get the ball. In development teams, you are not working against each other to get the “ball” though. Instead, you would be working together to achieve something bigger. How does SCRUM make a difference?</p>
<p>Before, most software developers would follow a format. It follows a long process from planning to production and maintenance. This is also known as the waterfall method, since it goes “lower” the more advanced the process becomes. It has been quite effective since it has been used for a long time even in industries not concerned with information technology. However, as we moved to the modern era, it has been found to be not enough anymore.</p>
<p>One of the main problems of the waterfall method is the time consumption. Most of the projects done before can take months of planning before anyone can even begin working to it. Thus, once the project is already finished, the people who want it have already moved on. As mentioned before, trends can be born and die without notice or flair. If you get behind, then it would be over for you and your company.</p>
<p>With SCRUM, you may have a higher workload but it will be finished in a shorter time. This method divides the tasks amongst its members, with each task having its own process from planning to execution. Each of these processes is called a sprint, in which its products can be considered as your milestone for your ultimate goal. With each sprint, there should be a workable or potential product. This way, the team would not be trapped in a cycle of planning and there is visible progress.</p>
<p>There are three key members though: the product owner, scrum master and the team. It is the product owner’s responsibility to relay what they want. They can be the company owner or even the customers. The scrum master is the glue that would bind the team together. It is their duty to work with the team and make sure that they do not stray from the goal. Then, the team does all the work like testing and reviewing the product. As there is a distinction between them, the process becomes more streamlined and you do not have to waste a lot of time.</p>
<h3>Applying the Process</h3>
<p>If you want to apply this method to your team, you can find a lot of resources online like this one. However, if you want to have an in-depth knowledge, you can try hiring an expert like the ones in <a href="https://agile.coach/" target="_blank" rel="noopener noreferrer">agile.coach</a> website. They can certainly help you with organizing your SCRUMs, sprints and even forming the teams. Also, they can be the guide to help you use this method effectively. You can even apply this to other industries so make sure to learn about it in advance.</p>
<p>SCRUM is not the only methodology that you can apply to your company. However, there have been a lot of companies who had seen success with this model. It might take some time, but it is so much faster compared to its contemporaries.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/what-is-scrum.html">What is SCRUM? The 5-letter Framework Explained!</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/what-is-scrum.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">769</post-id>	</item>
		<item>
		<title>16 Best Tools for Programmers to increase productivity</title>
		<link>https://www.myprogrammingtutorials.com/best-tools-for-programmers.html</link>
					<comments>https://www.myprogrammingtutorials.com/best-tools-for-programmers.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Sun, 23 Feb 2020 18:40:21 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=725</guid>

					<description><![CDATA[<p>In this article, we are going to know about some best tools for programmers, which will definitely prove to enhance their productivity. This piece of content is specially written for new programmers and web developers. Because they literally just don&#8217;t know that some magical tools available out there to reduce their load. Hey! you are… <a href="https://www.myprogrammingtutorials.com/best-tools-for-programmers.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/best-tools-for-programmers.html">16 Best Tools for Programmers to increase productivity</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, we are going to know about some best tools for programmers, which will definitely prove to enhance their productivity.</p>
<p>This piece of content is specially written for new programmers and web developers.</p>
<p>Because they literally just don&#8217;t know that some magical tools available out there to reduce their load.</p>
<p>Hey! you are not alone newbie fellows, we have all gone through this phase.</p>
<p>Based on my experience, I have listed down some programmers tools, which could be useful in <strong>web development, mobile app development, API development &amp; security,</strong> etc.</p>
<h2>Here is the list of best tools for programmers</h2>
<p>1. <a id="csso" href="https://css.github.io/csso/csso.html" target="_blank" rel="nofollow noopener noreferrer">https://css.github.io/csso/csso.html</a></p>
<p>CSSO (CSS Optimizer) is a CSS minifier. Actually, it is a lot more than a minifier. It minifies the CSS obviously! but it optimizes them as well.</p>
<p>The important feature that makes it the best is, it restructures the CSS, so it becomes as short as possible.</p>
<p>&nbsp;</p>
<p>2. <a href="https://apetools.webprofusion.com/" target="_blank" rel="nofollow noopener noreferrer">https://apetools.webprofusion.com/</a></p>
<p>If you are into mobile app development, literally !this tool is not less than a boon for you.</p>
<p>It automatically creates all the required sizes of Icons and Splash screens for your app instantly for all major platforms.</p>
<p>&nbsp;</p>
<p>3. <a href="https://www.sassmeister.com/" target="_blank" rel="nofollow noopener noreferrer">https://www.sassmeister.com/</a></p>
<p>Have you ever felt helpless while surfing through <a href="https://codepen.io" target="_blank" rel="noopener noreferrer">codepen.io</a> after finding a module that uses saas? if yes! this tool is for you.</p>
<p>It converts <a href="https://sass-lang.com/" target="_blank" rel="nofollow noopener noreferrer">Sass</a> into CSS.</p>
<p>&nbsp;</p>
<p>4. <a href="https://incarnate.github.io/curl-to-php/" target="_blank" rel="nofollow noopener noreferrer">https://incarnate.github.io/curl-to-php/</a></p>
<p>It is so tough to convert a CURL commands into PHP. This tool lets you convert any CURL commands into complete PHP codes automatically.</p>
<p>&nbsp;</p>
<p>5. <a href="https://www.diffchecker.com/" target="_blank" rel="nofollow noopener noreferrer">https://www.diffchecker.com/</a></p>
<p>Diffchecker, as the name suggests, is a diff tool to compare text differences between two text files.</p>
<p>It is very useful in the diagnosis and debugging process.</p>
<p>&nbsp;</p>
<p>6. <a href="https://pidoco.com/en" target="_blank" rel="nofollow noopener noreferrer">https://pidoco.com/en</a></p>
<p>Pidoco is a <strong>wireframing tool</strong> to create fully interactive UX prototypes with drag and drop functionality.</p>
<p>I personally use this tool to create the project&#8217;s wireframes.</p>
<p>&nbsp;</p>
<p>7. <a href="https://cssminifier.com/" target="_blank" rel="nofollow noopener noreferrer">https://cssminifier.com/</a></p>
<p>This tool lets you minify your CSS codes.</p>
<p>After completing a web development project it becomes necessary to optimize its CSS codes so that it could load faster. This is where this tool comes in.</p>
<p>It only minifies the CSS codes and manages them in a single line. It doesn&#8217;t optimize them as <a href="#csso">CSSO</a> does.</p>
<p>I personally recommend you to use <a href="#csso">CSSO</a>.</p>
<p>&nbsp;</p>
<p>8. <a href="https://www.freeformatter.com/html-formatter.html" target="_blank" rel="nofollow noopener noreferrer">https://www.freeformatter.com/html-formatter.html</a></p>
<p>HTML codes are always supposed to be written in a formatted way. This way it becomes readable and can be diagnosed by anyone easily.</p>
<p>If you are dealing with pretty heavy unformatted HTML codes then this HTML formatter tool will definitely help you a lot.</p>
<p>&nbsp;</p>
<p>9. <a href="https://unminify.com/" target="_blank" rel="nofollow noopener noreferrer">https://unminify.com/</a></p>
<p>This tool could help you with the maintenance work for your finished projects. It will let you <strong>un-minify the minified CSS &amp; Js codes</strong>.</p>
<p>Un-minified codes are always easy to read and understand. So it becomes necessary to unminify all the minified codes while performing maintenance work.</p>
<p>&nbsp;</p>
<p>10. <a href="https://www.flaticon.com/" target="_blank" rel="nofollow noopener noreferrer">https://www.flaticon.com/</a></p>
<p>Flaticon is the largest database for free icons available in PNG, SVG, EPS, PSD, and BASE 64 formats.</p>
<p>They have a huge number of free Icons available. They also allow you to customize icons after quick registration.</p>
<p>&nbsp;</p>
<p>11. <a href="https://flatuicolors.com/palette/defo" target="_blank" rel="nofollow noopener noreferrer">https://flatuicolors.com/palette/defo</a></p>
<p>Flatuicolors is a website where you can find a huge number of professional <strong>color combinations</strong> that you can use it in your website designs or in mobile UI designs.</p>
<p>&nbsp;</p>
<p>12. <a href="https://jsonlint.com/" target="_blank" rel="nofollow noopener noreferrer">https://jsonlint.com/</a></p>
<p>This tool is used to <strong>validate &amp; reformat</strong> the <a href="https://www.json.org/json-en.html" target="_blank" rel="noopener noreferrer">JSON</a> codes.</p>
<p>As you all know JSON is a regular string containing data. But it is harder to read unformatted JSON.</p>
<p>If you are an API developer or dealing with JSON strings, this tool will definitely help you to understand them.</p>
<p>&nbsp;</p>
<p>13. <a href="https://www.base64decode.org/" target="_blank" rel="nofollow noopener noreferrer">https://www.base64decode.org/</a></p>
<p>This tool will let you reverse or decode back to the original data which is encoded using the base64 method.</p>
<p>While performing the debug process this tool will help you a lot.</p>
<p>&nbsp;</p>
<p>14. <a href="https://www.canva.com/" target="_blank" rel="nofollow noopener noreferrer">https://www.canva.com/</a></p>
<p>If you are a website designer or a Blogger, this tool is for you. It will help you with <strong>creating a logo and creatives</strong>.</p>
<p>Although with Canva you can create <strong>videos, presentations, resume, visiting card</strong> and much more.</p>
<p>&nbsp;</p>
<p>15. <a href="https://icons8.com/preloaders/" target="_blank" rel="nofollow noopener noreferrer">https://icons8.com/preloaders/</a></p>
<p>Preloaders provide cool animated loaders. This site is the best on the internet when it comes to animated loaders.</p>
<p>You can easily customize your loaders with the help of the generator tool they provide. After you have done with your customizations you can download it in <strong>GIF, APNG &amp; SVG</strong> formats.</p>
<p>You can use it on websites as well as in mobile applications.</p>
<p>&nbsp;</p>
<p>16. <a href="http://tools.dynamicdrive.com/imageoptimizer/" target="_blank" rel="nofollow noopener noreferrer">http://tools.dynamicdrive.com/imageoptimizer/</a></p>
<p>I personally use this online image optimization tool, using this tool you can optimize <strong>jpg, jpeg, png &amp; gif</strong> types of images.</p>
<p>The best part of this tool is that it generates multiple optimized results so that you can choose the desired optimization level you want.</p>
<p>&nbsp;</p>
<h3>Final words</h3>
<p>It is always better to work smarter rather than harder. The very precious thing in today&#8217;s busy world is time, so try to save it as much as possible.</p>
<p>happy coding!</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/best-tools-for-programmers.html">16 Best Tools for Programmers to increase productivity</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/best-tools-for-programmers.html/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">725</post-id>	</item>
		<item>
		<title>Learning and coding with CodeLabs</title>
		<link>https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html</link>
					<comments>https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html#comments</comments>
		
		<dc:creator><![CDATA[Christina Ava]]></dc:creator>
		<pubDate>Sat, 19 Jan 2019 16:00:35 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=682</guid>

					<description><![CDATA[<p>What is CodeLabs? Codelabs is an online platform for learning and practicing programming. It provides a guided tutorial on how a programming language works and allows the user to learn a new programming language quickly. The user can execute their programs in the programming lab provided on the browser. The various programming languages available on… <a href="https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html">Learning and coding with CodeLabs</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>What is CodeLabs?</h3>
<p><a href="https://www.greycampus.com/codelabs" target="_blank" rel="noopener noreferrer">Codelabs</a> is an online platform for learning and practicing programming. It provides a guided tutorial on how a programming language works and allows the user to learn a new programming language quickly. The user can execute their programs in the programming lab provided on the browser.</p>
<p>The various programming languages available on CodeLabs are :</p>
<ul>
<li>PHP</li>
<li>Ruby</li>
<li>Python</li>
<li>JavaScript</li>
<li>Angular</li>
<li>Java</li>
<li>MySQL</li>
<li>React</li>
</ul>
<p><strong>PHP :</strong></p>
<p>PHP is a server-side scripting language which is used for developing software applications. Its components are free to use as it is an open source programming language. PHP is compatible with all operating systems i.e. it is platform independent. It is the most preferred language for CMS development, as it can be fully customized to match customer needs.</p>
<p><strong>Advantages of PHP :</strong></p>
<ul>
<li>Easy</li>
<li>Reliable</li>
<li>Fast</li>
<li>Dynamic</li>
<li>Secure</li>
</ul>
<p><strong>Applications of PHP:</strong></p>
<ul>
<li>File Handling</li>
<li>Parsing XML documents</li>
<li>Executing Shell Commands</li>
<li>Encryption using MD5 and SHA1 hashing algorithms</li>
</ul>
<p><strong>Ruby :</strong></p>
<p>Ruby is an object-oriented general-purpose programming language. It is one of the commonly used programming languages in the world. It was originally designed with the goal of making programming fun. Its syntax is easy to read, write and understand. Just like PHP, Ruby is also a platform independent programming language.</p>
<p><strong>Advantages of Ruby :</strong></p>
<ul>
<li>Cost-Effective</li>
<li>Productive</li>
<li>Consistent</li>
<li>Refined</li>
</ul>
<p><strong>Applications of Ruby :</strong></p>
<ul>
<li>Internet applications and Intranet applications</li>
<li>Form Processing</li>
<li>Web Applications</li>
<li>Writing CGI Scripts</li>
</ul>
<p><strong>Python :</strong></p>
<p>Python is an interpreter, high-level programming language. It emphasizes code readability and has a syntax similar to the English language. It allows the user to write programs having greater functionality with fewer lines of code. Python can be used for developing desktop GUI applications, websites, and web applications.</p>
<p><strong>Advantages of Python :</strong></p>
<ul>
<li>Extensible</li>
<li>Embeddable</li>
<li>Portable</li>
<li>Robust Standard Library</li>
<li>User-Friendly</li>
</ul>
<p><strong>Applications of Python :</strong></p>
<ul>
<li>Desktop applications based on GUI</li>
<li>Scientific and numeric applications</li>
<li>Web frameworks</li>
<li>Software Development</li>
<li>Education</li>
</ul>
<p><strong>JavaScript :</strong></p>
<p>JavaScript is a lightweight programming language which is designed for creating network-centric applications. It is an open and cross-platform programming language. It is very easy to implement as it is integrated with HTML. It has object-oriented capabilities.</p>
<p><strong>Advantages of JavaScript :</strong></p>
<ul>
<li>Dynamic</li>
<li>Weakly typed</li>
<li>Simple</li>
<li>Versatile</li>
<li>Increased interactivity</li>
</ul>
<p><strong>Applications of JavaScript :</strong></p>
<ul>
<li>Mobile Applications</li>
<li>Graphics</li>
<li>Client-side programming</li>
<li>Validating user input</li>
<li>Displaying pop up and dialogue boxes</li>
</ul>
<p><strong>Angular :</strong></p>
<p>Angular is a TypeScript-based front-end web application framework. The very first version of Angular is known as AngularJS. It is easy to learn and is mainly used for building single page applications (SPAs).</p>
<p><strong>Advantages of Angular :</strong></p>
<ul>
<li>Consistent</li>
<li>Productive</li>
<li>Maintainable</li>
<li>Modular</li>
</ul>
<p><strong>Applications of Angular :</strong></p>
<ul>
<li>Web Applications</li>
<li>Desktop Applications</li>
<li>Mobile Applications</li>
</ul>
<p><strong>Java :</strong></p>
<p>Java is an object-oriented, class-based programming language. It works on various platforms and is one of the most widely used programming languages. It is fast, powerful and secure. It is mainly used for developing applications. It is simple to use. It has a large standard library and the code written on one platform can be executed on other platforms without any modifications.</p>
<p><strong>Advantages of Java :</strong></p>
<ul>
<li>Robust</li>
<li>Secure</li>
<li>Distributed</li>
<li>Multithreaded</li>
<li>High Performance</li>
</ul>
<p><strong>Applications of Java :</strong></p>
<ul>
<li>Web Servers and Application Servers</li>
<li>Enterprise Applications</li>
<li>Mobile Games Development</li>
</ul>
<p><strong>MySQL :</strong></p>
<p>MySQL is a relational database management system. It is an open-sourced programming language that uses structured query language for processing the data in the database. It works on various operating systems and supports large databases. It is an essential part of almost every PHP application.</p>
<p><strong>Advantages of MySQL :</strong></p>
<ul>
<li>Data Security</li>
<li>Comprehensive transactional support</li>
<li>Cost Effective</li>
<li>Portable</li>
<li>Seamless Connectivity</li>
</ul>
<p><strong>Applications of MySQL :</strong></p>
<ul>
<li>Ecommerce</li>
<li>Session stores</li>
<li>Content Management Systems (CMS)</li>
<li>Web applications</li>
</ul>
<p><strong>React :</strong></p>
<p>React is a front-end JavaScript Library which is developed by Facebook. It is used for building user interfaces. It can be used as a base in the development of mobile applications or single page applications. It is the view layer of an MVC application (Model View Controller).</p>
<p><strong>Advantages of React :</strong></p>
<ul>
<li>Easy to learn</li>
<li>Reusable</li>
<li>UI-centric</li>
<li>Efficient</li>
<li>Maintainable</li>
</ul>
<p><strong>Applications of React :</strong></p>
<ul>
<li>Dynamic web applications</li>
<li>Mobile applications</li>
<li>Single page applications</li>
</ul>
<p><strong>Conclusion :</strong></p>
<p>The above are few programming languages which are widely used for developing web and mobile applications. These are open source languages which makes them much more popular and influential. The main benefit of an open source language is that the source code can be customized efficiently to meet the user&#8217;s requirements.</p>
<p><a href="https://www.greycampus.com/codelabs" target="_blank" rel="nofollow noopener noreferrer">CodeLabs</a> is a free online platform offered by <a href="https://www.greycampus.com" target="_blank" rel="nofollow noopener noreferrer">GreyCampus</a>. It provides a user-friendly environment to learn and practice new programming languages. It is beneficial for beginners as well as advanced programmers. CodeLabs has interactive resources like videos, assignments, projects etc..which makes it easy and convenient for learning.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html">Learning and coding with CodeLabs</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/learning-and-coding-with-codelabs.html/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">682</post-id>	</item>
		<item>
		<title>Dictionaries should be free</title>
		<link>https://www.myprogrammingtutorials.com/dictionaries-should-be-free.html</link>
					<comments>https://www.myprogrammingtutorials.com/dictionaries-should-be-free.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Thu, 11 Oct 2018 14:56:22 +0000</pubDate>
				<category><![CDATA[Others]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=643</guid>

					<description><![CDATA[<p>In the current society, education is really important and the tendency starts to show up that people are trying to get the best education quality that they can. However, in most of the countries it is impossible to get an education for free. That means that if you want to become successful in the today’s… <a href="https://www.myprogrammingtutorials.com/dictionaries-should-be-free.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/dictionaries-should-be-free.html">Dictionaries should be free</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span lang="en-US">In the current society, education is really important and the tendency starts to show up that people are trying to get the best education quality that they can. However, in most of the countries it is impossible to get an education for free. That means that if you want to become successful in the today’s society, you will have to start paying money all the way from the first years of getting out of the kinder garden.</span></p>
<p><span lang="en-US">The thing which has also become popular among those studying at schools and colleges is learning of the foreign languages. That is a thing which is told to help you a lot in the future if you will have an ability to visit a place abroad. However, people say that even if you will not have that opportunity given to you, you will still be able to learn a lot by studying the second or third foreign language. The main argument is the fact that you will be learning about a new culture, while learning the language. You will find out about the new countries and their cultures when learning some words that do not happen to be real in your home country.</span></p>
<p><span lang="en-US">So, how does all of this apply to the topic of the text. Well, we can call many various ways of studying the languages, but one of the oldest and yet the best ways that you will find nowadays is the dictionary method. It has been proven that the method where you learn the new words is not that good for those who are just starting to learn the new language. Yet with the learning of the groups of words, and also the single ones later on in the process of studying, you can easily become pretty fluent in the language you are studying. The other great thing about the dictionary method is the fact that if you add it to the other methods, it will make the learning process way easier. Therefore, such an old and not really efficient method can still exist in the current learning variety.</span></p>
<p><span lang="en-US">So, why dictionaries should be free in the current society. Well, that is pretty simple. They are the only way which can be used by poor to learn the new languages. Yet, with the price of some advanced dictionaries, the poorer people are left without a chance to learn something a little over the basics. And many services are already trying to provide help with such works. For example, some volunteer programs are giving out dictionaries to the poor and those in need. For students many various programs exist, which help with their languages. For those looking for a job it is a little harder, as they have no time to actually learn something, because of their look for a job. Therefore, such people should try to use the </span><a href="https://pro-papers.com/cover-letter-writing-services"><span lang="en-US">cover letter writing service</span></a><span lang="en-US"> in order to save their time and do the stuff they actually need, while they can still study the foreign language a little later.</span></p>
<p><span lang="en-US">The other great reason for starting a free distribution of dictionaries is the fact that many foreign tourists come into the new countries with them, and they definitely require some help from the locals at most of their period of staying abroad. And the problem is that many of them do not know the local language or at least English, or the locals might not know how to communicate with the strangers. Moreover, many travellers travel around the world with literally no money, meaning that they would not be able to even get the simplest help from the locals. That brings us to the point where we can say that dictionaries are going to be useful for those travelling on a low budget. It will definitely help the tourists to stay informed in the foreign country and have some help from the people who they are going to be surrounded by. Also, that will help a lot with the getting of new friends. Even if you can communicate well with your friends from abroad, using one of the words from their language will definitely boost the morale of the group, and that will help to keep the nice relations between the friends.</span></p>
<p><span lang="en-US">The topic of friendship is actually a great reason to make dictionaries free. People, especially the new generations are going to be able to talk to the people from abroad, which is always good for both of those talking, as they are going to learn a lot of new stuff about each other cultures, and at the same time they will be able to communicate on any of the topics of the interests that both people share. Therefore, we can say that by giving out the free knowledge in general, we can easily create new ties with people all around the world. The other reason is the fact that the companies that print can easily make a portion of dictionaries to be given out for free. They will not lose that much money to care about it. Moreover, they can create a new version of a dictionary to be less advanced, and at the same time with the soft cover, which will decrease the price of producing of such a book way lower, and that will definitely boost the PR of that company and rating in the eyes of people.</span></p>
<p><a name="_GoBack"></a> <span lang="en-US">To sum everything up, we can say that there is no doubt that dictionaries should be made free, and that will not bring anything bad to any of the sides. However, the modern companies are so scared to lose the money that they would never risk making such a PR move, because it requires some money invested into something which might not bring too many people in. Yet, we all know that free dictionaries will give many people a chance to know much more.</span></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/dictionaries-should-be-free.html">Dictionaries should be free</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/dictionaries-should-be-free.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">643</post-id>	</item>
		<item>
		<title>Web Notifications Using Laravel and Pusher</title>
		<link>https://www.myprogrammingtutorials.com/web-notifications-laravel-pusher.html</link>
					<comments>https://www.myprogrammingtutorials.com/web-notifications-laravel-pusher.html#comments</comments>
		
		<dc:creator><![CDATA[Pradeep Kumar]]></dc:creator>
		<pubDate>Tue, 09 Oct 2018 10:39:48 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[push noitification]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=629</guid>

					<description><![CDATA[<p>Web notification is a particular message that generates from a website, whenever any update or important message is shared on the app. These messages pop up on your desktop or device even when the respective page is not opened on your current browser. These push notifications are a great addition to the traditional email and… <a href="https://www.myprogrammingtutorials.com/web-notifications-laravel-pusher.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/web-notifications-laravel-pusher.html">Web Notifications Using Laravel and Pusher</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Web notification is a particular message that generates from a website, whenever any update or important message is shared on the app. These messages pop up on your desktop or device even when the respective page is not opened on your current browser.</p>
<p>These push notifications are a great addition to the traditional email and marketing campaigns. As a user is notified with a push notification every time whenever any update is generated and the users just have to click on that to be notified about any update.</p>
<h3>Pusher</h3>
<p>Pusher is a hosted service that allows web and mobile applications to add real time data to its live functionality. It works as a real time correspondent between the servers and clients. It establishes persistent connections with the clients on HTTP using WebSocket, therefore, whenever your server receives new data, it gets instantly passed on to the respective clients for maintaining live data concurrency.</p>
<p>In order to integrate in all major languages and frameworks, Pusher offers several libraries to achieve the integration, including libraries of PHP, Ruby, Python, Java, .NET, Go and Node for the server, and JavaScript, Objective-C (iOS) and Java (Android) for the client.</p>
<p>Being known as a highly scalable real time solution for apps, Pusher first came to prominence in 2010 and since then it has continued to remain as the top choice for many. The list of its happy customers includes GitHub, MailChimp, CodeShip, The Financial Times, UserVoice, Travis CI and many others.</p>
<h3>Pusher Real-time Use Cases</h3>
<p>Pusher has a number of common use cases for real-time web technologies including:</p>
<ol>
<li>Activity Streams</li>
<li>Data Visualisations/Dashboards</li>
<li>Notifications &amp; Signalling</li>
<li>Collaborative Apps</li>
<li>Chat</li>
<li>Multiplayer Games</li>
</ol>
<p>The simplest use case of Pusher is the real time notifications. Whenever something relevant occurs according to the website user’s journey, it automatically pops up a notification for the event. This is the same functionality we have seen on Twitter, Facebook and in many other social media platforms for years.</p>
<p>Notification can also be seen as a form of signaling, as it does not contains any organized representation in the UI of the application, but still triggers a reaction within an application.</p>
<p>As far as the current social web apps are concerned, it is very common to have interactive real time notifications. We have the examples of Facebook, Twitter and other social networking sites, which support integration of creative built-in notification systems within them. In this regard, Pusher is one of the most used and popular services which helps you incorporate real-time notifications to your apps and helps you make them more lively and interactive.</p>
<p>In this blog, I will demonstrate about how to implement real time notification system using Laravel and Pusher.</p>
<h3>Prerequisites</h3>
<p>For the purpose of this tutorial, I assume that you have a Laravel application installed on a web server. My setup is:</p>
<ul>
<li>Laravel 5.5</li>
<li>Pusher</li>
</ul>
<p>I have decided to host my Laravel application on <a href="https://www.cloudways.com/en/php-cloud-hosting.php" target="_blank" rel="nofollow noopener noreferrer">PHP MySQL hosting</a>. It has great devstack and is known for its highly secured platform. You can also try out Cloudways for free by signing up for an account</p>
<h3>Setup your Pusher Account</h3>
<p>After successfully completing Laravel installation, now let’s create a <a href="https://pusher.com/channels" target="_blank" rel="nofollow noopener noreferrer">Pusher</a> account to get API key and other necessary credentials.</p>
<p style="text-align: center;"><img loading="lazy" decoding="async" class="aligncenter wp-image-633 " src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-0.png?resize=415%2C351&#038;ssl=1" alt="Web Notifications" width="415" height="351" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-0.png?resize=300%2C254&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-0.png?w=759&amp;ssl=1 759w" sizes="(max-width: 415px) 100vw, 415px" data-recalc-dims="1" /></p>
<h3>Setup Pusher in Laravel application</h3>
<p>After completing the signup process, carefully note down all the credentials including API key, secret key and others. Then open SSH command interface and write down the following command:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-635" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-02.png?resize=597%2C256&#038;ssl=1" alt="Web Notifications Laravel" width="597" height="256" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-02.png?w=597&amp;ssl=1 597w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-02.png?resize=300%2C129&amp;ssl=1 300w" sizes="(max-width: 597px) 100vw, 597px" data-recalc-dims="1" /></p>
<p>.env<br />
Once the composer finishes its process, you can configure Laravel and Pusher. Open the .env file from the root directory of Laravel app and update its values to the desired ones.</p>
<pre class="language-php"><code class="language-php">// Get the credentials from your pusher dashboard
PUSHER_APP_ID=XXXXX
PUSHER_APP_KEY=XXXXXXX
PUSHER_APP_SECRET=XXXXXXX</code></pre>
<p style="text-align: center;"><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-634" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-0-3.png?resize=602%2C233&#038;ssl=1" alt="Web Notifications Pusher" width="602" height="233" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-0-3.png?w=602&amp;ssl=1 602w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/10/pasted-image-0-3.png?resize=300%2C116&amp;ssl=1 300w" sizes="(max-width: 602px) 100vw, 602px" data-recalc-dims="1" /></p>
<h3>Create Notification Event</h3>
<p>First of all, you must create an Event class that could broadcast to Pusher from your live Laravel application. Also remember that you can easily eradicate Events from anywhere in the application.</p>
<pre class="language-php"><code class="language-php">php artisan make:event Notification
</code></pre>
<p>The above-mentioned code will create a new Notification class in the app/Events directory. Open the contents of the file and update as shown below:</p>
<pre class="language-php"><code class="language-php">&lt;?php

namespace App\Events;

use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class Notification implements ShouldBroadcast{
    use Dispatchable, InteractsWithSockets, SerializesModels;
    public $username;
    public $message;

    public function __construct(){
        //your variables
    }

    public function broadcastOn(){
        return ['notification'];
    }
}</code></pre>
<p>In the above-mentioned code, I have created a ShouldBroadcast interface which defines Laravel that the broadcasting of event should be with using whatever driver, which I have configured in the configuration file.</p>
<p>I have also created a constructor which accepts two parameters (username and verb). I have assigned these variables to class properties which also have the same name. Do remember to set the visibility of these properties to public, because they will be ignored if they aren’t set to public.</p>
<p>Lastly, I have set the channel name to broadcast on.</p>
<h3>Create Controller</h3>
<p>Now let’s create a controller, which will hold notification code logic. Open the SSH command terminal and paste the following command.</p>
<pre class="language-php"><code class="language-php">.$ php artisan make:controller PusherNotificationController</code></pre>
<p>After successfully creating the controller, paste the following code in controller file.</p>
<pre class="language-php"><code class="language-php">&lt;?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Pusher\Pusher;

class PusherNotificationController extends Controller{

    public function sendNotification(){
        //Remember to change this with your cluster name.
        $options = array(
            'cluster' =&gt; 'ap2',
            'encrypted' =&gt; true
        );

        //Remember to set your credentials below.
        $pusher = new Pusher(
            'key',
            'secret',
            'app_id', $options
        );

        $message= "Hello Cloudways";

        //Send a message to notify channel with an event name of notify-event
        $pusher-&gt;trigger('notification', 'notification-event', $message);
    }
}</code></pre>
<p>It’s time to add Pusher in the controller. You will have to setup cluster and other credentials like secret key, API etc in your controller as well.</p>
<p>Afterwards, you can publish to a channel and can define a specific name for that channel. For this particular tutorial, I have given channel the name of ‘Notification’, and ‘Notification Event’ as the event name. You can also change these names to any other name according to your preference. Do remember to always use the same channel name and event name in your front end clients.</p>
<h3>Setup Route</h3>
<p>Now I will show you how to add notification route to the web.php file, which I will use to send notifications using Pusher.</p>
<pre class="language-php"><code class="language-php">//web.php

Route::get('/notification', 'PusherNotificationController@sendNotification');</code></pre>
<h3>Create View</h3>
<p>Finally after setting up controller and required routes, now let&#8217;s move to create view. Working on welcome.blade.php, paste the below following code in your view file.</p>
<pre class="language-html"><code class="language-html">&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;title&gt;Real-time notifications in Laravel using Pusher&lt;/title&gt;

&lt;/head&gt;
&lt;body&gt;
    &lt;h1&gt;Real-time notifications using Pusher In Laravel&lt;/h1&gt;

    &lt;!-- Incldue Pusher Js Client via CDN --&gt;
    &lt;script src="https://js.pusher.com/4.2/pusher.min.js"&gt;&lt;/script&gt;
    &lt;!-- Alert whenever a new notification is pusher to our Pusher Channel --&gt;

    &lt;script&gt;
        //Remember to replace key and cluster with your credentials.
        var pusher = new Pusher('key', {
            cluster: 'ap2',
            encrypted: true
        });

        //Also remember to change channel and event name if your's are different.
        var channel = pusher.subscribe('notification');
        channel.bind('notification-event', function(message) {
            alert(message);
        });

    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>Now, let’s open up a new tab and visit <code>www.yourdomain/notification</code> while having the <code>www.yourdomain.dev/welcome</code> open in another tab and you should see the alert!.</p>
<p>To see the alert, open a new tab and visit <strong>www.yourdomain/notification</strong> while having the <strong>www.yourdomain.dev/welcom</strong>e open on one tab. It will definitely show the alert and hence it will confirm the process mentioned in the preceding paragraphs.</p>
<h3>Summing Up</h3>
<p>In this blog, I have demonstrated how to implement real time notifications in a Laravel app using Pusher. Because Pusher allows us to add more live functionality to our apps and helps make it more interactive, popular social apps like Facebook and Twitter have live web notifications system integrated in their platform. Hence, using Pusher, we can also implement the same functionality in our apps and can enhance the real time interaction while using them.</p>
<p>If you still have more questions regarding this blog, or you want to contribute more on this topic, do feel free to share your thoughts and comments in the comments section below.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/web-notifications-laravel-pusher.html">Web Notifications Using Laravel and Pusher</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/web-notifications-laravel-pusher.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">629</post-id>	</item>
		<item>
		<title>How To Create Infinite Scroll Pagination With PHP And Ajax</title>
		<link>https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html</link>
					<comments>https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Mon, 09 Jul 2018 19:02:44 +0000</pubDate>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jquery tricks]]></category>
		<category><![CDATA[pagination]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=583</guid>

					<description><![CDATA[<p>In this tutorial, we are going to learn that how to create infinite scroll pagination with PHP and Ajax. All of you probably must have seen this feature in some websites that you can load more content by just scrolling down. It can be possible via AJAX. I hope all of you guys will be familiar with… <a href="https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html">How To Create Infinite Scroll Pagination With PHP And Ajax</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we are going to learn that how to create <strong>infinite scroll pagination with PHP and Ajax</strong>.</p>
<p>All of you probably must have seen this feature in some websites that you can <strong>load more content</strong> by just scrolling down.</p>
<p>It can be possible via <strong>AJAX</strong>. I hope all of you guys will be familiar with Ajax, if not please see what actually an <a href="https://en.wikipedia.org/wiki/Ajax_(programming)" target="_blank" rel="noopener noreferrer">AJAX</a> is?</p>
<p>Let me show you some live examples of <strong>infinite scroll pagination</strong>, as you are a regular user of <a href="https://www.facebook.com" target="_blank" rel="noopener noreferrer">Facebook</a> &amp; <a href="https://www.twitter.com" target="_blank" rel="noopener noreferrer">Twitter</a> etc. I bet you noticed that they use this kinda pagination. When you scroll down they load more contents on your timeline.</p>
<p style="text-align: center;"><a class="btn btn-default btn-lg" href="http://demo.myprogrammingtutorials.com/infinite-scroll-pagination/" target="_blank" rel="nofollow noopener noreferrer">View Demo</a></p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-584 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/06/infinite-scroll-pagination-with-jquery-ajax.png?resize=503%2C346&#038;ssl=1" alt="infinite scroll pagination with php and ajax" width="503" height="346" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/06/infinite-scroll-pagination-with-jquery-ajax.png?w=503&amp;ssl=1 503w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/06/infinite-scroll-pagination-with-jquery-ajax.png?resize=300%2C206&amp;ssl=1 300w" sizes="(max-width: 503px) 100vw, 503px" data-recalc-dims="1" /></p>
<p>In my previous article, I have covered the <a href="https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html" target="_blank" rel="noopener noreferrer">pagination with PHP and MySql</a>, If you have not read it yet, then I suggest you read that article first. Because the pagination part will be done by <a href="http://www.php.net" target="_blank" rel="noopener noreferrer">PHP</a> itself.</p>
<h3>Requirements to create infinite scroll pagination with PHP and Ajax</h3>
<p><strong>1. GIF Loader</strong></p>
<p>I have used <a href="https://icons8.com/preloaders/" target="_blank" rel="noopener noreferrer">Preloaders</a> in this article. Preloader provides almost all type of animated GIF Loaders. It is necessary to show a loading process while fetching data asynchronously.</p>
<p><strong>2. A jQuery plugin called Inview</strong></p>
<p><a href="https://github.com/protonet/jquery.inview" target="_blank" rel="noopener noreferrer"><strong>Inview</strong></a> is a JQuery Plugin, which is designed to <em>fire an event as soon as the targeted element appears on the user&#8217;s viewport</em>.</p>
<p>You must have <a href="https://code.jquery.com/" target="_blank" rel="noopener noreferrer"><strong>JQuery</strong></a> installed in your page to work with Inview. The important thing is, it works only with jQuery 1.8 &amp; upwards. To learn more about Inview, visit <a href="https://github.com/protonet/jquery.inview" target="_blank" rel="noopener noreferrer">Github jquery.inview.</a></p>
<p><strong>Usage of Inview</strong></p>
<pre class="language-javascript"><code class="language-javascript">$('#target_element_id').on('inview', function(event, isInView) {
    if (isInView) {

        // element is now visible in the viewport

    } else {

        // element has gone out of viewport

    }
});</code></pre>
<h3>Let&#8217;s dig into actual coding</h3>
<p><strong>1. HTML part</strong></p>
<pre class="language-php"><code class="language-php">&lt;div id="response"&gt;

    &lt;!-- response(next page's data) will get appended here --&gt;

    &lt;!--we need to populate some initial data--&gt;
    &lt;?php
        $conn=mysqli_connect("localhost","my_user","my_password","my_db");
        // Check connection
        if (mysqli_connect_errno()){
            echo "Failed to connect to MySQL: " . mysqli_connect_error();
            die();
        }
        $sql = "SELECT * FROM table LIMIT 5";
        $res_data = mysqli_query($conn,$sql);
        while($row = mysqli_fetch_assoc($res_data)){
            echo '&lt;div&gt;Demo'.$row["id"].'&lt;/div&gt;';
        }
        mysqli_close($conn);
    ?&gt;

&lt;/div&gt;

&lt;input type="hidden" id="pageno" value="1"&gt;
&lt;img id="loader" src="loader.svg"&gt;</code></pre>
<p>Lets split above HTML snippet and see what actually they will perform. So here we have Three elements <code>#response</code>, <code>#pageno</code> &amp; <code>#loader</code>.</p>
<p><code>#response</code> element would be the container for our fetched data. We will use AJAX request to fetch next page&#8217;s data and append it in <code>#response</code> element.</p>
<p><code>#pageno</code> is a kind of page number counter, we are using it to identify that how much pages have loaded. We have set its default value to <strong>&#8220;1&#8221;</strong> so that it loads the first page first.</p>
<p><code>#loader</code> will be placed at the last of the results as you can see it in the HTML snippet. When the user scrolls down, the Ajax function that will bring the data of the next page will get fired as soon as the <code>#loader</code> comes in the viewport.</p>
<p><strong>2. AJAX JQuery Part</strong></p>
<pre class="language-javascript"><code class="language-javascript">var nextPage = parseInt($('#pageno').val())+1;

$.ajax({
    type: 'POST',
    url: 'pagination.php',
    data: {
        pageno: nextPage
    },
    success: function(data){
        if(data != ''){							 
            $('#response').append(data);
            $('#pageno').val(nextPage);
        } else {								 
           $("#loader").hide();
        }
    }
});</code></pre>
<p>Every time when <code>#loader</code> appears in the browser&#8217;s viewport then the above Ajax function gets fired and sends a <strong>POST request</strong> to the <code>pagination.php</code> file.</p>
<p>We are sending a <code>nextPage</code> number along with the POST request so that the <code>pagination.php</code> file can understand which page to load.</p>
<p>When execution of the Ajax function gets finished then <code>pagination.php</code> file returns next page&#8217;s data. We need to append that data in our <code>#response</code> element as you can see in the above snippet.</p>
<p><strong>3. PHP part</strong></p>
<pre class="language-php"><code class="language-php">$pageno = $_POST['pageno'];

$no_of_records_per_page = 10;
$offset = ($pageno-1) * $no_of_records_per_page;</code></pre>
<p>As you can see from here the <strong>PHP pagination</strong> part has started, as I have suggested earlier you should read my previous article <a href="https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html" target="_blank" rel="noopener noreferrer"><strong>pagination with PHP and MySQL</strong></a>.</p>
<p><strong>The SQL Query for Pagination</strong></p>
<pre class="language-php"><code class="language-php">$sql = "SELECT * FROM table LIMIT $offset, $no_of_records_per_page";</code></pre>
<h3>Let&#8217;s assemble the PHP pagination codes</h3>
<p>We are going to put all the PHP codes in the <code>pagination.php</code> file, so go ahead and create the <code>pagination.php</code> file and put below codes into it.</p>
<pre class="language-php"><code class="language-php">&lt;?php

    $pageno = $_POST['pageno'];

    $no_of_records_per_page = 10;
    $offset = ($pageno-1) * $no_of_records_per_page;

    $conn=mysqli_connect("localhost","my_user","my_password","my_db");
    // Check connection
    if (mysqli_connect_errno()){
        echo "Failed to connect to MySQL: " . mysqli_connect_error();
        die();
    }

    $sql = "SELECT * FROM table LIMIT $offset, $no_of_records_per_page";
    $res_data = mysqli_query($conn,$sql);

    while($row = mysqli_fetch_array($res_data)){

        echo '&lt;div&gt;Demo'.$row["id"].'&lt;/div&gt;';

    }

    mysqli_close($conn);

?&gt;</code></pre>
<p>so PHP part has been done here.</p>
<h3>Let&#8217;s assemble the Html and JQuery codes</h3>
<pre class="language-php"><code class="language-php">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Infinite Scroll Demo&lt;/title&gt;

    &lt;!-- JQuery CDN --&gt;
    &lt;script src="https://code.jquery.com/jquery-3.3.1.min.js"&gt;&lt;/script&gt;

    &lt;!-- Inview Js (jquery.inview.js) --&gt;
    &lt;script src="jquery.inview.js"&gt;&lt;/script&gt;

    &lt;style&gt;
        #response div{
            border: 1px solid lightgrey;
            height: 80px;
            margin-bottom: 5px;
            padding: 50px 0px 0px 0px;
            text-align: center;
        }
        #loader{
            display: block;
            margin: auto;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;div id="response"&gt;

        &lt;!-- response(next page's data) will get appended here --&gt;

        &lt;!--we need to populate some initial data--&gt;
        &lt;?php
            $conn=mysqli_connect("localhost","my_user","my_password","my_db");
            // Check connection
            if (mysqli_connect_errno()){
                echo "Failed to connect to MySQL: " . mysqli_connect_error();
                die();
            }
            $sql = "SELECT * FROM table LIMIT 5";
            $res_data = mysqli_query($conn,$sql);
            while($row = mysqli_fetch_assoc($res_data)){
                echo '&lt;div&gt;Demo'.$row["id"].'&lt;/div&gt;';
            }
            mysqli_close($conn);
        ?&gt;
    &lt;/div&gt;

     &lt;input type="hidden" id="pageno" value="1"&gt;
     &lt;img id="loader" src="loader.svg"&gt;
     &lt;script&gt;
         $(document).ready(function(){
             $('#loader').on('inview', function(event, isInView) {
                 if (isInView) {
                     var nextPage = parseInt($('#pageno').val())+1;
                     $.ajax({
                         type: 'POST',
                         url: 'pagination.php',
                         data: { pageno: nextPage },
                         success: function(data){
                             if(data != ''){							 
                                 $('#response').append(data);
                                 $('#pageno').val(nextPage);
                             } else {								 
                                 $("#loader").hide();
                             }
                         }
                     });
                 }
             });
         });
     &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>There is a JavaScript Plugin called <a href="https://infinite-scroll.com/">Infinite Scroll</a> available to save your time, but I personally won&#8217;t recommend you to use this.</p>
<p>I know you all probably would wondering,  why would I suggest that?</p>
<p>It is because this JavaScript plugin contains a JS file and by using this plugin you might end up with some extra kilobytes, which definitely gonna hamper your website&#8217;s load time.</p>
<p>That&#8217;s all folks!!!, If you find this article helpful, don&#8217;t forget to share and subscribe us.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html">How To Create Infinite Scroll Pagination With PHP And Ajax</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html/feed</wfw:commentRss>
			<slash:comments>34</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">583</post-id>	</item>
		<item>
		<title>Create own Cryptocurrency: A Step By Step Guide</title>
		<link>https://www.myprogrammingtutorials.com/create-own-cryptocurrency.html</link>
					<comments>https://www.myprogrammingtutorials.com/create-own-cryptocurrency.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Mon, 23 Apr 2018 04:11:30 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Cryptocurrency]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[blockchain technology]]></category>
		<category><![CDATA[cryptocurrency]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=497</guid>

					<description><![CDATA[<p>In this article, I am going to serve you a detailed information about how to create own Cryptocurrency like Bitcoin and Ethereum. And provide you a step by step guide to set it up on a Live Server as well. What is Cryptocurrency? Cryptocurrency is a kind of digital asset or virtual currency that uses cryptography techniques to secure its… <a href="https://www.myprogrammingtutorials.com/create-own-cryptocurrency.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/create-own-cryptocurrency.html">Create own Cryptocurrency: A Step By Step Guide</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, I am going to serve you a detailed information about <strong>how to create own Cryptocurrency</strong> like <a href="https://bitcoin.org" target="_blank" rel="noopener">Bitcoin</a> and <a href="https://www.ethereum.org/" target="_blank" rel="noopener">Ethereum</a>. And provide you a step by step guide to set it up on a Live Server as well.</p>
<h2>What is Cryptocurrency?</h2>
<p><a href="https://en.wikipedia.org/wiki/Cryptocurrency" target="_blank" rel="noopener">Cryptocurrency</a> is a kind of digital asset or virtual currency that uses <a href="https://en.wikipedia.org/wiki/Cryptography" target="_blank" rel="noopener">cryptography</a> techniques to secure its transactions.</p>
<p><em>Bitcoin</em>, <em>Litecoin</em>, <em>Ripple</em> &amp; <em>Ethereum</em> etc. are the <strong>best cryptocurrencies</strong> in the world. These are frequently called <strong>altcoins,</strong> as they all are alternative currencies.</p>
<p>There is one more name <strong>blockchain technology</strong> is very popular in cryptocurrencies network.</p>
<h2>What is Blockchain?</h2>
<p>Blockchain is simply a decentralized ledger that keeps records of all transactions that take place across peer-to-peer network.</p>
<p>All the transaction&#8217;s details are stored in multiple blocks, and each blocks are connected with each other so that they create a chain of blocks that&#8217;s why it is called <a href="https://en.wikipedia.org/wiki/Blockchain" target="_blank" rel="noopener">Blockchain</a>.</p>
<p>There is a video by <a class="yt-simple-endpoint style-scope yt-formatted-string" href="https://www.youtube.com/channel/UCnxrdFPXJMeHru_b4Q_vTPQ" target="_blank" rel="noopener">Simply Explained &#8211; Savjee</a> which let you understand easily what actually a blockchain technology is.</p>
<p><iframe loading="lazy" src="https://www.youtube.com/embed/SSo_EIwHSd4" width="100%" height="350" frameborder="0" allowfullscreen="allowfullscreen"><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start">﻿</span></iframe></p>
<h2>How To Create Own Cryptocurrency?</h2>
<p><strong>1. Creating Block-chain</strong></p>
<p>There are plenty of full featured <strong>Open Source Blockchain</strong> available out there. Even anyone can fork the existing <a href="https://github.com/bitcoin/bitcoin" target="_blank" rel="noopener">Bitcoin&#8217;s</a> or <a href="https://github.com/litecoin-project/litecoin" target="_blank" rel="noopener">Litecoin&#8217;s</a> blockchain from Github as well.</p>
<p>Actually we are also going to use an open source technology for our block-chain. Because developing a block-chain from scratch is obviously a big deal and it would definitely cost you a huge amount of money.</p>
<p>We are going to use <a href="https://www.multichain.com/" target="_blank" rel="noopener">Multichain</a> to create our cryptocurrency. <strong>Multichai</strong>n is an open source blockchain platform provider. You can learn more about Multichain at their <a href="https://www.multichain.com/" target="_blank" rel="noopener">official website</a>.</p>
<p>So lets get started :-</p>
<p><strong>Downloading &amp; Installing Multichain Blockchain on our Live Server</strong></p>
<p>As we are going to install our block-chain directly on a live server, so access your server using <strong>SSH via putty</strong> as <strong>administrator</strong> (root access) and run following commands one by one.</p>
<pre class="language-php"><code class="language-php">
cd /tmp
</code></pre>
<pre class="language-php"><code class="language-php">
wget https://www.multichain.com/download/multichain-1.0.4.tar.gz
</code></pre>
<pre class="language-php"><code class="language-php">
tar -xvzf multichain-1.0.4.tar.gz
</code></pre>
<pre class="language-php"><code class="language-php">
cd multichain-1.0.4
</code></pre>
<pre class="language-php"><code class="language-php">
mv multichaind multichain-cli multichain-util /usr/local/bin</code></pre>
<p>Full instructions for installing multichain&#8217;s block-chain are given at their <a href="https://www.multichain.com/download-install/">official page here.</a></p>
<p>Great! we have installed multichain on our server, now its time to create a block-chain. To create it run below command.</p>
<pre class="language-php"><code class="language-php">
multichain-util create ourchain
</code></pre>
<p><code>ourchain</code> is our <strong>blockchain&#8217;s name</strong> you can name your chain whatever you want.</p>
<p><strong>2. making changes in chain</strong></p>
<p>Okay! now our <code>blockchain</code> has been created and we just need to start it. But I recommend you to make changes as per your need in chain before starting it, because <code>blockchain</code> doesn&#8217;t allow any amendments when  it gets started.</p>
<p>I know you all are wondering what changes can we make in our <code>blockchain</code>? So I&#8217;m listing down some of major parameters you should change as per your need. Although you can always check all the parameters provided by multichain at their <a href="https://www.multichain.com/developers/blockchain-parameters/">blockchain parameters page.</a></p>
<p>So access your server using <strong>SSH via putty</strong> as <strong>administrator</strong> and run below command</p>
<pre class="language-php"><code class="language-php">
nano ~/.multichain/ourchain/params.dat</code></pre>
<p>Following are the parameters you need to work on.</p>
<ul>
<li>chain-description</li>
<li>chain-is-testnet</li>
<li>first-block-reward (<strong>this would be your total coins in your cryptocurrency economy</strong>)</li>
<li>anyone-can-connect (set it to <code>true</code>)</li>
<li>anyone-can-send (set it to <code>true</code>)</li>
<li>anyone-can-receive (set it to <code>true</code>)</li>
</ul>
<p>after making all the required changes you just need to save the <code>params.dat</code> file.</p>
<p><strong>3. starting the blockchain</strong></p>
<p>One you have made changes you are ready to go. So access you server as root (administrator) and run below command to start your chain.</p>
<pre class="language-php"><code class="language-php">
multichaind ourchain -daemon
</code></pre>
<p>This command would generate your First Block which is called <strong>The Genesis Block</strong>.</p>
<p><strong>4. Testing our cryptocurrency.</strong></p>
<p>Access server using <strong>SSH via putty</strong> as <strong>administrator</strong> and run below command</p>
<pre class="language-php"><code class="language-php">
multichain-cli ourchain
</code></pre>
<p>This command let we enter into interactive mode. For checking chain&#8217;s information run <code>getinfo</code> command.</p>
<p>In next article we will learn Blockchain&#8217;s operations i.e. to create new wallet address, send coins to other wallets etc. Subscribe us and don&#8217;t forget to share this article with your friends.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/create-own-cryptocurrency.html">Create own Cryptocurrency: A Step By Step Guide</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/create-own-cryptocurrency.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">497</post-id>	</item>
		<item>
		<title>How to use SQL Manager in CodeLobster PHP IDE</title>
		<link>https://www.myprogrammingtutorials.com/sql-manager-in-codelobster-php-ide.html</link>
					<comments>https://www.myprogrammingtutorials.com/sql-manager-in-codelobster-php-ide.html#respond</comments>
		
		<dc:creator><![CDATA[Stanislav Ustimenko]]></dc:creator>
		<pubDate>Thu, 05 Apr 2018 09:15:30 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[product review]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=548</guid>

					<description><![CDATA[<p>Probably, every PHP programmer had to create his own framework or library, and it was necessary to work quickly and do everything practically from scratch. Often we need to test some of our ideas or algorithms and we write code for interacting with databases directly, without using ORM frameworks. In addition, SQL that is used… <a href="https://www.myprogrammingtutorials.com/sql-manager-in-codelobster-php-ide.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/sql-manager-in-codelobster-php-ide.html">How to use SQL Manager in CodeLobster PHP IDE</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Probably, every PHP programmer had to create his own framework or library, and it was necessary to work quickly and do everything practically from scratch.</p>
<p>Often we need to test some of our ideas or algorithms and we write code for interacting with databases directly, without using ORM frameworks.</p>
<p>In addition, SQL that is used in various libraries and CMS might not work quite efficiently and slow down the site.</p>
<p>In such cases, you need to open the SQL editor and start optimizing the queries.</p>
<p>We bring to your attention an article in which the SQL-manager built-in in <a href="http://www.codelobster.com/" target="_blank" rel="nofollow noopener noreferrer">CodeLobster PHP IDE </a>will be considered.</p>
<p>On a simple example, we will learn how to effectively use the SQL editor and how to create and configure database connections.</p>
<p><strong>Creating and configuring a connection to MySQL</strong></p>
<p>Go to the main menu <code>"Tools"</code> -&gt; <code>"MySQL"</code> -&gt; <code>"SQL Manager"</code>. In the opened tab on the right information panel we have the opportunity to add a host and database, for this click the <code>"Register Host"</code> button.</p>
<p>Fill in all the required fields in the dialog box that appears, and straight away let&#8217;s give the connection an informative name and enter it in the <code>"Connection Alias"</code> field.</p>
<p>Then we must specify the host and port of our MySQL server and the name of the database with which we are planning to work.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-550 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/SQL_Manager_in_CodeLobster_PHP_IDE.jpg?resize=363%2C229&#038;ssl=1" alt="SQL Manager in CodeLobster PHP IDE" width="363" height="229" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/SQL_Manager_in_CodeLobster_PHP_IDE.jpg?w=363&amp;ssl=1 363w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/SQL_Manager_in_CodeLobster_PHP_IDE.jpg?resize=300%2C189&amp;ssl=1 300w" sizes="(max-width: 363px) 100vw, 363px" data-recalc-dims="1" /></p>
<p>It remains to enter the correct username and password and click <code>"OK"</code>.</p>
<p>It is done, the host and database are registered and we can begin to examine the functionality of the SQL manager.</p>
<p><strong>Working with tables and data using SQL manager</strong></p>
<p>The main advantage of the built-in CodeLobster SQL manager is the ability to perform the full range of operations necessary for quality work with database.</p>
<p>A classic set of such functions is called CRUD (Create, Read, Update, Delete). You can create and modify tables in the visual mode, add and delete records, as well as read and edit any information.</p>
<p>This, of course, will save a lot of time for the developer at the stage of designing a database for his application.</p>
<p>For our example, we need to create a table in which information about useful books will be stored, and then display this data in a conveniently readable form using a PHP script.</p>
<p>In the program window, right-click on the name of database to which we just connected and select <code>"Create Table"</code> from the context menu. Enter the name of the table &#8211; <code>"books"</code> and click <code>"OK"</code>.</p>
<p>Now the CodeLobster opens the table editor, in this tab click the <code>"New Field"</code> button.</p>
<p><img loading="lazy" decoding="async" class=" wp-image-551 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor.jpg?resize=704%2C440&#038;ssl=1" alt="CodeLobster table editor" width="704" height="440" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 704px) 100vw, 704px" data-recalc-dims="1" /></p>
<p>In the dialog that appears, enter the name of the field &amp;quot;id&amp;quot;, it will be our primary key with the <strong>INTEGER</strong> data type, so check <code>"Not Null"</code> and <code>"Autoincrement"</code> checkboxes. The <code>"Primary Key"</code> field will be selected automatically &#8211; this is what we need, click <code>"OK"</code>.</p>
<p>The next column of the table will contain the name of the book, for this you can use the variable length string &#8211; <strong>VARCHAR</strong>.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-552" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor2.jpg?resize=714%2C446&#038;ssl=1" alt="CodeLobster table editor" width="714" height="446" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor2.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor2.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor2.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_table_editor2.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 714px) 100vw, 714px" data-recalc-dims="1" /></p>
<p>The field is called <code>"title"</code>, we set the maximum length for it of 100 characters. Also, adding a book without a name does not make sense, so we set the <code>"Not Null"</code> restriction by enabling the corresponding checkbox.</p>
<p>In addition, check the option <code>"Primary Key"</code>, and as a result, MySQL will create an index for this column. Thanks to this, for example, queries with the WHERE title = &#8220;&#8230;&#8221; expression will be executed much faster when you will be working with a table containing a large number of records.</p>
<p>Another thing worth paying attention to is the <code>"Collation"</code> field. Since we have to work with strings in utf8 encoding, we specify the <strong>utf8_general_ci</strong> collation, since in MySQL this value is used by default for the utf8 character set.</p>
<p>Click <code>"OK"</code> to save the changes.</p>
<p>In the same way, we create three more columns: <code>"author"</code> and <code>"image"</code> of type <strong>VARCHAR(100)</strong> to store the name of the author of the book and the name of the file with the cover photo, and the <code>"description"</code> column of <strong>TEXT</strong> type for a brief description of the book.</p>
<p>After the structure is created, we need to press the <code>"Compile"</code> button to execute the commands for creating and saving the table in the database.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-553" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_2.jpg?resize=714%2C446&#038;ssl=1" alt="CodeLobster table editor" width="714" height="446" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_2.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_2.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_2.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_2.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 714px) 100vw, 714px" data-recalc-dims="1" /></p>
<p>In the program the window in which we are working now has one more tab &#8211; <code>"Data"</code>, here you can view and edit the contents of the current table.</p>
<p>At the moment, it is still empty, so we will continue to work, press <code>"Insert Record"</code> &#8211; this is a button with a <code>"+"</code> sign.</p>
<p>To start, you need to double-click on the desired field in the column and enter the data. In this case, the values of strings and numeric fields are entered directly in place, and for text fields a special dialog box is used, that facilitates and simplifies the input of text in the form of several lines.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-554" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_3.jpg?resize=708%2C443&#038;ssl=1" alt="CodeLobster php editor" width="708" height="443" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_3.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_3.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_3.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_3.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 708px) 100vw, 708px" data-recalc-dims="1" /></p>
<p>You do not need to enter the <code>"id"</code> column, since its value will be generated automatically by MySQL engine.</p>
<p>Also, do not forget that the real data insertion will occur only after clicking the <code>"Post Edit"</code> button. So, let&#8217;s review the values of fields and, if everything is correct, click the button with <code>"check"</code> sign.</p>
<p>So, pretty quickly, you can pre-populate the database and add as many rows as you need for your application.</p>
<p><strong>Working with SQL editor in CodeLobster</strong></p>
<p>Our IDE uses two-panel windows to edit SQL queries. At the top of the window we can enter a query, and at the bottom we can immediately see its result.</p>
<p>Right-click on the table name and select <code>"New SQL File"</code>.</p>
<p>In the opened window of the editor, we begin to enter the query, now you can use intelligent prompts not only on the SQL syntax, but also on the names of the tables.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-555" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_4.jpg?resize=705%2C441&#038;ssl=1" alt="CodeLobster php editor" width="705" height="441" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_4.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_4.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_4.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_4.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 705px) 100vw, 705px" data-recalc-dims="1" /></p>
<p>By pressing Ctrl + Space in the process of composing the query, we also get an auto-complete window on the names of the columns in the current table. Of course, in order to these functions work correctly, a connection to the database must be established.</p>
<p>After we have entered the query, we press the <code>"Execute"</code> button and examine the results at the bottom of the window.</p>
<p>It is possible to save the created file in your project with the extension <strong>.sql</strong>, as well as the regular file with the source code and use it then at any time.</p>
<p>All the benefits of the SQL editor are also useful if you have to insert queries directly into PHP code.</p>
<p>For our example, we need to run a query to retrieve all the entries from the <code>"books"</code> table. In the image below, you can make sure that CodeLobster does an excellent job with the mixed code.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-556" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_5.jpg?resize=742%2C464&#038;ssl=1" alt="CodeLobster php editor" width="742" height="464" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_5.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_5.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_5.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_php_editor_5.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 742px) 100vw, 742px" data-recalc-dims="1" /></p>
<p>It is known that in the development process, the programmer is not limited to creating a database and populating tables.</p>
<p>After the database is designed and filled with data, you can transfer it to another host or save it for later use in other projects.</p>
<p>To start the process of exporting or moving the database, you need to right-click on the name of the database or table and select the <code>"Export"</code> item.</p>
<p>The Export Wizard starts, it has many options and therefore is flexible configured. With its help in several steps you can export to one SQL-file the structure or data contained in tables or them all together.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-557" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_database_wizard.jpg?resize=727%2C454&#038;ssl=1" alt="CodeLobster php editor" width="727" height="454" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_database_wizard.jpg?w=1280&amp;ssl=1 1280w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_database_wizard.jpg?resize=300%2C188&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_database_wizard.jpg?resize=768%2C480&amp;ssl=1 768w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/04/CodeLobster_database_wizard.jpg?resize=1024%2C640&amp;ssl=1 1024w" sizes="(max-width: 727px) 100vw, 727px" data-recalc-dims="1" /></p>
<p>In the case of working with individual tables, their contents can be saved not only in the form of SQL, but also in <strong>CSV</strong> or <strong>TSV</strong> format, that is very convenient.</p>
<p>Now any other application can work with the exported records, for example, they can be easily analyzed and edited in Microsoft Word or OpenOffice.</p>
<p><strong>So, let&#8217;s sum up</strong></p>
<p>We have discussed in detail the use of the SQL manager in <a href="http://www.codelobster.com/" target="_blank" rel="nofollow noopener noreferrer">CodeLobster IDE</a>.</p>
<p>By studying the article, you learned how to connect to the MySQL server, how to create tables, add entries and execute queries in the editor window or from PHP scripts.</p>
<p>And, finally, you can not be afraid of losing data, because you will be able to quickly backup any database or table with the help of the Wizard.</p>
<p>So, now you have got all the necessary tools for the full range of works on designing databases for your projects.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/sql-manager-in-codelobster-php-ide.html">How to use SQL Manager in CodeLobster PHP IDE</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/sql-manager-in-codelobster-php-ide.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">548</post-id>	</item>
		<item>
		<title>Generating PDFs with DocRaptor’s HTML-to-PDF Library</title>
		<link>https://www.myprogrammingtutorials.com/convert-html-to-pdf-with-docraptor-php-library.html</link>
					<comments>https://www.myprogrammingtutorials.com/convert-html-to-pdf-with-docraptor-php-library.html#comments</comments>
		
		<dc:creator><![CDATA[James Paden]]></dc:creator>
		<pubDate>Thu, 08 Mar 2018 11:31:33 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[html to pdf]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=525</guid>

					<description><![CDATA[<p>Many web applications have a PDF export requirement: invoices, reports, brochures, or eBooks. Generating these PDFs, especially if they’re complex or large, can be really challenging. Fortunately, there’s DocRaptor, which provides an easy-to-use API for converting HTML web pages into PDFs. This is a walkthrough of how to setup and use DocRaptor’s PHP library: Installation… <a href="https://www.myprogrammingtutorials.com/convert-html-to-pdf-with-docraptor-php-library.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/convert-html-to-pdf-with-docraptor-php-library.html">Generating PDFs with DocRaptor’s HTML-to-PDF Library</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class=" wp-image-526 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/03/docraptor-html-to-pdf-converter.png?resize=695%2C521&#038;ssl=1" alt="convert html to pdf with docraptor php library" width="695" height="521" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/03/docraptor-html-to-pdf-converter.png?w=800&amp;ssl=1 800w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/03/docraptor-html-to-pdf-converter.png?resize=300%2C225&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2018/03/docraptor-html-to-pdf-converter.png?resize=768%2C576&amp;ssl=1 768w" sizes="(max-width: 695px) 100vw, 695px" data-recalc-dims="1" /></p>
<p>Many web applications have a PDF export requirement: invoices, reports, brochures, or eBooks. Generating these PDFs, especially if they’re complex or large, can be really challenging. Fortunately, there’s <a href="https://docraptor.com/" target="_blank" rel="noopener noreferrer">DocRaptor</a>, which provides an easy-to-use API for converting HTML web pages into PDFs. This is a walkthrough of how to setup and use DocRaptor’s <a href="https://docraptor.com/documentation/php" target="_blank" rel="nofollow noopener noreferrer">PHP library</a>:</p>
<h3>Installation</h3>
<p>DocRaptor can be installed via the Composer dependency manager or by downloading the files directly. To use Composer, simply run this on your command line:</p>
<pre class=" language-php"><code class=" language-php">
composer require docraptor/docrapto
</code></pre>
<p>&nbsp;</p>
<p>Alternatively, download and unzip the <a href="https://github.com/docraptor/docraptor-php/releases" target="_blank" rel="noopener noreferrer">latest release</a> into your project directory. Simply include <code>autoload.php</code> to get access to the DocRaptor library:</p>
<pre class=" language-php"><code class=" language-php">
// docraptor.php
require_once('/path/to/docraptor-php/autoload.php');
</code></pre>
<h3> Add Your API Key</h3>
<p>Unlimited watermarked test documents can made using the “<code><strong>YOUR_API_KEY_HERE</strong></code>” key. If you’re ready to make non-watermarked documents, you can get your own API key by creating an account.</p>
<pre class=" language-php"><code class=" language-php">
$configuration = DocRaptor\Configuration::getDefaultConfiguration();
$configuration-&gt;setUsername("YOUR_API_KEY_HERE");
</code></pre>
<h3>Add HTML</h3>
<p>To make your PDF, simply set the document content to your HTML:</p>
<pre class=" language-php"><code class=" language-php">
$docraptor = new DocRaptor\DocApi();
$doc = new DocRaptor\Doc();
$doc-&gt;setDocumentContent("&lt;html&gt;&lt;body&gt;Your HTML goes here!&lt;/body&gt;&lt;/html&gt;");
</code></pre>
<p>&nbsp;</p>
<p>If you want to use an existing website page, just input the URL like this:</p>
<pre class=" language-php"><code class=" language-php">
$docraptor = new DocRaptor\DocApi();
$doc = new DocRaptor\Doc();
$doc-&gt;setDocumentUrl("http://docraptor.com/samples/ebook.html");
</code></pre>
<p>&nbsp;</p>
<p>Either way you decide to input the HTML, any external assets in your HTML (CSS, JS, images) are required to be accessible to the DocRaptor servers. They must also either have absolute URLs or you can include a baseurl in your document or use the baseurl API option.</p>
<h3>Set API Options</h3>
<p>Since DocRaptor makes PDFs and Excel files, we need to set the document type:</p>
<pre class=" language-php"><code class=" language-php">
$doc-&gt;setDocumentType("pdf");
</code></pre>
<p>&nbsp;</p>
<p>To create the free watermarked documents, we need to set test to true:</p>
<pre class=" language-php"><code class=" language-php">
$doc-&gt;setTest(true);
</code></pre>
<p>&nbsp;</p>
<p>JavaScript processing can be enabled with this command:</p>
<pre class=" language-php"><code class=" language-php">
$doc-&gt;setJavascript(true);
</code></pre>
<p>&nbsp;</p>
<p>See <a href="https://docraptor.com/documentation/api" target="_blank" rel="nofollow noopener noreferrer">DocRaptor’s API documentation</a> for the full list of API options. There’s a lot of them, but they aren’t necessary for most projects.</p>
<h3>Generate the PDF</h3>
<p>That’s all the setup that’s required. Creating the document is just one line of code, but we should wrap it error handling:</p>
<pre class=" language-php"><code class=" language-php">
try {
    $create_response = $docraptor-&gt;createDoc($doc);
} catch (DocRaptor\ApiException $error) {
    echo $error . "\n";
    echo $error-&gt;getMessage() . "\n";
    echo $error-&gt;getCode() . "\n";
    echo $error-&gt;getResponseBody() . "\n";
}
</code></pre>
<h3>Save the PDF</h3>
<p>Once generated, the PDF can be saved to the server.</p>
<pre class=" language-php"><code class=" language-php">
$file = fopen("/tmp/docraptor-php.pdf", "wb");
fwrite($file, $create_response);
fclose($file);
</code></pre>
<h3>Or Send it to the Browser</h3>
<p>Or if we’re creating the PDF after a user action and we want them to immediately download it, we can send it to the browser without saving it on the server:</p>
<pre class=" language-php"><code class=" language-php">
header('Content-Description: File Transfer');
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename=example.pdf');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: ' . strlen($create_response));
ob_clean();
flush();
echo($create_response);
exit;
</code></pre>
<h3>Complete Example</h3>
<p>Putting it all together, here’s the full code for making a PDF with DocRaptor. As you can see, it’s short and offloads all the CPU intensive work off our server and puts it onto DocRaptor. It also lets us rapidly make PDFs if multiple users request a PDF at once, which is hard to do if we try to use an open source library.</p>
<pre class=" language-php"><code class=" language-php">
&lt;?php
// docraptor.php
require_once('docraptor-php/autoload.php');
$configuration = DocRaptor\Configuration::getDefaultConfiguration();
$configuration-&gt;setUsername("YOUR_API_KEY_HERE");
$docraptor = new DocRaptor\DocApi();
$doc = new DocRaptor\Doc();
$doc-&gt;setDocumentContent("&lt;html&gt;&lt;body&gt;Hello World&lt;/body&gt;&lt;/html&gt;");
//$doc-&gt;setDocumentUrl("http://docraptor.com/examples/invoice.html");
$doc-&gt;setDocumentType("pdf"); // DocRaptor also makes Excel files
$doc-&gt;setTest(true);
//$doc-&gt;setJavascript(true);
try {
    $create_response = $docraptor-&gt;createDoc($doc);
    $file = fopen("/tmp/docraptor-php.pdf", "wb");
    fwrite($file, $create_response);
    fclose($file);
    //header('Content-Description: File Transfer');
    //header('Content-Type: application/pdf');
    //header('Content-Disposition: attachment; filename=example.pdf');
    //header('Content-Transfer-Encoding: binary');
    //header('Expires: 0');
    //header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
    //header('Pragma: public');
    //header('Content-Length: ' . strlen($create_response));
    //ob_clean();
    //flush();
    //echo($create_response);
    //exit;
} catch (DocRaptor\ApiException $error) {
    echo $error . "\n";
    echo $error-&gt;getMessage() . "\n";
    echo $error-&gt;getCode() . "\n";
    echo $error-&gt;getResponseBody() . "\n";
}
</code></pre>
<p>&nbsp;</p>
<p>Despite PDFs being one of the internet’s most common standards, it’s surprisingly difficult to dynamically create PDFs from a website. There’s three primary tools used to create PDFs:</p>
<ul>
<li>PDF Generators allow you to create PDFs by adding text at pixel location 123&#215;456 and an images at pixel location 456&#215;123. While fast to generate and simple, the code to generate these PDFs is brittle and time consuming to write.</li>
<li>Browser-Based libraries use Webkit or Chromium to generate a PDF based on HTML. These are fast to setup, but provide limited PDF functionality and quality. Browsers are simply not optimized from PDF generation.</li>
<li>Commercial libraries built from the ground up to turn HTML into PDFs. These engines are designed specifically for PDF generation and provide a level of quality and control than the browser-based libraries cannot.</li>
</ul>
<p>DocRaptor is based on one of the commercial tools, but they offer affordable pricing and an easy-to-use PHP library.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/convert-html-to-pdf-with-docraptor-php-library.html">Generating PDFs with DocRaptor’s HTML-to-PDF Library</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/convert-html-to-pdf-with-docraptor-php-library.html/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">525</post-id>	</item>
		<item>
		<title>Install IonCube Loader in Localhost</title>
		<link>https://www.myprogrammingtutorials.com/install-ioncube-loader-localhost.html</link>
					<comments>https://www.myprogrammingtutorials.com/install-ioncube-loader-localhost.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Sun, 05 Nov 2017 14:32:49 +0000</pubDate>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=454</guid>

					<description><![CDATA[<p>Hello developer fellows, in this article, we are going to learn how you can install IonCube Loader in Localhost. Installing an IonCube PHP extension can be quite hard for beginners, but it is not impossible of course. In this topic, I&#8217;m going to guide you step by step to install IonCube locally. First of all,… <a href="https://www.myprogrammingtutorials.com/install-ioncube-loader-localhost.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/install-ioncube-loader-localhost.html">Install IonCube Loader in Localhost</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello developer fellows, in this article, we are going to learn how you can <strong>install IonCube Loader in Localhost</strong>. Installing an <strong>IonCube PHP extension</strong> can be quite hard for beginners, but it is not impossible of course. In this topic, I&#8217;m going to guide you step by step to install IonCube locally.</p>
<p>First of all, we need to know what exactly the IonCube is? and what exactly it is used for? I know that some of you people will be very familiar with the IonCube, but those who don&#8217;t know should read introduction part of this extension.</p>
<h2>What is IonCube?</h2>
<p><strong>IonCube PHP encoder</strong> was founded in 2002. It is a tool that encrypts files written in the PHP programming language (.php files). IonCube&#8217;s encryption system is used by PHP developers to protect their program&#8217;s source code so that any unauthorized person could not use the program illegally or couldn&#8217;t make any changes to files.</p>
<h2>What is IonCube Loader?</h2>
<p>IonCube Loader is a PHP extension that reads and executes those files that are encrypted by IonCube. If you have encrypted some of your PHP files then you have to install <strong>IonCube Loader extension</strong> to the server computer. You can use it on your local server too.</p>
<p>Nowadays almost all server computers can be found IonCube installed by default. If you want to figure out whether your server has IonCube installed or not, you can create a <code>phpinfo.php</code> file and search for &#8220;Ioncube&#8221;. You can also contact your Host Provider to grab such pieces of information.</p>
<h3>How to install IonCube Loader in localhost</h3>
<p>As I&#8217;ve said before, If you want to run a PHP file which is encrypted by IonCube then you should have IonCube installed on your Apache server. In this tutorial, we will cover the installation of the <strong>IonCube Loader on a local server</strong> such as <em>WAMP</em>, <em>XAMPP</em>, <em>MAMP</em> &amp; <em>LAMP</em> etc.</p>
<p>There is two possible way to <strong>install IonCube Loader in Localhost</strong>, the first one is manual installation which is pretty hard for beginners, and the second one is installation through a Loader Wizard. We would go with the Loader Wizard because it is the simplest way to install the IonCube Loader.</p>
<p>Carefully read all the steps mentioned below to properly install IonCube Loader in Localhost.</p>
<p><strong>Step-1. Downloading IonCube</strong></p>
<p>Visit IonCube&#8217;s official website <a href="http://www.ioncube.com/loaders.php" target="_blank" rel="nofollow noopener">http://www.ioncube.com/loaders.php</a> and download the Loader Wizard</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-458" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/11/install-ioncube-locally.png?resize=740%2C342&#038;ssl=1" alt="install ioncube locally" width="740" height="342" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/11/install-ioncube-locally.png?w=740&amp;ssl=1 740w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/11/install-ioncube-locally.png?resize=300%2C139&amp;ssl=1 300w" sizes="(max-width: 740px) 100vw, 740px" data-recalc-dims="1" /></p>
<p><strong>Step-2. Installing IonCube Loader through Loader Wizard</strong></p>
<p>Extract the downloaded file, you will find a <code>loader-wizard.php</code> file there. You have to run this file using your localhost. So put <code>loader-wizard.php</code> file on your localhost and run this file using a browser.</p>
<p>The Loader wizard helps you to find the appropriate package for your computer. Download the Loader suggested by the wizard and after extracting it you will find <code>ioncube</code> folder, you have to paste this folder into <code>C:\wamp\bin\apache\Apache2.4.4\bin\ioncube</code> directory (as per your Apache version).</p>
<p><strong>Step-3 Updating <code>php.ini</code> file</strong></p>
<p>After placing the IonCube Loader in the appropriate directory now it is the time to tell PHP that we&#8217;ve installed a new PHP extension, to do so we have to update the <code>php.ini</code> file. You can find this file <code>C:\wamp\bin\apache\Apache2.4.4\bin\php.ini</code> here.</p>
<p>Open php.ini file as administrator and <kbd>Ctrl</kbd> + <kbd>F</kbd> and search for <code>zend_extension</code> and add the following code just above it</p>
<pre class="language-html"><code class="language-html">
zend_extension = "c:/wamp/bin/apache/Apache2.4.4/bin/ioncube/ioncube_loader_win_5.5.dll"
</code></pre>
<p><strong>Note</strong></p>
<p>IonCube <code>zend_extension</code> should the first <code>zend_extension</code> to be loaded in <code>php.ini</code> file. After making changes you have to restart the wamp server.</p>
<h4>Checking the IonCube Loader installation</h4>
<p>Ater completing all the installation steps, now its time to check whether the installation went well or not.</p>
<p>To check the installation, run the <code>loader-wizard.php</code> file again. If it is installed correctly you will be notified as &#8220;Loader Installed&#8221;, but if it is not installed correctly then wizard gives some suggestions to install the extension properly, just go the suggestions and make recommended changes.</p>
<p>After completing all the suggestions you will get the <code>Loader Installed</code> notification after executing the <code>loader-wizard.php</code> file.</p>
<h3>Install IonCube Loader in WAMP</h3>
<p><iframe loading="lazy" src="https://www.youtube.com/embed/X-7JYyeL3UM?rel=0" width="100%" height="400" frameborder="0" allowfullscreen="allowfullscreen"><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start">﻿</span><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start">﻿</span><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start">﻿</span><span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start">﻿</span></iframe></p>
<p>Above video is a property of <a href="https://www.youtube.com/channel/UChZITlMe6D4RMhN3SiiRvOA">John Dugan</a></p>
<p>I hope that you have learned how to <strong>install IonCube Loader in Localhost</strong> by this article. In next article, I&#8217;ll write about how to encrypt PHP files using <strong>IonCube PHP Encoder</strong>.</p>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Multi Level Nested Category System in Codeigniter and MySql</a></li>
<li><a href="https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html">Resize Image Without Stretching in Codeigniter</a></li>
</ul>
<p>The post <a href="https://www.myprogrammingtutorials.com/install-ioncube-loader-localhost.html">Install IonCube Loader in Localhost</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/install-ioncube-loader-localhost.html/feed</wfw:commentRss>
			<slash:comments>19</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">454</post-id>	</item>
		<item>
		<title>How to create Pagination with PHP and MySql</title>
		<link>https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html</link>
					<comments>https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Mon, 02 Oct 2017 01:06:29 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=389</guid>

					<description><![CDATA[<p>In this tutorial, we are going to create pagination with PHP and MySql. It is probably possible that your SQL SELECT query may return results into thousand and millions of records. And it is obviously not a good idea to display all those results on a single page. So we can split this result into multiple… <a href="https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html">How to create Pagination with PHP and MySql</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we are going to <strong>create pagination with PHP and MySql</strong>. It is probably possible that your SQL SELECT query may return results into thousand and millions of records. And it is obviously not a good idea to display all those results on a single page. So we can split this result into multiple pages.</p>
<h2>What is Pagination?</h2>
<p>Paging means displaying all your fetched results in multiple pages instead of showing them all on one page. It makes that page so long and would take so much time to load.</p>
<h3>How to create Pagination with PHP and MySql</h3>
<p>MySQL&#8217;s <b>LIMIT</b> clause helps us to create a pagination feature. It uses two arguments First argument as <code>OFFSET</code> and the second argument <strong>the number of records</strong> which will be returned from the database.</p>
<p>You can find ajax version for this tutorial in my other article <a href="https://www.myprogrammingtutorials.com/infinite-scroll-pagination-with-php-and-ajax.html" target="_blank" rel="noopener noreferrer">ajax pagination</a> here.</p>
<p>Follow these simple steps to <strong>create pagination in PHP &#8211; </strong></p>
<p><strong>1. Get the current page number</strong></p>
<p>This code will get the current page number with the help of <strong><code>$_GET</code> </strong>Array<strong>.</strong> Note that if it is not present it will set the default page number to 1.</p>
<pre class="language-php"><code class="language-php">
if (isset($_GET['pageno'])) {
    $pageno = $_GET['pageno'];
} else {
    $pageno = 1;
}
</code></pre>
<p>&nbsp;</p>
<p><strong>2. The formula for php pagination</strong></p>
<p>You can always manage the number of records to be displayed in a page by changing the value of <code>$no_of_records_per_page</code> variable.</p>
<pre class="language-php"><code class="language-php">
$no_of_records_per_page = 10;
$offset = ($pageno-1) * $no_of_records_per_page; </code></pre>
<p>&nbsp;</p>
<p><strong>3. Get the number of total number of pages</strong></p>
<pre class="language-php"><code class="language-php">
$total_pages_sql = "SELECT COUNT(*) FROM table";
$result = mysqli_query($conn,$total_pages_sql);
$total_rows = mysqli_fetch_array($result)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
</code></pre>
<p>&nbsp;</p>
<p><strong>4. Constructing the SQL Query for pagination</strong></p>
<pre class="language-php"><code class="language-php">
$sql = "SELECT * FROM table LIMIT $offset, $no_of_records_per_page"; </code></pre>
<p>&nbsp;</p>
<p><strong>5. Pagination buttons</strong></p>
<p>These Buttons are served to users as <code>Next Page</code> &amp; <code>Previous Page</code>, so that they can easily navigate through you pages. Here I am using <a href="https://www.w3schools.com/Bootstrap/bootstrap_pagination.asp" target="_blank" rel="noopener noreferrer">bootstrap&#8217;s pagination</a> button, you can use your own buttons if you want.</p>
<pre class="language-php"><code class="language-php">
&lt;ul class="pagination"&gt;
    &lt;li&gt;&lt;a href="?pageno=1"&gt;First&lt;/a&gt;&lt;/li&gt;
    &lt;li class="&lt;?php if($pageno &lt;= 1){ echo 'disabled'; } ?&gt;"&gt;
        &lt;a href="&lt;?php if($pageno &lt;= 1){ echo '#'; } else { echo "?pageno=".($pageno - 1); } ?&gt;"&gt;Prev&lt;/a&gt;
    &lt;/li&gt;
    &lt;li class="&lt;?php if($pageno &gt;= $total_pages){ echo 'disabled'; } ?&gt;"&gt;
        &lt;a href="&lt;?php if($pageno &gt;= $total_pages){ echo '#'; } else { echo "?pageno=".($pageno + 1); } ?&gt;"&gt;Next&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;&lt;a href="?pageno=&lt;?php echo $total_pages; ?&gt;"&gt;Last&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
<p>&nbsp;</p>
<p><strong>6. Let&#8217;s assemble all the codes in one page</strong></p>
<pre class="language-php"><code class="language-php">
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Pagination&lt;/title&gt;
    &lt;!-- Bootstrap CDN --&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;?php

        if (isset($_GET['pageno'])) {
            $pageno = $_GET['pageno'];
        } else {
            $pageno = 1;
        }
        $no_of_records_per_page = 10;
        $offset = ($pageno-1) * $no_of_records_per_page;

        $conn=mysqli_connect("localhost","my_user","my_password","my_db");
        // Check connection
        if (mysqli_connect_errno()){
            echo "Failed to connect to MySQL: " . mysqli_connect_error();
            die();
        }

        $total_pages_sql = "SELECT COUNT(*) FROM table";
        $result = mysqli_query($conn,$total_pages_sql);
        $total_rows = mysqli_fetch_array($result)[0];
        $total_pages = ceil($total_rows / $no_of_records_per_page);

        $sql = "SELECT * FROM table LIMIT $offset, $no_of_records_per_page";
        $res_data = mysqli_query($conn,$sql);
        while($row = mysqli_fetch_array($res_data)){
            //here goes the data
        }
        mysqli_close($conn);
    ?&gt;
    &lt;ul class="pagination"&gt;
        &lt;li&gt;&lt;a href="?pageno=1"&gt;First&lt;/a&gt;&lt;/li&gt;
        &lt;li class="&lt;?php if($pageno &lt;= 1){ echo 'disabled'; } ?&gt;"&gt;
            &lt;a href="&lt;?php if($pageno &lt;= 1){ echo '#'; } else { echo "?pageno=".($pageno - 1); } ?&gt;"&gt;Prev&lt;/a&gt;
        &lt;/li&gt;
        &lt;li class="&lt;?php if($pageno &gt;= $total_pages){ echo 'disabled'; } ?&gt;"&gt;
            &lt;a href="&lt;?php if($pageno &gt;= $total_pages){ echo '#'; } else { echo "?pageno=".($pageno + 1); } ?&gt;"&gt;Next&lt;/a&gt;
        &lt;/li&gt;
        &lt;li&gt;&lt;a href="?pageno=&lt;?php echo $total_pages; ?&gt;"&gt;Last&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>That&#8217;s all!</p>
<p>If you find this article helpful, don&#8217;t forget to share it with your friends. And stay updated with us by subscribing our blog.</p>
<p>The post <a href="https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html">How to create Pagination with PHP and MySql</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/create-pagination-with-php-and-mysql.html/feed</wfw:commentRss>
			<slash:comments>218</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">389</post-id>	</item>
		<item>
		<title>Find Distance Between two Addresses using Google API and PHP</title>
		<link>https://www.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php.html</link>
					<comments>https://www.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Wed, 16 Aug 2017 06:27:53 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Google API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[google map api]]></category>
		<category><![CDATA[google place api]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=316</guid>

					<description><![CDATA[<p>In this article, you are going to learn that, how to create a distance calculator sort of module which can find distance between two addresses. We are going to use google map API and PHP to accomplish this task. View Demo The distance calculator module we are going to develop here is basically an API provided by The Google… <a href="https://www.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php.html">Find Distance Between two Addresses using Google API and PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, you are going to learn that, how to create a distance calculator sort of module which can find distance between two addresses. We are going to use <a href="https://developers.google.com/maps/" target="_blank" rel="noopener">google map API</a> and <strong>PHP</strong> to accomplish this task.</p>
<p style="text-align: center;"><a class="btn btn-default btn-lg" href="http://demo.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php/" target="_blank" rel="nofollow noopener">View Demo</a></p>
<p>The distance calculator module we are going to develop here is basically an API provided by The Google itself. This API can measure the <strong>driving distance between two location</strong> as well as <strong>Travel Time</strong>. You can also measure distance between cities using this module.</p>
<p>The format for <strong>origin location</strong> and <strong>destination location</strong> could be one of the following:</p>
<ul>
<li>place name (e.g. Bhopal, India)</li>
<li>ZIP code (e.g. 462016)</li>
<li>latitude/longitude coordinates (e.g. 23.77xxx, 77.30xxx)</li>
</ul>
<p>to know more about permissible formats please visit <a href="https://developers.google.com/maps/documentation/distance-matrix/intro" target="_blank" rel="noopener">Google&#8217;s official documentation page</a>.</p>
<h3>Find Distance Between two Addresses</h3>
<p><strong>Step 1:-</strong> Get a google&#8217;s API Key from <a href="https://developers.google.com/maps/documentation/distance-matrix/get-api-key" target="_blank" rel="noopener">https://developers.google.com/maps/documentation/distance-matrix/get-api-key.</a></p>
<p>click on <strong>GET A KEY</strong> button</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-322 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/find-distance-between-two-addresses.png?resize=573%2C379&#038;ssl=1" alt="find distance between two addresses" width="573" height="379" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/find-distance-between-two-addresses.png?w=573&amp;ssl=1 573w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/find-distance-between-two-addresses.png?resize=300%2C198&amp;ssl=1 300w" sizes="(max-width: 573px) 100vw, 573px" data-recalc-dims="1" /></p>
<p>now click on <code>+create a new project</code> and enter your project name then click on <code><strong>ENABLE API</strong></code> button</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-321 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/distance-calculator-api.png?resize=670%2C275&#038;ssl=1" alt="distance calculator api" width="670" height="275" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/distance-calculator-api.png?w=670&amp;ssl=1 670w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/distance-calculator-api.png?resize=300%2C123&amp;ssl=1 300w" sizes="(max-width: 670px) 100vw, 670px" data-recalc-dims="1" /></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-323 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/google-map-api.png?resize=635%2C280&#038;ssl=1" alt="" width="635" height="280" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/google-map-api.png?w=635&amp;ssl=1 635w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/google-map-api.png?resize=300%2C132&amp;ssl=1 300w" sizes="(max-width: 635px) 100vw, 635px" data-recalc-dims="1" /></p>
<p>then after you are finally prompted to a popup window containing your <strong><code>API KEY</code>.</strong></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-320 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/calculate-distance-between-two-cities.png?resize=641%2C350&#038;ssl=1" alt="calculate distance between two cities" width="641" height="350" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/calculate-distance-between-two-cities.png?w=641&amp;ssl=1 641w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/08/calculate-distance-between-two-cities.png?resize=300%2C164&amp;ssl=1 300w" sizes="(max-width: 641px) 100vw, 641px" data-recalc-dims="1" /></p>
<p><strong>Step 2:</strong> source code</p>
<pre class="language-php"><code class="language-php">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;body&gt;

        &lt;form action="" method="post"&gt;

            &lt;label&gt;Origin:&lt;/label&gt; &lt;input type="text" name="o" placeholder="Enter Origin location" required&gt; &lt;br&gt;&lt;br&gt;
            &lt;label&gt;Destination:&lt;/label&gt; &lt;input type="text" name="d" placeholder="Enter Destination location" required&gt; &lt;br&gt;&lt;br&gt;
            &lt;input type="submit" value="Calculate distance &amp; time" name="submit"&gt; &lt;br&gt;&lt;br&gt;

        &lt;/form&gt;

        &lt;?php
            if(isset($_POST['submit'])){
            $origin = $_POST['o']; $destination = $_POST['d'];
            $api = file_get_contents("https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&amp;origins=".$origin."&amp;destinations=".$destination."&amp;key=YOUR_API_KEY");
            $data = json_decode($api);
        ?&gt;

            &lt;label&gt;&lt;b&gt;Distance: &lt;/b&gt;&lt;/label&gt; &lt;span&gt;&lt;?php echo ((int)$data-&gt;rows[0]-&gt;elements[0]-&gt;distance-&gt;value / 1000).' Km'; ?&gt;&lt;/span&gt; &lt;br&gt;&lt;br&gt;
            &lt;label&gt;&lt;b&gt;Travel Time: &lt;/b&gt;&lt;/label&gt; &lt;span&gt;&lt;?php echo $data-&gt;rows[0]-&gt;elements[0]-&gt;duration-&gt;text; ?&gt;&lt;/span&gt; 

        &lt;?php } ?&gt;

    &lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>replace <code><strong>YOUR_API_KEY</strong></code> with your API KEY (<strong>Step 1</strong>) in above code.</p>
<p>We have covered <strong>find distance between two addresses</strong> module in this article, to get latest updates please subscribe our blog and follow us on Facebook. Don&#8217;t forget to share this article with your friends.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Get Users Latitude and Longitude using Google Place API and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Autocomplete Address Search Module Using Google API and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/track-users-real-ip-address.html">Track User’s Real IP Address</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php.html">Find Distance Between two Addresses using Google API and PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/find-distance-between-two-addresses-google-api-php.html/feed</wfw:commentRss>
			<slash:comments>44</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">316</post-id>	</item>
		<item>
		<title>Post into Facebook Page using PHP SDK v5</title>
		<link>https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html</link>
					<comments>https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Sun, 16 Jul 2017 13:49:12 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Facebook API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[facebook php sdk]]></category>
		<guid isPermaLink="false">https://www.myprogrammingtutorials.com/?p=277</guid>

					<description><![CDATA[<p>In this article, we are going to learn how you can directly post into facebook page using PHP from your website or through your own platform. There are lots of companies available on the Internet which provides such kind of services i.e. Hootsuite, Sproutsocial &#38; Socialbakers etc. Facebook always tries to motivate developers, to build such kind of… <a href="https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html">Post into Facebook Page using PHP SDK v5</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, we are going to learn how you can directly <strong>post into facebook page using PHP</strong> from your website or through your own platform.</p>
<p>There are lots of companies available on the Internet which provides such kind of services i.e. <a href="https://hootsuite.com" target="_blank" rel="nofollow noopener">Hootsuite</a>, <a href="https://sproutsocial.com/" target="_blank" rel="nofollow noopener">Sproutsocial</a> &amp; <a href="https://www.socialbakers.com/" target="_blank" rel="nofollow noopener">Socialbakers</a> etc.</p>
<p>Facebook always tries to motivate developers, to build such kind of modules facebook has provided its PHP library for PHP developers called <a href="https://developers.facebook.com/docs/reference/php/" target="_blank" rel="noopener"><strong>Facebook SDK v5</strong></a>. This SDK is a library with powerful features that enable PHP developers to easily integrate Facebook login and make requests to the <strong>Graph API</strong>.</p>
<h2>Post into Facebook Page using PHP Module</h2>
<h3 style="padding-left: 30px;">1. Create a Facebook App</h3>
<p style="padding-left: 60px;">1.1 &#8211; First we need to create a facebook app in order to use their API, sign in to your <a href="https://developers.facebook.com/" target="_blank" rel="noopener">Facebook Developers account</a> and click the &#8220;<span style="text-decoration: underline;">Add a New App</span>&#8221; or &#8220;<span style="text-decoration: underline;">Get Started</span>&#8220;(if you do not have a developers account) link.</p>
<p style="padding-left: 60px;">1.2 &#8211; click on &#8220;<span style="text-decoration: underline;">Settings</span>&#8220;, scroll down and you&#8217;ll see a &#8220;<span style="text-decoration: underline;">+ Add Platform</span>&#8221; just click on it, now it will ask for your website URL, just put your website URL (URL where you want this module to be hosted on) into it.</p>
<p style="padding-left: 60px;">1.3 &#8211; in &#8220;<span style="text-decoration: underline;">Settings</span>&#8221; you will see the <span style="color: #00ff00;">App ID</span> copy it, we&#8217;ll need it further.</p>
<p style="padding-left: 60px;">1.4 &#8211; again in &#8220;<span style="text-decoration: underline;">Settings</span>&#8221; you will see the <span style="color: #00ff00;">App Secret</span>, to grab it you have to click on <span style="text-decoration: underline;">show</span> button and have to enter your facebook password.</p>
<h3 style="padding-left: 30px;">2. Installing the Facebook PHP SDK</h3>
<p style="padding-left: 60px;">2.1 &#8211; First we need to download the <a href="https://github.com/facebook/php-graph-sdk" target="_blank" rel="noopener">Facebook PHP SDK</a> and upload it on your server (website URL, see 1.2), we just need to upload the <span style="text-decoration: underline;">Facebook</span> directory.</p>
<p style="padding-left: 60px;">2.2 &#8211; create an <span style="text-decoration: underline;">init.php</span> file and paste below code into it, and replace <span style="color: #00ff00;">APP_ID</span> &amp; <span style="color: #00ff00;">APP_SECRET</span> with your&#8217;s one (see 1.3 &amp; 1.4).</p>
<pre class="language-php"><code class="language-php">
session_start();

require_once('Facebook/autoload.php');

$fb = new Facebook\Facebook([
'app_id' =&gt; '<span style="color: #00ff00;">APP_ID</span>',
'app_secret' =&gt; '<span style="color: #00ff00;">APP_SECRET</span>',
'default_graph_version' =&gt; 'v2.9',
]);
</code></pre>
<h3 style="padding-left: 30px;">3. The actual code for Post into Facebook Page using PHP</h3>
<p style="padding-left: 60px;">3.1 &#8211; create an <span style="text-decoration: underline;">index.php</span> file, and paste below codes into it.</p>
<pre class="language-php"><code class="language-php">
include('init.php');

$helper = $fb-&gt;getRedirectLoginHelper();

$permissions = ['manage_pages','publish_actions','publish_pages'];
$loginUrl = $helper-&gt;getLoginUrl('YOUR_WEBSITE_URL/fb-callback.php', $permissions);

echo '&lt;a href="' . htmlspecialchars($loginUrl) . '"&gt;Log in with Facebook!&lt;/a&gt;';
</code></pre>
<p>replace &#8220;YOUR_WEBSITE_URL&#8221; in above code (website URL, see 1.2), as you can see in above code you have to create a <span style="text-decoration: underline;">fb-callback.php</span> file.</p>
<p>In above code we have to set a callback URL (fb-callback.php), Facebook uses it to send back an access token. So go ahead and create a <span style="text-decoration: underline;">fb-callback.php</span> file and paste below code into it.</p>
<pre class="language-php"><code class="language-php">
include('init.php');

$helper = $fb-&gt;getRedirectLoginHelper();
$_SESSION['FBRLH_state']=$_GET['state'];

try {

  $accessToken = $helper-&gt;getAccessToken();

} catch(Facebook\Exceptions\FacebookResponseException $e) {

  echo 'Graph returned an error: ' . $e-&gt;getMessage();
  exit;

} catch(Facebook\Exceptions\FacebookSDKException $e) {
  
  echo 'Facebook SDK returned an error: ' . $e-&gt;getMessage();
  exit;

}

if (! isset($accessToken)) {
  echo 'No OAuth data could be obtained from the signed request. User has not authorized your app yet.';
  exit;
}

try {

  $response = $fb-&gt;get('me/accounts', $accessToken-&gt;getValue());
  $response = $response-&gt;getDecodedBody();

} catch(Facebook\Exceptions\FacebookResponseException $e) {
  
  echo 'Graph returned an error: ' . $e-&gt;getMessage();
  exit;

} catch(Facebook\Exceptions\FacebookSDKException $e) {
  
  echo 'Facebook SDK returned an error: ' . $e-&gt;getMessage();
  exit;

}

echo "&lt;pre&gt;";
print_r($response);
echo "&lt;/pre&gt;";
</code></pre>
<p>As of now when we execute our <span style="text-decoration: underline;">index.php</span> file you will see a &#8220;Log in with Facebook!&#8221; link there. When you click on that link you will be get redirected to a facebook page. This page asks a user to authorize our app, when they accept it they will get redirected to our fb-callback.php file, Facebook returns the list of all pages administrated by that user, which is stored in &#8220;$response&#8221; variable.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-294" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/07/post-into-a-facebook-page-using-php2.jpg?resize=720%2C595&#038;ssl=1" alt="post into facebook page using php" width="720" height="595" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/07/post-into-a-facebook-page-using-php2.jpg?w=720&amp;ssl=1 720w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/07/post-into-a-facebook-page-using-php2.jpg?resize=300%2C248&amp;ssl=1 300w" sizes="(max-width: 720px) 100vw, 720px" data-recalc-dims="1" /></p>
<p>as you can see above in screenshot, there is individual <span style="color: #0000ff;">access_token</span> &amp; <span style="color: #0000ff;">id</span> (PageID) available for each page. Finally, these two credentials are required for posting stories on correspondence facebook page.</p>
<p style="padding-left: 60px;">3.2 &#8211; now create a &#8220;<span style="text-decoration: underline;">post.php</span>&#8221; file, and paste below codes into it</p>
<pre class="language-php"><code class="language-php">
include('init.php');

$arr = array('message' =&gt; 'Testing Post for our new tutorial. Graph API.');

$res = $fb-&gt;post('PAGE_ID/feed/', $arr,	'ACCESS_TOKEN');
</code></pre>
<p>replace <span style="color: #0000ff;">PAGE_ID</span> &amp; <span style="color: #0000ff;">ACCESS_TOKEN</span> with your page&#8217;s credentials as shown in above screenshot. By running the post.php file you will get something like below.</p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-296 aligncenter" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/07/graph-api.jpg?resize=489%2C288&#038;ssl=1" alt="facebook php sdk" width="489" height="288" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/07/graph-api.jpg?w=489&amp;ssl=1 489w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/07/graph-api.jpg?resize=300%2C177&amp;ssl=1 300w" sizes="(max-width: 489px) 100vw, 489px" data-recalc-dims="1" /></p>
<p>Check out our <a href="https://fbautomater.com">https://fbautomater.com</a> Facebook Marketing Tool.</p>
<p>Hope you like <strong>post into facebook page using PHP </strong>module, please subscribe us to get latest updates and news. We are going to post lots of interesting articles in future, please like and share this article with your friends.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html">Facebook like time ago system in php</a></li>
<li><a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Get Users Latitude and Longitude using Google Place API and PHP</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html">Post into Facebook Page using PHP SDK v5</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html/feed</wfw:commentRss>
			<slash:comments>64</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">277</post-id>	</item>
		<item>
		<title>Facebook like time ago system in php</title>
		<link>https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html</link>
					<comments>https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Fri, 16 Jun 2017 12:06:03 +0000</pubDate>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=263</guid>

					<description><![CDATA[<p>In this tutorial, we are going to learn how to make Facebook like time ago system in PHP. In my previous post we have learnt How to close a DIV container when clicking outside using Jquery, I know it&#8217;s kinda off topic, because in this topic we are going to learn to convert timestamp to time… <a href="https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html">Facebook like time ago system in php</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we are going to learn how to make <strong>Facebook like time ago system in PHP</strong>. In my previous post we have learnt <a href="https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html">How to close a DIV container when clicking outside</a> using Jquery, I know it&#8217;s kinda off topic, because in this topic we are going to learn to<strong> convert timestamp to time ago in PHP,</strong> but it is my duty to expose all those interesting articles so that you can learn more.</p>
<p>Guys If you have used <a href="http://www.facebook.com" target="_blank" rel="noopener">Facebook</a> and you update status on your wall, upload photo or share something on Facebook then after uploading it, It display time as Just Now or you can also see your previous post time, it show like one week or month or year or day ago.</p>
<p style="text-align: center;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-264" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/06/facebook-like-time-ago-system-in-php.jpg?resize=510%2C487" alt="facebook like time ago system in php" width="510" height="487" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/06/facebook-like-time-ago-system-in-php.jpg?w=510&amp;ssl=1 510w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/06/facebook-like-time-ago-system-in-php.jpg?resize=300%2C286&amp;ssl=1 300w" sizes="(max-width: 510px) 100vw, 510px" data-recalc-dims="1" /></p>
<h2>Importance of this System (Facebook like time ago system in PHP)</h2>
<p>It is common to show dates on the Web in the format such as <strong>Published on January 12th, 2017</strong>, or <strong>05/17/2017</strong>, <strong>09:40:25</strong> and <strong>2017-09-12</strong>.</p>
<p>Each of the above examples shows the full date or time of some kind of activity on web applications – be it a published blog article, or a visitor comment, or perhaps an uploaded video.</p>
<p>Showing Date formats like above might seem perfectly reasonable. After all, they are informative and human readable! but “human readable” not at all necessary mean readers will readily be able to understand how recently the activity has occurred or added. The Internet is a fast-moving place, and giving your content a sense of freshness could be the key to engaging with your audience.</p>
<p>Let’s suppose you have stumbled on an article that was published just a couple of hours ago, but the subheading of the article states like:</p>
<p><strong>Published on January 12th, 2017</strong></p>
<p>or</p>
<p><strong>05/17/2017</strong></p>
<p>or</p>
<p><strong>09:40:25</strong></p>
<p>or</p>
<p><strong>2017-09-12</strong></p>
<p>The only problem with above messages is that they do not communicate the feeling that your activity has just been updated. So, surely it is more inviting and much clearer to display the time in this way:</p>
<p><strong>Published 2 hours ago</strong></p>
<h3>Strategy And Logics</h3>
<p>This function counts the time between the <strong>current date and time</strong> &amp; <strong>previous date and time</strong> with simple PHP logic. This function converts the previous date into <strong>UNIX timestamp</strong> and also the current date in UNIX time. From the difference of this current UNIX timestamp and previous UNIX timestamp, we can get the number of seconds between these dates. From seconds we can easily get minutes, hours, days, weeks, months and years.</p>
<h3>Time ago in PHP function</h3>
<pre class="language-php"><code class="language-php">
function time_ago_in_php($timestamp){
  
  date_default_timezone_set("Asia/Kolkata");         
  $time_ago        = strtotime($timestamp);
  $current_time    = time();
  $time_difference = $current_time - $time_ago;
  $seconds         = $time_difference;
  
  $minutes = round($seconds / 60); // value 60 is seconds  
  $hours   = round($seconds / 3600); //value 3600 is 60 minutes * 60 sec  
  $days    = round($seconds / 86400); //86400 = 24 * 60 * 60;  
  $weeks   = round($seconds / 604800); // 7*24*60*60;  
  $months  = round($seconds / 2629440); //((365+365+365+365+366)/5/12)*24*60*60  
  $years   = round($seconds / 31553280); //(365+365+365+365+366)/5 * 24 * 60 * 60
                
  if ($seconds &lt;= 60){

    return "Just Now";

  } else if ($minutes &lt;= 60){

    if ($minutes == 1){

      return "one minute ago";

    } else {

      return "$minutes minutes ago";

    }

  } else if ($hours &lt;= 24){

    if ($hours == 1){

      return "an hour ago";

    } else {

      return "$hours hrs ago";

    }

  } else if ($days &lt;= 7){

    if ($days == 1){

      return "yesterday";

    } else {

      return "$days days ago";

    }

  } else if ($weeks &lt;= 4.3){

    if ($weeks == 1){

      return "a week ago";

    } else {

      return "$weeks weeks ago";

    }

  } else if ($months &lt;= 12){

    if ($months == 1){

      return "a month ago";

    } else {

      return "$months months ago";

    }

  } else {
    
    if ($years == 1){

      return "one year ago";

    } else {

      return "$years years ago";

    }
  }
}
</code></pre>
<p>You just have to call the function like this:</p>
<p><strong>echo time_ago_in_php(<span style="color: #ff6600;">&#8216;2017-06-16 10:57:03&#8217;</span>);</strong></p>
<p>So! this is all in <strong>facebook like time ago system in PHP </strong>module, to learn more programming tricks please share this with your friends, and don&#8217;t forget to subscribe our blog because as I said before we are going to post lots of interesting <strong>programming tutorials </strong>in future, stay tuned.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Multi Level Nested Category System in Codeigniter and MySql</a></li>
<li><a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Get Users Latitude and Longitude using Google Place API and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html">Resize Image Without Stretching in Codeigniter</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html">Facebook like time ago system in php</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">263</post-id>	</item>
		<item>
		<title>Close or Hide DIV when clicking outside</title>
		<link>https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html</link>
					<comments>https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Wed, 07 Jun 2017 15:28:31 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[jquery tricks]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=248</guid>

					<description><![CDATA[<p>In this tutorial, I&#8217;m gonna demonstrate you how to track if a click event is being made outside of an HTML element. Through this example, we are going to close or hide div using Jquery when a click action occurs outside of that element on which the DIV was produced by clicking. If you have ever… <a href="https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html">Close or Hide DIV when clicking outside</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, I&#8217;m gonna demonstrate you how to track if a click event is being made outside of an HTML element.</p>
<p>Through this example, we are going to close or hide div using Jquery when a click action occurs outside of that element on which the DIV was produced by clicking.</p>
<p style="text-align: center;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-254" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/06/close-hide-div-when-clickin.png?resize=580%2C170" alt="close hide div when clicking outside" width="580" height="170" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/06/close-hide-div-when-clickin.png?w=580&amp;ssl=1 580w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/06/close-hide-div-when-clickin.png?resize=300%2C88&amp;ssl=1 300w" sizes="(max-width: 580px) 100vw, 580px" data-recalc-dims="1" /></p>
<p style="text-align: left;">If you have ever found with menus boxes that open on click event, but want them to close when a click event occurs  outside of that dom elements.</p>
<p style="text-align: left;">Here is a simple way to do so. I&#8217;m gonna add an event listener to the document’s body.  When someone clicks it, we look for the event’s targeted id. If the ID is same as the box’s div, then we do nothing, if it doesn’t, we <a href="http://api.jquery.com/fadeout/">fadeOut</a> the menu box.</p>
<h2>How to hide div when clicking outside</h2>
<pre class="language-javascript"><code class="language-javascript">
$(document).mouseup(function (e){

	var container = $("#YOUR_TARGETED_ELEMENT_ID");

	if (!container.is(e.target) &amp;&amp; container.has(e.target).length === 0){

		container.fadeOut();
		
	}
}); 
</code></pre>
<p><span style="color: #ff0000;"><strong>Note: </strong><span style="color: #000000;">don&#8217;t forget to change <code>YOUR_TARGETED_ELEMENT_ID</code> with your targeted element&#8217;s ID.</span></span></p>
<p>We are using Jquery&#8217;s <code>fadeIn()</code> &amp; <code>fadeOut()</code> functions here to hide and show the box. If you want to use Javascript you can set the css property display block to show the box and display none to hide the box.</p>
<p>To learn more interesting <strong>Jquery tricks</strong> please subscribe us, and share this article.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html">Split Unordered List Into Multiple Columns using CSS3 Property</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html">Close or Hide DIV when clicking outside</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html/feed</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">248</post-id>	</item>
		<item>
		<title>Resize Image Without Stretching in Codeigniter</title>
		<link>https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html</link>
					<comments>https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Fri, 14 Apr 2017 12:48:27 +0000</pubDate>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[resize image]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=177</guid>

					<description><![CDATA[<p>By this article &#8220;resize an image without stretching in CodeIgniter&#8221; I&#8217;m going to show you the mathematics and logic of resizing an image to a different width and height without squeezing or stretching the original image. If the destination image contains a different aspect ratio than the source image, then the source image will be cropped… <a href="https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html">Resize Image Without Stretching in Codeigniter</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: left;">By this article &#8220;<em>resize an image without stretching in CodeIgniter</em>&#8221; I&#8217;m going to show you the <strong>mathematics and logic of resizing an image</strong> to a different width and height without squeezing or stretching the original image.</p>
<p style="text-align: left;">If the destination image contains a different aspect ratio than the source image, then the source image will be cropped in the same ratio of destination image have.</p>
<h2>How to resize image without stretching in CodeIgniter</h2>
<p>I&#8217;m not going to explain about uploading an image as I&#8217;m focusing only resizing an image here. In this article the step or module I&#8217;m going to explain you have to apply this module after uploading an image, so let&#8217;s get started.</p>
<p>paste bellow function in your controller</p>
<pre class="language-php"><code class="language-php">
public function resize_image($image_data){
    $this-&gt;load-&gt;library('image_lib');
    $w = $image_data['image_width']; // original image's width
    $h = $image_data['image_height']; // original images's height

    $n_w = 273; // destination image's width
    $n_h = 246; // destination image's height

    $source_ratio = $w / $h;
    $new_ratio = $n_w / $n_h;
    if($source_ratio != $new_ratio){

        $config['image_library'] = 'gd2';
        $config['source_image'] = './uploads/uploaded_image.jpg';
        $config['maintain_ratio'] = FALSE;
        if($new_ratio &gt; $source_ratio || (($new_ratio == 1) &amp;&amp; ($source_ratio &lt; 1))){
            $config['width'] = $w;
            $config['height'] = round($w/$new_ratio);
            $config['y_axis'] = round(($h - $config['height'])/2);
            $config['x_axis'] = 0;

        } else {

            $config['width'] = round($h * $new_ratio);
            $config['height'] = $h;
            $size_config['x_axis'] = round(($w - $config['width'])/2);
            $size_config['y_axis'] = 0;

        }

        $this-&gt;image_lib-&gt;initialize($config);
        $this-&gt;image_lib-&gt;crop();
        $this-&gt;image_lib-&gt;clear();
    }
    $config['image_library'] = 'gd2';
    $config['source_image'] = './uploads/uploaded_image.jpg';
    $config['new_image'] = './uploads/new/resized_image.jpg';
    $config['maintain_ratio'] = TRUE;
    $config['width'] = $n_w;
    $config['height'] = $n_h;
    $this-&gt;image_lib-&gt;initialize($config);

    if (!$this-&gt;image_lib-&gt;resize()){

        echo $this-&gt;image_lib-&gt;display_errors();

    } else {

        echo "done";

    }
}
</code></pre>
<p>after uploading an image you&#8217;ve to call above function along with uploaded image data (array)</p>
<pre class="language-php"><code class="language-php">
if($this-&gt;upload-&gt;do_upload()){
    $image_data = $this-&gt;upload-&gt;data();
    $this-&gt;resize_image($image_data);
}
</code></pre>
<p>that&#8217;s all you have to do&#8230;</p>
<h4>Conclusion</h4>
<p>This is the more efficient way of &#8220;<strong>resize image without stretching in CodeIgniter</strong>&#8220;. All you have to do is just call the <strong>resize_image</strong> function with the uploaded image data.</p>
<p>For more interesting <strong>web development tricks </strong>please<strong> </strong>subscribe us, because we&#8217;re going to post lots of web modules and tricks in future.</p>
<p>if you find this article helpful please share it with your friend.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude/">How To Get User’s Accurate Latitude and Longitude using Google’s APIs and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php/">Autocomplete Address Search Module Using Google API and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql/">Multi Level Nested Category System in Codeigniter and MySql</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html">Resize Image Without Stretching in Codeigniter</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">177</post-id>	</item>
		<item>
		<title>Get Users Latitude and Longitude using Google Place API and PHP</title>
		<link>https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html</link>
					<comments>https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Thu, 16 Mar 2017 22:44:35 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[google map api]]></category>
		<category><![CDATA[google place api]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=164</guid>

					<description><![CDATA[<p>This tutorial is prepared for those Developers who want to get users latitude and longitude. This can be done by many methods, here I&#8217;m going to use Google Place API to make such things easier. The method and logic I&#8217;m going to use is when user fills the registration form up, we&#8217;d capture his city value (Note:… <a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Get Users Latitude and Longitude using Google Place API and PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This tutorial is prepared for those Developers who want to <strong>get users latitude and longitude</strong>. This can be done by many methods, here I&#8217;m going to use <strong>Google Place API</strong> to make such things easier.</p>
<p>The method and logic I&#8217;m going to use is when user fills the registration form up, we&#8217;d capture his city value (<strong>Note</strong>: city value would be Google Place Search), before proceeding further you have to read my previous post <a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Auto complete Address Search Module Using Google API and PHP</a>, this is the module from which we ask user to enter their location, further this location is used to capture user&#8217;s coordinates using another Google API.</p>
<p>It is not all mandatory to use <a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">address search module</a>,  you can use manual address as well.</p>
<h2>What are Latitude and Longitude?</h2>
<p><strong>Latitude and Longitude</strong> are the entity that represents the coordinates at the geographic coordinate system.</p>
<p>For example, every actual house has its own address (which includes the house number, the street name, city, country, etc), every single dot on the surface of the earth can be specified by the latitude and longitude coordinates.</p>
<p>Therefore, by using these coordinates we can specify virtually any point on earth.</p>
<h2>How to get users latitude and longitude?</h2>
<p><strong>Step 1:</strong> after submitting registration form catch the user&#8217;s current location value (read <a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Auto complete Address Search Module Using Google API and PHP</a> to understand <code>$location</code> variable below).</p>
<pre class="language-php"><code class="language-php">
$location = $_POST['location'];
</code></pre>
<p><strong>Step 2:</strong> make a request to <a href="https://developers.google.com/maps/documentation/geocoding/intro" target="_blank" rel="noopener"><strong>google place API</strong></a></p>
<pre class="language-php"><code class="language-php">
 $data = file_get_contents("http://maps.googleapis.com/maps/api/geocode/json?address=".urlencode($location)."&amp;sensor=true");
 
 <span style="color: #99cc00;">$longitude</span> = json_decode($data)-&gt;results[0]-&gt;geometry-&gt;location-&gt;lng;
 <span style="color: #ff9900;">$latitude</span> = json_decode($data)-&gt;results[0]-&gt;geometry-&gt;location-&gt;lat;
</code></pre>
<p>as you can see the above variables <span style="color: #99cc00;">$longitude</span> &amp; <span style="color: #ff9900;">$latitude</span> store user&#8217;s exact coordinates. You can use these variables as anyway as you want.</p>
<p><strong>NOTE:</strong> If you want to store these coordinates into the database, you must have to create <strong>longitude and latitude</strong> column with datatype <span style="color: #ff0000;">double</span>.</p>
<p>Please share this article with your friends, and get in touch because we are going to post lots of interesting and helpful modules in future, don&#8217;t forget to subscribe us to get latest updates.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/track-users-real-ip-address.html">Track User’s Real IP Address</a></li>
<li><a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Autocomplete Address Search Module Using Google API and PHP</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Get Users Latitude and Longitude using Google Place API and PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html/feed</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">164</post-id>	</item>
		<item>
		<title>Autocomplete Address Search Module Using Google API and PHP</title>
		<link>https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html</link>
					<comments>https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Thu, 02 Mar 2017 12:40:14 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[Google API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[google place api]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=158</guid>

					<description><![CDATA[<p>Today I&#8217;m going to show you how you can add an autocomplete address search module on your website using Google Place API web service. In our autocomplete address search module we have used a Jquery plugin named Select2, for type and search feature to our module. SEE DEMO HERE Steps to implement an autocomplete address search module… <a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Autocomplete Address Search Module Using Google API and PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today I&#8217;m going to show you how you can add an <strong>autocomplete address search module</strong> on your website using <a href="https://developers.google.com/places/web-service/autocomplete" target="_blank" rel="noopener">Google Place API web service</a>.</p>
<p>In our <strong>autocomplete address search module </strong>we have used a Jquery plugin named <strong><a href="https://select2.github.io/examples.html" target="_blank" rel="noopener">Select2</a></strong>, for type and search feature to our module.</p>
<p><a href="http://demo.myprogrammingtutorials.com/autocomplete-address-search/" target="_blank" rel="nofollow noopener">SEE DEMO HERE</a></p>
<h2>Steps to implement an autocomplete address search module</h2>
<p>The first step is to grab a google&#8217;s <strong>API Key</strong>, you can find it <a href="https://developers.google.com/places/web-service/get-api-key" target="_blank" rel="noopener">here</a>.</p>
<p>index.php</p>
<pre class="language-html"><code class="language-html">&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
    &lt;head&gt;
        &lt;meta charset="utf-8"&gt;
        &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;

        &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;

        &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" /&gt;

        &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js"&gt;&lt;/script&gt;

    &lt;/head&gt;
    &lt;body&gt;

        &lt;select id="address" style="width:500px;"&gt;&lt;/select&gt;

        &lt;script type="text/javascript"&gt;
            $(document).ready(function(){

                $("#submit").click(function(){
                    var val = $("#address").val();
                    alert(val);
                });

                $('select').select2({
                    placeholder: "Search for your city",
                    ajax: {
                        url: function(params){
                            return 'api.php?data='+params.term; 
                        },
                        dataType: 'json', 
                        processResults: function (data) {
                            return {
                                results: $.map(data, function (item) {
                                    return {
                                        text: item.text,
                                        id: item.text
                                    }
                                })
                            };
                        }
                    }

                });
            });
        &lt;/script&gt;

    &lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>&nbsp;</p>
<p>api.php</p>
<pre class="language-php"><code class="language-php">
&lt;?php

 $terms = $_GET['data'];

 $data = file_get_contents("https://maps.googleapis.com/maps/api/place/autocomplete/json?input=".$terms."&amp;types=geocode&amp;key={YOUR_API_KEY}");


 $arr = array();
 $i=0;
 foreach(json_decode($data)-&gt;predictions as $item){
 $arr[$i] = array(
 'id' =&gt; $i,
 'text' =&gt; $item-&gt;description
 );
 $i++;
 }

 echo json_encode($arr);

?&gt;
</code></pre>
<p>you just have to put above <strong>index.html</strong> and <strong>api.php </strong>in the same directory, and you replace <strong>{YOUR_API_KEY} </strong>with your&#8217;s one.</p>
<h4>Important Note</h4>
<p>By using <strong>google place API</strong> google simply needs some policy to follow (<a href="https://developers.google.com/places/web-service/policies" target="_blank" rel="noopener">read this policy here</a>), Google wants their &#8220;<strong>powered by Google</strong>&#8221; logo to be shown in the drop-down.</p>
<p><strong>Note:- </strong>you need a live or local server to run this module.</p>
<p>To get latest updates please subscribe us and like our page, we are going to post lots of interesting stuff in future.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html">Get User’s Profile With Linkedin API Using PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Multi Level Nested Category System in Codeigniter and MySql</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Autocomplete Address Search Module Using Google API and PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html/feed</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">158</post-id>	</item>
		<item>
		<title>Get User&#8217;s Profile With Linkedin API Using PHP</title>
		<link>https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html</link>
					<comments>https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Sun, 26 Feb 2017 01:16:46 +0000</pubDate>
				<category><![CDATA[APIs]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sign in with social media]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=141</guid>

					<description><![CDATA[<p>In this article, we are going to learn how you can get user&#8217;s data with LinkedIn API using PHP. There are a couple of social networks which are popular around the world. Sign in with social media is a trendy module on the Internet. Nowadays website visitors or users are getting lazier and lazier, the most… <a href="https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html">Get User&#8217;s Profile With Linkedin API Using PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, we are going to learn how you can get user&#8217;s data with <strong>LinkedIn API using PHP.</strong> There are a couple of social networks which are popular around the world. <strong>Sign in with social media</strong> is a trendy module on the Internet.</p>
<p>Nowadays website visitors or users are getting lazier and lazier, the most uncomfortable activity on the Internet is probably &#8220;<strong>Creating The Account</strong>&#8220;.</p>
<p>So we need to think about our visitor&#8217;s comfort first to make them happier. Because visitors are the most important thing to grow an online business.</p>
<p><img loading="lazy" decoding="async" class="img img-responsive aligncenter wp-image-142 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u.png?resize=750%2C300" alt="get user profile linkedin api using php" width="750" height="300" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u.png?w=750&amp;ssl=1 750w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u.png?resize=300%2C120&amp;ssl=1 300w" sizes="(max-width: 750px) 100vw, 750px" data-recalc-dims="1" /></p>
<p>There are many popular social sites available which provide API to share their user&#8217;s data to make such things easier and comfortable. Such social sites are <a href="https://www.facebook.com" target="_blank" rel="noopener">Facebook</a>, <a href="https://www.google.com" target="_blank" rel="noopener">Google</a>, <a href="https://www.twitter.com" target="_blank" rel="noopener">Twitter </a>&amp; <a href="https://www.linkedin.com" target="_blank" rel="noopener">LinkedIn</a>. We can use their APIs to collect user&#8217;s data automatically without bothering our visitors. In this tutorial, we are focusing on <strong>LinkedIn API using PHP</strong> to get user&#8217;s profile data.</p>
<p>We are going to use <strong>LinkedIn Profile API</strong> to fetch user&#8217;s data from their LinkedIn Account. I recommend you to read all mentioned steps below carefully.</p>
<h3>Follow these steps to get user&#8217;s profile data with LinkedIn API using PHP</h3>
<p><strong>Step 1:</strong> Creating Application at LinkedIn&#8217;s developer console and setting things up.</p>
<p><strong>Step 1.1: </strong>Sign in with your <a href="https://www.linkedin.com/" target="_blank" rel="noopener">LinkedIn account</a>.</p>
<p><strong>Step 1.2: </strong>Visit <a href="https://www.linkedin.com/developer/apps" target="_blank" rel="noopener">LinkedIn Developer&#8217;s page</a>.</p>
<p><strong>Step 1.3: </strong>Click on &#8220;<strong>Create Application</strong>&#8221; button.</p>
<p>you have to fill all the mandatory fields of the application form.</p>
<p><img loading="lazy" decoding="async" class="img img-responsive aligncenter wp-image-144 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-using-php.png?resize=324%2C626&#038;ssl=1" alt="sign in with linkedin" width="324" height="626" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-using-php.png?w=324&amp;ssl=1 324w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-using-php.png?resize=155%2C300&amp;ssl=1 155w" sizes="(max-width: 324px) 100vw, 324px" data-recalc-dims="1" /></p>
<p>after filling the form up you will get redirected to the application&#8217;s dashboard page (something like bellow one)</p>
<p><img loading="lazy" decoding="async" class="img img-responsive aligncenter wp-image-145 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-1.png?resize=809%2C459&#038;ssl=1" alt="linkedin profile api" width="809" height="459" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-1.png?w=809&amp;ssl=1 809w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-1.png?resize=300%2C170&amp;ssl=1 300w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-1.png?resize=768%2C436&amp;ssl=1 768w" sizes="(max-width: 809px) 100vw, 809px" data-recalc-dims="1" /></p>
<p>now copy the <code>Client ID</code><strong> </strong>&amp; <code>Client Secret</code><strong> </strong>credentials and store it, we will use it further.</p>
<p><strong>Step 1.4 &#8211; </strong>now you have to check (Checkbox) <code>r_emailaddress</code> option in <strong>Default Application Permissions </strong>section and update your application by clicking on the update button.</p>
<p><strong>Step 1.5 &#8211; </strong>now you have to add the <strong><label for="redirectUrls">Authorized Redirect URLs, </label></strong><label for="redirectUrls">LinkedIn uses these </label><label for="redirectUrls">URLs to send data back to you in the form of <strong>JSON Data</strong>, you can add more than one redirect URLs.</label><strong id="oauth2-redirectUrl-input-error" class="error"></strong></p>
<p><img loading="lazy" decoding="async" class="img img-responsive aligncenter wp-image-146 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-2.png?resize=459%2C117&#038;ssl=1" alt="sign in with social media" width="459" height="117" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-2.png?w=459&amp;ssl=1 459w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/get-user-profile-linkedin-u-2.png?resize=300%2C76&amp;ssl=1 300w" sizes="(max-width: 459px) 100vw, 459px" data-recalc-dims="1" /></p>
<p>&nbsp;</p>
<p><strong>Step 2: </strong>this step contains the actual functionality of API, now we are going to serve a button &#8220;<strong>Register With LinkedIn</strong>&#8221; in front of users. When users click on that button they would get redirected to the LinkedIn page, this page asks the user to approve our application, after approval our application can access user&#8217;s personal data.</p>
<p><img loading="lazy" decoding="async" class="img img-responsive aligncenter wp-image-150 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/sign-in-with-linkedin.png?resize=363%2C416&#038;ssl=1" alt="sign in with linkedin" width="363" height="416" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/sign-in-with-linkedin.png?w=363&amp;ssl=1 363w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/sign-in-with-linkedin.png?resize=262%2C300&amp;ssl=1 262w" sizes="(max-width: 363px) 100vw, 363px" data-recalc-dims="1" /></p>
<p>after clicking on &#8220;<strong>Allow&#8221;</strong> button users get redirected back to the URL mentioned in <strong>Step 1.5:</strong>, while this redirection LinkedIn sends some <strong>JSON encoded data,</strong> this data can be captured easily and can be used as anyway as you want.</p>
<p><strong>Register with LinkedIn Button</strong></p>
<pre class="language-html"><code class="language-html">
&lt;a href="https://www.linkedin.com/oauth/v2/authorization?response_type=code&amp;client_id=<span style="color: #00ff00;">{CLIENT_ID}</span>&amp;redirect_uri=<span style="color: #ff0000;">{REDIRECT_URL}</span>&amp;state=987654321&amp;scope=r_basicprofile"&gt;Register With LinkedIn&lt;/a&gt;
</code></pre>
<p>you have to modify button code as per yours.</p>
<ul>
<li>just replace <span style="color: #00ff00;">{CLIENT_ID}</span><strong> </strong>with your client_id (see <strong>Step 1.3</strong> last line)</li>
<li>and <span style="color: #ff0000;">{REDIRECT_URL}</span><strong> </strong>with redirect URL you provided (see <strong>Step 1.5</strong>)</li>
</ul>
<p><strong><span style="color: #000000;">Step 3: </span></strong><span style="color: #000000;">now its time to get the user&#8217;s data, suppose I&#8217;ve added the redirect URL as <code>http://domain.com/callback.php</code> (in <strong>Step 1.5</strong>), so <code>callback.php</code> is the file where all the JSON data would be redirected, you can grab user&#8217;s data from this file. In below line, I&#8217;m going to show how you can capture the redirected JSON Data.</span></p>
<p>code for the <code>callback.php</code> file is as follow. This is the file whose location (absolute URL of callback.php file) you have added in <strong>Step 1.5</strong></p>
<pre class="language-php"><code class="language-php">
if(isset($_GET['code'])){
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL,"https://www.linkedin.com/oauth/v2/accessToken");
	curl_setopt($ch, CURLOPT_POST, 0);
	curl_setopt($ch, CURLOPT_POSTFIELDS,"grant_type=authorization_code&amp;code=".$_GET['code']."&amp;redirect_uri={REDIRECT_URL}&amp;client_id={CLIENT_ID}&amp;client_secret={CLIENT_SECRET}");
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	$server_output = curl_exec ($ch);
	curl_close ($ch);
}

if(isset($_GET['code']) &amp;&amp; json_decode($server_output)-&gt;access_token != ''){

     $ch = curl_init();
     curl_setopt($ch, CURLOPT_URL,"https://api.linkedin.com/v1/people/~?oauth2_access_token=".json_decode($server_output)-&gt;access_token."&amp;format=json");
     curl_setopt($ch, CURLOPT_POST, 0);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
     $server_output2 = curl_exec ($ch);
     curl_close ($ch);

     $user_data = json_decode($server_output2);

     print_r($user_data);

}
</code></pre>
<p>so all the user&#8217;s data finally get stored in the <code>$user_data</code> <span style="color: #0000ff;"><span style="color: #000000;">variable. You can now store these details in a database as well.</span></span></p>
<p>If you find this tutorial helpful please don&#8217;t forget to share it with your friends because sharing is a caring!</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/post-into-facebook-page-using-php-sdk-v5.html">Post into Facebook Page using PHP SDK v5</a></li>
<li><a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Autocomplete Address Search Module Using Google API and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html">Facebook like time ago system in php</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html">Get User&#8217;s Profile With Linkedin API Using PHP</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/linkedin-api-using-php-get-users-data.html/feed</wfw:commentRss>
			<slash:comments>36</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">141</post-id>	</item>
		<item>
		<title>Multi Level Nested Category System in Codeigniter and MySql</title>
		<link>https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html</link>
					<comments>https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 13:23:26 +0000</pubDate>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=135</guid>

					<description><![CDATA[<p>Hello, today we are going to discuss on multi level category system in CodeIgniter which is a very common and essential module or feature of any e-commerce websites or any website. Creating nested category system is not as easy as you think, but it is not impossible too. Here I am going to deliver full… <a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Multi Level Nested Category System in Codeigniter and MySql</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: left;">Hello, today we are going to discuss on <strong>multi level category system in CodeIgniter</strong> which is a very common and essential module or feature of any e-commerce websites or any website.</p>
<p style="text-align: left;">Creating <strong>nested category system</strong> is not as easy as you think, but it is not impossible too. Here I am going to deliver full step by step tutorial on how you can create such kind of module using Codeigniter &amp; MySql.</p>
<h2 style="text-align: left;">How to create Multi Level Category System in Codeigniter</h2>
<p>This module is based on the <strong>recursive function</strong> concept. So let&#8217;s get started to develop <strong>multi level nested category system</strong>, carefully read below steps mentioned.</p>
<p>I am assuming that you are familiar with CodeIgniter&#8217;s MVC structure, so I&#8217;m not going to explain what model and controller in CI are.</p>
<p>1. create the database structure for <code>categories</code> table and insert all the data as shown in below image</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-136 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/database-structure-for-mult.png?resize=217%2C207" alt="multi-level-category-system" width="217" height="207" data-recalc-dims="1" /></p>
<p>SQL code for <code>categories</code> table, open SQL tab in PhpMyAdmin and run below code.</p>
<pre class="language-sql"><code class="language-sql">
CREATE TABLE `categories` (
  `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `cat_name` varchar(50) COLLATE latin1_general_ci NOT NULL,
  `parent_id` int(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`cat_id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
</code></pre>
<p>2. creating model functions</p>
<pre class="language-php"><code class="language-php">
    public function get_categories(){

        $this-&gt;db-&gt;select('*');
        $this-&gt;db-&gt;from('categories');
        $this-&gt;db-&gt;where('parent_id', 0);

        $parent = $this-&gt;db-&gt;get();
        
        $categories = $parent-&gt;result();
        $i=0;
        foreach($categories as $p_cat){

            $categories[$i]-&gt;sub = $this-&gt;sub_categories($p_cat-&gt;cat_id);
            $i++;
        }
        return $categories;
    }

    public function sub_categories($id){

        $this-&gt;db-&gt;select('*');
        $this-&gt;db-&gt;from('categories');
        $this-&gt;db-&gt;where('parent_id', $id);

        $child = $this-&gt;db-&gt;get();
        $categories = $child-&gt;result();
        $i=0;
        foreach($categories as $p_cat){

            $categories[$i]-&gt;sub = $this-&gt;sub_categories($p_cat-&gt;cat_id);
            $i++;
        }
        return $categories;       
    }
</code></pre>
<p>3. creating controller function</p>
<pre class="language-php"><code class="language-php">
    public function <span style="color: #99cc00;">categories()</span>{

        $this-&gt;load-&gt;model('model_categories');
	$data = $this-&gt;model_categories-&gt;get_categories();

	print_r($data);
    }

</code></pre>
<p>if you are done with everything right as I mentioned in this brief tutorial, then after running the controller&#8217;s &#8220;<span style="color: #99cc00;">categories()</span>&#8221; function should produce the following result-</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-138 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/multi-level-categories-ci.png?resize=441%2C645" alt="multi-level-category-system" width="441" height="645" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/multi-level-categories-ci.png?w=441&amp;ssl=1 441w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/multi-level-categories-ci.png?resize=205%2C300&amp;ssl=1 205w" sizes="(max-width: 441px) 100vw, 441px" data-recalc-dims="1" /></p>
<p>in controller &#8220;<span style="color: #99cc00;">categories()<span style="color: #000000;">&#8221; function</span> <span style="color: #000000;">the variable <code>$data</code> stores all the categories available in your categories table. As you can see <code>$data</code> is an array, you can easily parse this array into any <strong>multi level menu</strong> item or lists.</span></span></p>
<p>If you find this article helpful please don&#8217;t get shy to share this article with your friends.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/unordered-list-in-multiple-columns.html">Split Unordered List Into Multiple Columns using CSS3 Property</a></li>
<li><a href="https://www.myprogrammingtutorials.com/track-users-real-ip-address.html">Track User’s Real IP Address</a></li>
<li><a href="https://www.myprogrammingtutorials.com/resize-image-without-stretching-in-codeigniter.html">Resize Image Without Stretching in Codeigniter</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Multi Level Nested Category System in Codeigniter and MySql</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html/feed</wfw:commentRss>
			<slash:comments>79</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">135</post-id>	</item>
		<item>
		<title>Track User&#8217;s Real IP Address</title>
		<link>https://www.myprogrammingtutorials.com/track-users-real-ip-address.html</link>
					<comments>https://www.myprogrammingtutorials.com/track-users-real-ip-address.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Sun, 19 Feb 2017 03:41:09 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[useful php modules]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=127</guid>

					<description><![CDATA[<p>Hello Readers! In this article, we are about to learn how you can capture your website visitor&#8217;s Real IP Address using PHP. First of all, we need to know what actually an IP address is? Track Real IP address of website visitors using PHP Following snippet of PHP code would help you to catch the visitor&#8217;s… <a href="https://www.myprogrammingtutorials.com/track-users-real-ip-address.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/track-users-real-ip-address.html">Track User&#8217;s Real IP Address</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello Readers! In this article, we are about to learn how you can capture your website visitor&#8217;s <strong>Real IP Address</strong> using PHP. First of all, we need to know what actually an IP address is?</p>
<h2>Track Real IP address of website visitors using PHP</h2>
<p>Following snippet of <strong>PHP code</strong> would help you to catch the visitor&#8217;s real IP address even they are surfing your website through a proxy.</p>
<pre class="language-php"><code class="language-php">
if(!empty($_SERVER['HTTP_CLIENT_IP'])){
    $ip=$_SERVER['HTTP_CLIENT_IP'];
} else if(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){

    $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];

} else {

    $ip=$_SERVER['REMOTE_ADDR'];

}</code></pre>
<p>I&#8217;m sure you are willing to know everything about above snippet of codes, and what each code do? No worry I am going to explain everything about it further.</p>
<h2>What is an IP Address?</h2>
<p>IP stands for <strong>Internet Protocol</strong>. An IP is a group of numeric digits separated by dots. IP gets allotted to every machine (computer device) which is connected to computer networks which use the Internet Protocol (TCP/IP) for their communications.</p>
<p>An IP is a unique identification that almost every computing device (personal computers, smartphones, tablets etc.) have to identify themselves in an IP-based network to communicate with other computing devices.</p>
<p>In an IP network, every device must have their own and unique IP address. Similar to Home or any physical location or place which have their own physical address.</p>
<p>Tow types of IP addresses are being used today in abundance, these are <strong>IPv4</strong> and <strong>IPv6</strong>.</p>
<h3>IPv4</h3>
<p>The IPv4 is made up of 4 groups of digits, which are divided by 3 dots, each group can be between 0 &#8211; 255. For example, IP address of <strong>MPT</strong>(<a href="https://www.myprogrammingtutorials.com">www.myprogrammingtutorials.com</a>) is <strong>198.54.116.175</strong>. This is the unique identification number which is used to identify <strong>MPT Blog</strong> on the Internet.</p>
<h3>IPv6</h3>
<p>An IPv6 address format is totally different than the format of IPv4. It is made up of 4 hexadecimal digits separated by colons (&#8220;:&#8221;). It looks something like &#8220;<strong>2405:204:e201:df32:1d15:8e4a:8c61:65b</strong>&#8220;.</p>
<h2>Why it is required to track user&#8217;s IP address</h2>
<p>Tracking the IP address is a very important requirement for any applications or scripts where we store the users or visitors details. For security reason, we can store <strong>IP address</strong> of our website visitors who are doing any purchases or performing any type of online transaction. We can use the IP to find out the geographical location of the visitors. Sometimes based on the IP we can redirect the browser to different areas of the site.</p>
<p>I&#8217;m sure you have heard about <a href="http://www.analytics.google.com"><strong>Google Analytics</strong></a>. It is <strong>web analytics service</strong> provided by The Google launched in November 2005. It uses IP to track the visitors.</p>
<p>There are many positive reasons available which inspire owners to track their visitors IP, such as:</p>
<ul>
<li>Traffic analytics (to know how your website is performing in other countries)</li>
<li>user&#8217;s or visitor&#8217;s details if any security problem occurs</li>
<li>for knowing which Geolocation is performing well in the terms of getting traffic.</li>
</ul>
<p>However, Cybercrime is increasing day by day in the age of the Internet. It is highly required you to know all about your clients or visitors of your website or blog.</p>
<h3>How to get User&#8217;s IP Address</h3>
<p>Lots of <strong>IP tracker</strong> available out there. You can use <a href="http://www.google.com" target="_blank" rel="noopener">www.google.com</a> as well to find your IP address, just navigate google&#8217;s page and search for &#8220;<strong>my IP</strong>&#8221; keyword.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-129 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/my-ip.png?resize=500%2C327" alt="my-ip" width="500" height="327" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/my-ip.png?w=500&amp;ssl=1 500w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/my-ip.png?resize=300%2C196&amp;ssl=1 300w" sizes="(max-width: 500px) 100vw, 500px" data-recalc-dims="1" /></p>
<p>But in this article, we are discussing how to fetch user&#8217;s IP address programmatically. The programming language we are going to use here is PHP. PHP is a <strong>Server Side scripting language</strong> which is widely used to develop web applications.</p>
<p>However, every server-side language has their own inbuilt methods to capture an IP address. PHP uses <code>$_SERVER['REMOTE_ADDR']</code> variable to store an IP address.</p>
<p>We all know that getting the IP of the visitors is a quite simple job using PHP, even in other programming languages. But are you sure that you are getting the original IP of the user?</p>
<p>In PHP, <code>$_SERVER['REMOTE_ADDR']</code> is used to get the user&#8217;s IP. But what happens if any user which currently surfing your website from the USA via the proxy server of Germany. In this case, <code>$_SERVER[‘REMOTE_ADDR’]</code> will return IP of the Germany rather than IP of USA.</p>
<p>We can use the following environment variables to get visitor’s IP:</p>
<p>With Proxy detection, this would return the real IP address of visitors.</p>
<pre class="language-php"><code class="language-php">
$_SERVER['HTTP_X_FORWARDED_FOR'];
</code></pre>
<p>&nbsp;</p>
<p>No Proxy detection, this would return the proxy IP address.</p>
<pre class="language-php"><code class="language-php">
$_SERVER['REMOTE_ADDR'];
</code></pre>
<h3>Note:</h3>
<p>If you want to store IP address in a database, I highly recommend to store it as a string with space of at least 45 characters. Because IPv6 is taking place of IPv4, as it is a newer version. IPv6 contains a maximum length of 39 characters and IPv4-mapped IPv6 address contains a maximum length of 45 characters.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/get-users-latitude-and-longitude.html">Get User’s Accurate Latitude and Longitude using Google’s APIs and PHP</a></li>
<li><a href="https://www.myprogrammingtutorials.com/autocomplete-address-search-module-google-api-php.html">Autocomplete Address Search Module Using Google API and PHP</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/track-users-real-ip-address.html">Track User&#8217;s Real IP Address</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/track-users-real-ip-address.html/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">127</post-id>	</item>
		<item>
		<title>Split Unordered List Into Multiple Columns using CSS3 Columns Property</title>
		<link>https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html</link>
					<comments>https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html#comments</comments>
		
		<dc:creator><![CDATA[Paritosh Pandey]]></dc:creator>
		<pubDate>Wed, 08 Feb 2017 12:54:19 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[awesome css tricks]]></category>
		<guid isPermaLink="false">http://www.myprogrammingtutorials.com/?p=111</guid>

					<description><![CDATA[<p>In this article, we are going to learn how to split the unordered list into multiple columns using pure CSS3 Property column-count. What is CSS3 &#8220;column-count&#8221;? column-count is a CSS3 property, it is used to split list elements into multiple columns and to develop a multi-column and single column layout as well. It is supported by almost… <a href="https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html">Read More &#187;</a></p>
<p>The post <a href="https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html">Split Unordered List Into Multiple Columns using CSS3 Columns Property</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this article, we are going to learn how to split the <strong>unordered list into multiple columns </strong>using pure CSS3 Property <code>column-count</code>.</p>
<h2>What is CSS3 &#8220;column-count&#8221;?</h2>
<p><strong>column-count</strong> is a CSS3 property, it is used to <strong>split list elements into multiple columns </strong>and to develop a multi-column and single column layout as well. It is supported by almost all latest Browsers.</p>
<p>However, every CSS3 Property uses some predefined prefix for individual browsers, some of them are mentioned below.</p>
<p><strong><code>-moz-</code></strong> Prefix is used for Mozilla Firefox, so the final code would be <strong><code>-moz-column-count</code></strong></p>
<p><strong><code>-o-</code></strong> is used for Opera, so the final code would be <strong><code>-o-column-count</code></strong></p>
<p><strong> <code>-webkit-</code></strong> is used for Safari, so the final code would be <strong><code>-webkit-column-count</code></strong></p>
<p>Chrome doesn&#8217;t need any prefix, so you can use directly as <strong><code>column-count</code></strong></p>
<h2>Why use column-count?</h2>
<p><strong><code>column-count</code></strong> is a very useful property provided by CSS3. It reduces lots of efforts while designing a web page. If you are a Web Designer then this code would help you while creating multi-column blocks with fewer CSS codes.</p>
<p>As you all know that huge amounts of CSS codes increase the load time, which is definitely not good for any website. It increases the size of a website. According to Google, a web page should have its size less than 500KB, it helps Google Crawler to crawl your website faster.</p>
<p>Load Time is one of the major factors for Google Ranking. If you want your website to rank well in Google Search then you must keep your website&#8217;s load time as minimum as you can.</p>
<p>Google always says that &#8220;<strong>you take care of my visitors then I&#8217;ll take care of your&#8217;s</strong>&#8220;, Google is very strict about his visitors. Google wouldn&#8217;t rank you better if your website doesn&#8217;t have a good user experience.</p>
<p>It is always a good idea to keep your website&#8217;s load time minimum. It gives the user a good experience to navigate through your website.</p>
<p>suppose, when you have a lot of lists to show on a single page then it is always good to split that list into multiple columns. It increases the professionalism and look and feel as well.</p>
<h3>Ordered &amp; Unordered Lists</h3>
<p><strong>Ordered List</strong> (<code>&lt;ol&gt;</code>) is an HTML element, which is used to generate an ordered list in a web page. By default, this element displays a simple conventional vertical list, which looks something like below.</p>
<ol>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
<li>List item 4</li>
</ol>
<p>as you can see above list, it is displaying digits to order their lists. However, you can change its order type by using the <code>type</code> Attribute, here is a <a href="https://www.w3schools.com/html/html_lists.asp">full demonstration</a> to do so.</p>
<p><strong>Unordered List</strong> (<code>&lt;ul&gt;</code>) is also an HTML element, which is used to generate bullet lists. By default, it displays a verticle list with no order, that&#8217;s why it is called unordered list, below is a conventional look of the unordered list element.</p>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
<li>List Item 4</li>
</ul>
<h3>Can we style our List elements with multi-column CSS property?</h3>
<p>The answer is Yes!, we can style List elements with the CSS3 <code>column-count</code> property. However, we can apply this property to any <strong>block level elements.</strong></p>
<p>You can use this property for media queries also to set the width of the column automatically. Suppose you need to control <code>column-count</code> depending on the website with you can use media queries here.</p>
<p>In our future post, we definitely talk about how to use this property to other elements, in this post, I am going to focus on List elements only.</p>
<p>Below is an unordered list (<code>&lt;ul&gt;</code>) demonstrated in 4 lines, as you can see lists are arranged in 4 columns, not in their conventional long vertical look.</p>
<p><img loading="lazy" decoding="async" class="aligncenter wp-image-113 size-full" src="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/css3-multi-column.png?resize=438%2C154&#038;ssl=1" alt="css3 multi column" width="438" height="154" srcset="https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/css3-multi-column.png?w=438&amp;ssl=1 438w, https://i0.wp.com/www.myprogrammingtutorials.com/wp-content/uploads/2017/02/css3-multi-column.png?resize=300%2C105&amp;ssl=1 300w" sizes="(max-width: 438px) 100vw, 438px" data-recalc-dims="1" /></p>
<p>As you can see above, lists are divided into 4 cols, you can make cols as much as you want. You just have to increase the property value. For above list, I have used <code>column-count:4;</code></p>
<p>If you want your list to be divided into 6 cols then your code should be,<code>column-count:6;</code> don&#8217;t forget to add the browser-specific prefix if you want your web page supports all browsers.</p>
<h3>How to make the unordered list into multiple columns?</h3>
<p>As you know CSS can be applied using 3 Methods which are Internal, External &amp; Inline CSS. You can apply this code to any of three methods.</p>
<p>But I strongly recommend you to use External CSS Method only. When it comes to <strong>On-Site Optimization</strong> it would be good to separate all your CSS &amp; HTML codes.</p>
<p>Following is a combined code you should go with. You can use this snippet as your External CSS or Internal CSS as well.</p>
<pre class="language-css"><code class="language-css">
li{
 -webkit-column-count: 4;
 -moz-column-count: 4;
 -o-column-count: 4;
  column-count: 4; 
} </code></pre>
<p id="article-header-id-1" class="has-header-link"><strong>Related Properties</strong></p>
<ul>
<li>columns</li>
<li>column-fill</li>
<li>column-gap</li>
<li>column-rule</li>
<li>column-span</li>
<li>column-width</li>
</ul>
<h4>Conclusion</h4>
<p>A Huge amount of codes is not good enough to provide the user a good experience, there is always a simple way to do so. So keep your codes as simple and minimum as you can.</p>
<blockquote>
<h3>You may also like</h3>
<ul>
<li><a href="https://www.myprogrammingtutorials.com/close-hide-div-when-clicking-outside.html">Close or Hide DIV when clicking outside</a></li>
<li><a href="https://www.myprogrammingtutorials.com/multi-level-nested-category-system-codeigniter-mysql.html">Multi Level Nested Category System in Codeigniter and MySql</a></li>
<li><a href="https://www.myprogrammingtutorials.com/facebook-like-time-ago-system-in-php.html">Facebook like time ago system in php</a></li>
</ul>
</blockquote>
<p>The post <a href="https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html">Split Unordered List Into Multiple Columns using CSS3 Columns Property</a> appeared first on <a href="https://www.myprogrammingtutorials.com">My Programming Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.myprogrammingtutorials.com/unordered-list-into-multiple-columns.html/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">111</post-id>	</item>
	</channel>
</rss>
