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

<channel>
	<title>php &#8211; Slaviša Petković</title>
	<atom:link href="https://www.slavisapetkovic.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.slavisapetkovic.com</link>
	<description>Full Stack Developer</description>
	<lastBuildDate>Fri, 06 May 2022 07:10:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.11</generator>

<image>
	<url>https://www.slavisapetkovic.com/wp-content/uploads/2017/04/slavisa-petkovic-logo-circle-mono-black.png</url>
	<title>php &#8211; Slaviša Petković</title>
	<link>https://www.slavisapetkovic.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP or Java — which language is right for your software project?</title>
		<link>https://www.slavisapetkovic.com/development/php-java-language-right-software-project/</link>
		
		<dc:creator><![CDATA[slavisap]]></dc:creator>
		<pubDate>Mon, 16 Oct 2017 12:32:56 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[backend]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.slavisapetkovic.com/?p=438</guid>

					<description><![CDATA[<p>The difference between Java and PHP is not only its approach to a type system, there are major discrepancies in approaches to concurrency, reliability and more. Saying that one language is better than the other is never a good idea, it’s all about what kind of problems they solve. Both Java and PHP have their [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/php-java-language-right-software-project/">PHP or Java — which language is right for your software project?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The difference between Java and PHP is not only its approach to a type system, there are major discrepancies in approaches to concurrency, reliability and more. Saying that one language is better than the other is never a good idea, it’s all about what kind of problems they solve. Both Java and PHP have their place in IT and it doesn’t look like it’s going to change anytime soon.</p>
<p>PHP is one of the most mature, ubiquitous server-side scripts on the web. Java is a general-purpose, compiled programming language designed with one mantra in mind—”write once, run anywhere.” Both power dynamic web applications and sites, with their own strengths and nuances.</p>
<p>Once you choose a language for your software project, it can be pretty difficult to change gears unless you perform a major overhaul down the line. That’s why choosing the right language up front is imperative to building a scalable, successful site that accomplishes your business goals.</p>
<p>You’ve probably done a little research into the right language, but it can be difficult for someone without software development expertise to determine which one is right. Here’s a look at two of the most popular programming languages, Java and PHP. A software developer can help you best decide between the two based on your project, but here are some basics to help you make the right decision.</p>
<h3>What is Java?</h3>
<p>Java was designed as a general purpose programming language for building standalone applications. When Java was released by Sun in 1991, it was initially being used to program consumer electronics like VCRs. Java is a compiled language, so when you compile code it’s turned to intermediate binary for the specific operating system running your software. Its applications are compiled into bytecode that can run on implementations of the Java Virtual Machine (JVM). The JVM helps bridge the gap between source code and the 1s and 0s that the computer understands. Any machine that has the JVM installed can run Java. In development, Java is primarily a server-side language for the web, and the programming language of choice for mobile development on the Android platform. It also still has a decent presence on the front-end as a Java applet, although this is falling out of favor due to security concerns.</p>
<h3>What is PHP?</h3>
<p>PHP (Hypertext Preprocessor) is a general purpose scripting language that quickly became the de facto server-side language of choice for&nbsp;<a href="https://www.toptal.com/php#hiring-guide" target="_blank" rel="noopener noreferrer">web developers</a>&nbsp;after its initial release in 1995.&nbsp;It’s got an advantage in that it was designed and created for the web, versus languages that were adapted to the web (like Ruby or Python). Today, a majority of websites run on PHP, and PHP programmers are still in high demand thanks to its role as the foundation for content management systems (CMS) like WordPress, Drupal, and Joomla and a number of modern frameworks like Laravel, Symfony, and CakePHP that have accelerated development with this mature language.</p>
<h3 class="accordion_title">PHP and Java Differences</h3><div class="accordion" rel=""><div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Compiled vs. Interpreted</span></a><div class="accordion-inner">Java is considered a compiled programming language. This allows it to run on any operating system regardless of where it was written. The difference is in the implementation: Java is compiled into bytecode and run on a virtual machine. PHP is what you call an interpreted language, or “script”—the code can be run as-is in their respective runtime environments (i.e., the server). While there’s a lot of nuance to the compiled vs. interpreted debate, it is generally true that scripts are much easier to use and favor programmer productivity.</div></div><div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Memory safe</span></a><div class="accordion-inner">Java is a memory-safe language, which means if you attempt to assign values outside of the given array parameters, the programmer receives an error.</div></div><div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Static vs. Dynamic Type Checking</span></a><div class="accordion-inner">Java uses static type checking, where the type of a variable is checked at compile-time. The programmer must specify the type (integer, double, string, etc.) of any variable they create. There are many pros and cons for these two paradigms, but the primary advantage of static type checking is that type errors are caught early in development, and because the compiler knows exactly what data types are being used, code typically executes faster or uses less memory. The primary advantage of dynamic type checking is programmer productivity—you are free to assign types at your leisure.</div></div><div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Concurrency</span></a><div class="accordion-inner">This is the language’s ability to handle the execution of several instruction sequences at the same time. Java makes use of multiple threads to perform tasks in parallel. PHP, like most server-side languages, uses multi-threaded, blocking I/O to carry out multiple tasks in parallel. For most use-cases, both methods work just fine, but Java is generally faster because thread to thread memory sharing much faster than interprocess communication (IPC). PHP has been around the block for a while though, and has found its own way to achieve asynchronous processing—most notably through the HHVM project released by Facebook.</div></div><div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Class-Based vs. Prototype Based</span></a><div class="accordion-inner">Java follows class based inheritance—a top down, hierarchical, class-based relationship whereby properties are defined in a class and inherited by an instance of that class (one of its members).</div></div></div>
<h3 class="accordion_title">PHP vs. Java: Major Similarities</h3><div class="accordion" rel="">
<div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Back-End Development</span></a><div class="accordion-inner">Both languages are used on the server-side. Java has long been used to power back-end technologies like Apache, JBoss, and WebSphere.</div></div>
<div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Syntax</span></a><div class="accordion-inner">Looping structures, classes, defining variables, and conditional operators are very similar in both languages. This makes it easy for developers to work cross-platform should you have several projects that use both languages.</div></div>
<div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Entry points</span></a><div class="accordion-inner">When your program starts, the compiler or interpreter looks for where it needs to begin execution.</div></div>
<div class="accordion-item"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><span>Object-Oriented Programming (OOP)</span></a><div class="accordion-inner">Neither language is “fully” object-oriented, but both languages have access to techniques like inheritance, encapsulation, and polymorphism. The benefit? Object-oriented languages make your program much more modular so you can reuse code for other programs.</div></div>
</div>
<h3>SHOULD I USE PHP OR JAVA FOR MY NEXT PROJECT?</h3>
<p>As with all languages, the choice really boils down to what you’re trying to build and what resources you have at your disposal.</p>
<p><strong>You should consider Java if your project involves…</strong></p>
<ul>
<li>Android Apps</li>
<li>Enterprise Software</li>
<li>Scientific Computing</li>
<li>Big Data Analytics</li>
<li>General Purpose Programming of Hardware</li>
<li>Server-Side Technologies like Apache, JBoss, Geronimo, GlassFish, etc.</li>
</ul>
<p><strong>You should consider PHP if your project involves…</strong></p>
<ul>
<li>Software stacks like the LAMP stack (Linux, Apache, MySQL, PHP)</li>
<li>CMS’s like WordPress, Drupal, or Joomla etc.</li>
<li>Servers like MySQL, SQL, MariaDB, Oracle, Sybase, and Postgresql etc.</li>
</ul>
<p>Both Java and PHP are excellent foundations for a wide variety of software. Which language you choose to use will be determined by what you want developed.</p>
<p>You can manipulate hardware with Java, but it’s not a common language for low-level programming since it’s a “safer” language. Because Java won’t allow you to perform certain functions to protect the PC, it’s preferred for higher level applications.</p>
<p>The best way to make a firm decision is to post your project and ask developers for their opinions. They can tell you which language is right for your project to help guide you to the right solution.</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/php-java-language-right-software-project/">PHP or Java — which language is right for your software project?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>HTML, CSS. What next?</title>
		<link>https://www.slavisapetkovic.com/development/html-css-next/</link>
		
		<dc:creator><![CDATA[slavisap]]></dc:creator>
		<pubDate>Wed, 19 Apr 2017 21:55:43 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.slavisapetkovic.com/?p=396</guid>

					<description><![CDATA[<p>Javascript is a useful place to start to start if you&#8217;ve just finished covering HTML and CSS. When designing websites HTML is used to mark up content, CSS for the styling and then Javascript is used to add interactivity and functionality to a webpage. Worth having a think about what type of projects you are [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/html-css-next/">HTML, CSS. What next?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Javascript is a useful place to start to start if you&#8217;ve just finished covering HTML and CSS. When designing websites HTML is used to mark up content, CSS for the styling and then Javascript is used to add interactivity and functionality to a webpage.</p>
<p>Worth having a think about what type of projects you are interested in and then doing some research into what technologies they use. If you&#8217;re keen on developing web based applications, worth checking the courses on PHP and Ruby.</p>
<p>JavaScript is essentially a &#8216;front end&#8217; or &#8216;client side&#8217; language. Your browser executes the JavaScript in your webpages on your computer. It can be used to modify HTML and styles on the fly, and also uses a method called AJAX to send and receive data from the server. It makes web pages more engaging, easier to use, and overall can vastly increase the end user experience. Due to fairly recent developments, JavaScript can now also be used as a back end or server side language.</p>
<p>Python, Ruby &amp; PHP are all languages that run on the server. The server processes the code and sends the web pages to your browser, compare this to JavaScript, where the code is sent to your browser, and that code produces or modifies the HTML within your browser itself.</p>
<p>There are &#8216;code snobs&#8217; who will tell you not to touch PHP, and they have their reasons. It is a relatively easy language to learn, but enables you (encourages you) to write some really horrendous code and use bad practices. For someone who doesn&#8217;t know any programming though, writing something very badly that works (because it&#8217;s easier to do it badly) will give you a far better start and easier leaning curve than languages that don&#8217;t allow that and force a much steeper learning curve or barrier to entry.</p>
<p>Having not used Python or Ruby, I can&#8217;t recommend which of the three you mention would be best for a beginner, I&#8217;d simply say don&#8217;t rule out PHP based upon what some other people may tell you.</p>
<p>So JavaScript, or one of the other three? You don&#8217;t need to install any software or have access to a webserver to start writing JavaScript that works, this is a big plus. You can&#8217;t do this with any of the other languages. However, JavaScript is focussed on an object oriented paradigm. You won&#8217;t know what this means at the moment, but it is essential to understand if you want to write effective software in JavaScript. The other three languages also support object oriented programming, but do not enforce it. Why is this important? In computer software, object oriented programming is a relatively new concept. Before this, we all used a paradigm called procedural programming. You don&#8217;t need to know what this means at the moment, but I would say that it is far easier to learn how to write software by using procedural programming techniques, and then later progressing to object oriented techniques (or some combination of both). This will be easier to achieve with the latter three languages than JavaScript.</p>
<p>So my recommendation would be PHP, even with the headache of having to install some local software, or having access to a web server. To build great webpages you will need to know JavaScript at some point, I just wouldn&#8217;t recommend it as a starting point. I consider it quite a difficult language to learn compared to PHP.</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/html-css-next/">HTML, CSS. What next?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>What is Laravel framework?</title>
		<link>https://www.slavisapetkovic.com/development/laravel/</link>
		
		<dc:creator><![CDATA[slavisap]]></dc:creator>
		<pubDate>Sun, 02 Apr 2017 10:49:11 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.slavisapetkovic.com/?p=302</guid>

					<description><![CDATA[<p>Laravel Framework is for me the best framework to build any kind of web app with PHP. It has a great community, a really cool and the best videotutorials out there laracasts.com by Jeffrey Way (he is a superhero). Comes with a lot of resources out of the box, it has a cool router, eloquent for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/laravel/">What is Laravel framework?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Laravel Framework is for me the best framework to build any kind of web app with PHP. It has a great community, a really cool and the best videotutorials out there <span class="qlink_container"><a class="external_link" href="http://laracasts.com/" target="_blank" rel="nofollow noopener noreferrer" data-qt-tooltip="laracasts.com">laracasts.com</a></span> by Jeffrey Way (he is a superhero). Comes with a lot of resources out of the box, it has a cool router, eloquent for model repositories, swiftmailer for the mailing, blade engine for your templates, a system to create your migrations (think about it as a way of creating your database tables inside your PHP code, which is nice), a cache component to cache everything you want, a monolog logger, etc&#8230;</p>
<h3>Some of the features are:</h3>
<ul>
<li>modular packaging system with a dedicated dependency manager</li>
<li>different ways for accessing relational databases though Routing</li>
<li>utilities that aid in application deployment and maintenance</li>
<li>orientation toward syntactic sugar</li>
<li>easy authentication by providing a simple &amp; easy to use interface and many more.</li>
</ul>
<h3 class="qtext_para">Server Requirements</h3>
<p class="qtext_para">This framework has a few system requirements. It&#8217;s highly recommended that you use Homestead as your local Laravel development environment. However, if you are not using Homestead, you will need to make sure your server meets the following requirements:</p>
<ul>
<li>PHP &gt;= 5.5.9</li>
<li>OpenSSL PHP Extension</li>
<li>PDO PHP Extension</li>
<li>Mbstring PHP Extension</li>
<li>Tokenizer PHP Extension</li>
</ul>
<h3>Installing Laravel</h3>
<p>Laravel utilizes Composer to manage its dependencies. So make sure you have Composer installed on your machine. The best thing about Laravel is that it is a high quality framework, so learning how to use it you become a better programmer in PHP in general. I recommend you to give it a try and you will never regret it.</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/laravel/">What is Laravel framework?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PHP?</title>
		<link>https://www.slavisapetkovic.com/development/php/</link>
		
		<dc:creator><![CDATA[slavisap]]></dc:creator>
		<pubDate>Sat, 01 Apr 2017 10:26:13 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://flatsome.dev/?p=1</guid>

					<description><![CDATA[<p>The PHP programming language is a server-side HTML embedded scripting language. Let‘s depict the sentence. The PHP language runs on the server-side. This means that the execution (read starting) of the scripts are done on the server where the web-site is hosted. HTML embedded means that you can use programming statements (read a piece of PHP [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/php/">PHP?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<script type="text/javascript" id="remixd-audio-player-script" src="https://tags.remixd.com/player/v5/index.js" charset="utf-8" async=""></script>

  <script>
    if (!window._rmxd) {
      window._rmxd = {};
    };
    window._rmxd.theme = 'dark';
    window._rmxd.gamTargeting = {'interests': 'music', 'city': 'dallas', 'gender': 'male'};
  </script>


<p>The PHP programming language is a server-side HTML embedded scripting language. Let‘s depict the sentence. The PHP language runs on the server-side. This means that the execution (read starting) of the scripts are done on the server where the web-site is hosted. HTML embedded means that you can use programming statements (read a piece of PHP code) from within an HTML code. PHP files are returned to the browser as plain HTML. The last piece of the sentence – scripting language – is a little harder to explain, but we will give it a go. A scripting language is a form of programming language that is usually interpreted rather than compiled. In programming languages such C or C++ you compile the program (permanently) into an executable file, before you can execute the program. A program that is written in a scripting language, is interpreted one command at a time by a command interpreter (Command interpreter is in most cases an executable written in another language (for instance C/C++) than the scripting language.) Some other examples of scripting languages are Perl, Phyton, Java and Ruby.</p>
<blockquote>
<p>A last note: scripting languages are also often used by applications as control or configure language. An example: Firefox is written in C/C++ and can be controlled with JavaScript.</p>
</blockquote>
<h3>Things You Should Know</h3>
<p>Because this is an HTML embedded language you should have a basic understanding of HTML/XHTML and (a little) JavaScript.</p>
<h3>What is PHP?</h3>
<ul>
<li>Hypertext Preprocessor.</li>
<li>As we said before it is a server-side scripting language.</li>
<li>free and is an open source software product.</li>
<li>Scripts are executed on the server.</li>
<li>Supports many databases (MySQL, Sybase, Oracle and many others.)</li>
<li>Runs on different platforms (Unix, Linux, Windows.)</li>
<li>Compatible with almost all web-servers used today (Apache, IIS, etc.)</li>
<li>Contain plain text, HTML tags and scripts</li>
<li>Files can have one of the following extensions: php, php3 or phtml.</li>
</ul>
<h3>What do you need?</h3>
<p>Before you can follow the coming PHP tutorials you need to have the following:</p>
<ul>
<li>Access to a web server (like Apache)</li>
<li>PHP and MySQL should be installed on the web server.</li>
</ul>
<p>The easiest way is to find a cheap web hosting plan that support PHP and MySQL (most of the web-hosting providers do.) For a couple of bucks a month you can get a virtual host. The advantage is that everything is already installed and that you can share your program (that you are going to write) with the rest of the world. If you don’t want to spend money, you can also install everything on your local machine. The easiest way is to install WAMP if you have a Windows machine and LAMP if you have a Linux machine. (WAMP = Windows Apache MySQL PHP and LAMP = Linux Apache MySQL PHP.) These packages install everything you need. Read the install manual of these packages for instructions. After installation you should have access to http://localhost in your browser.</p>
<h3>Literature</h3>
<p>PHP.NET: A good place to start is by skimming through the ever-growing list of <a href="http://php.net/FAQ.php" target="_blank" rel="noopener noreferrer">frequently asked questions (with answers, of course)</a>. Then have a look at the rest of the online manual and other resources in the <a href="http://php.net/docs.php" target="_blank" rel="noopener noreferrer">documentation</a> section.</p><p>The post <a rel="nofollow" href="https://www.slavisapetkovic.com/development/php/">PHP?</a> appeared first on <a rel="nofollow" href="https://www.slavisapetkovic.com">Slaviša Petković</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/


Served from: www.slavisapetkovic.com @ 2026-05-18 09:13:24 by W3 Total Cache
-->