Showing posts with label code. Show all posts
Showing posts with label code. Show all posts

array of all world countries with country codes and full names


How to use template engine in Symfony 2?

Symfony 2 comes bundled with Twig template engine, so you definitely want to use it. Twig template engine has everything what you need to keep your business logic out of templates and stay on MVC pattern, which is used in Symfony 2. The best thing about Twig template engine is that in many cases it is even faster than raw PHP, because finally it renders to raw and optimised PHP code.







How to join 2 SQL tables with PHP? Examples and visualisations


Often you need to join data from 2 tables. You can do it with several SQL queries and PHP, or just use JOIN functions. The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables. Most popular joins are INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN. It's always good to know the different.








How to hide post footer in blogger all posts or archive view?

In Blogger's configuration you can choose what to show in the footer of your posts, but there are only global footer options for all views of your posts - view of one post, view of all posts list or archive. To hide blogger's post footer in all posts view and in archive view, use this JavaScript custom code. It is fast and super lightweight:






How to add custom HTML/JavaScript to Blogger blog?

No matter what you need - add your custom adsense or analytics code or make some new feature, if you need to add your custom HTML/JavaScript code it is easy to do without changing your blog's theme. Follow these steps:







How to start with git versioning?

Git versioning is technique to make versions of your code. It's great for backuping and managing bugs in code. There are some popular sites which gives you ability to start versioning easy. Some of them are free only for public project, some are free for both public and private projects. Most of them are doing pretty same task - enabling you to versionise your precious code.






What is the different between HTML CSS PHP and JavaScript?

What is the different between HTML CSS PHP and JavaScript?
That's a good question. It's very important to understand this different before starting to develop any website. So let's dive in:

HTML - it's like bones for your site. It says what to display on the user's browser: Tables, titles, paragraphs, lists, links etc. It is client-side language which is understood by browsers like Google Chrome, FireFox, Safari.





How to make PHP unrar and unzip recursively folder with files?

Simple task - unzip zip archive and unrar rar archive. With zip it's all easy, just some basic PHP default ZipArchive class and you have it, but with rar - why to make things more complicated?