MongoDB for PHP Developers – A Beginner’s Guide

Introduction If you want to create a website using MongoDB and PHP, this article will help you to: Connect to a MongoDB database Save documents in a collection Query documents in a collection Perform range queries Sort documents, update a document, delete one or more documents from a collection What…

Read More

Angular 2 reached beta status – Angular 2 bends with the beta release slowly but surely an on the home straight

The team behind the JavaScript framework Angular 2 has reached a major milestone. With the release of the first beta of Angular 2 Google flexes now a on the home stretch and presented at the same time some large projects that have been already migrated internally to Angular 2. Nearly…

Read More

Clear Name Required: Facebook tool checks Fake profiles and pseudonyms

Who has good reasons, may keep his false name on Facebook. Thus especially the access for minorities and political persecution is to be saved. For this, however, intimate information must be provided. Fake profile to be easily exposed by the test method. The security measures grow so fair cooperation is…

Read More

Embed Photo Sphere in website

I have written in my blog ever thought about the possibility to include 360 ​​° images with JavaScript in a web site. At that time the whole thing was based on the Web viewer by Joe Simpson. Meanwhile, Google has published its own method. For this purpose, Google has published…

Read More

Force HTTPS connection on your website using .htaccess to get better rank on Google

After Google has the encrypted SSL / TLS connection via HTTPS declared ranking factor, make more and more website operators to access an encrypted connection. When HTTPS is enabled, all requests over the encrypted connection should be sent off then. For a simple entry ranges in the .htaccess configuration file:…

Read More

Codeigniter : Adding Header and Footer automatically

A developer don’t really enjoy writing same line of code again and again. In Codeigniter we normally load same view templates in every controllers. e.g. $this->load->view(‘templates/header’); $this->load->view(‘body’); $this->load->view(‘templates/footer’); But it is possible to add templates header and footer automatically whenever we load any view to controller. For this we needs…

Read More

PHP’s references slows web applications

What sounds for many first totally wrong but seems to be true. I myself have to this day variables, where ever large arrays stored for floating passed as if I knew that the content is not altered. Just out of the idea that one thereby saving memory and can optimize…

Read More

Use Facebook Places under Firefox (without phone)

Almost by chance, I have just found out that you indeed can use without a GPS mobile Facebook Places to tell his friends, where you are just. Many are still skeptical about this feature and fear for their privacy – not entirely wrong, because by default allows Facebook that people…

Read More

Methods of Fetching contents of a URL in PHP

If you want to retrieve the contents of a URL. For example, you want to include part of one site in another site’s content. PHP provides function file_get_contents() to get the contents through GET method from URL. $page = file_get_contents(‘http://www.example.com/robots.txt’); Or you can use the cURL extension: $c = curl_init(‘http://www.example.com/robots.txt’);…

Read More

What are Streams and how it works in PHP Programming ?

Streams are the way that PHP handles access to and from files and network services. Whenever you use file wrappers – whenever you are accessing a file – PHP automatically creates a stream for you in the background. Streams are made up from a number of smaller components. Each stream…

Read More

What are File wrappers and how it works in PHP Programming ?

File wrappers are pieces of code that PHP uses to read from and write to different types of files. They are part of PHP’s Streams architecture. File wrappers allow you to use PHP’s built-in filesystem functions on things that aren’t normal files. When your PHP script needs to work with…

Read More

“Click to Run” your PHP script in linux

On most Linux systems, specifically those that support the freedesktop.org “Desktop Entry Specification” standard, you can create a clickable “launcher” icon by simply creating a text file. Most main-stream Linux distributions and their window managers follow at least the basics of this standard. To create a launcher for your PHP…

Read More

Profiling Codeigniter website to get database queries count and optimize website speed

Clients often complains that their website speed is slow. One of the most common reason was a large number of database queries that get executed for every single page, sometimes more than thousand queries for a single page. In this article, I will explain how to figure out whether the…

Read More

How to modify author base from URL in WordPress blog

Post authors in WordPress blog have a URL like http://example.com/author/authorname, where all their articles are listed. And many of us who think it doesn’t look good to have ‘author’ as author_base and want to change that URL format. The author_base of URL can be change by using some rewrite rules…

Read More