SPA in PHP Using Master Page Concept

My students learning PHP ask me to show how to make a single page web application (SPA) in PHP using master page concept. In this tutorial I am going to show you how to do it as simple as possible. If you want to have HEADER,FOOTER ,LEFT & RIGHT, panel same of more then one […]

read more

Install Memcache on XAMPP (Windows 7/8/10)

Here are the steps that should be followed when you install memcache. start your xampp. click on ‘config’ and open php.ini file. search for ;extension=php_memcache.dll If not found add extension=php_memcache.dll [Memcache] memcache.allow_failover = 1 memcache.max_failover_attempts=20 memcache.chunk_size =8192 memcache.default_port = 11211 3. download the file php_memecache.dll from windows.php.net (make sure to check your php version and […]

read more

Easy Crud using Laravel

Easy Crud using Laravel

Creating, reading, updating, and deleting resources is used in pretty much every application. Laravel helps make the process easy using resource controllers. Resource Controllers can make life much easier and takes advantage of some cool Laravel routing techniques. Today, we’ll go through the steps necessary to get a fully functioning CRUD. We will use CRUD generator […]

read more

SOAP vs REST Differences

Unfortunately, there are a lot of misinformation and misconceptions around REST. SOAP and REST can’t be compared directly, since the first is a protocol (or at least tries to be) and the second is an architectural style. This is probably one of the sources of confusion around it, since people tend to call REST any […]

read more

Encrypt and Decrypt md5 using PHP

You cannot decrypt MD5 without attempting something like brute force hacking which is extremely resource intensive, not practical, and unethical. However you could use something like this to encrypt / decrypt passwords/etc safely:   Using a encypted method with a salt would be even safer, but this would be a good next step past just […]

read more

Password Hashing in PHP

Most modern PHP applications access important user information and store them in a database. For example, web app might have a registration system for new users. But how should you store usernames and passwords in the database? You must always think about security. If passwords are stored in plain text, what happens if an attacker […]

read more

PHP Multiple Inheritance with Interfaces

PHP doesn’t have multiple inheritance. If you have PHP 5.4, though, you can use traits to at least avoid every class having to copy code. Note, though, you have to both implement the interface and use the trait (or, of course, provide your own implementation). And C and D are not related at all, except […]

read more

Namespacing in PHP

In PHP adaptation 5.3 another element known as namespacing was added to the language. Numerous present day language as of now had this component for quite a while, yet PHP was somewhat late to the scene. None the less, every new component has a reason for existing, how about we discover why PHP namespaces can […]

read more

PHP interview questions and answers

Comprehensive, community-driven list of essential PHP interview questions. Whether you are a candidate or interviewer, these interview questions will help prepare you for your next PHP interview ahead of time. What is PHP?PHP is a server side scripting language commonly used for web applications. PHP has many frameworks and cms for creating websites.Even a non […]

read more

How to configure XAMPP to send mail from localhost

You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost. for example you can configure C:\xampp\php\php.ini and c:\xampp\sendmail\sendmail.ini for gmail to send mail. in C:\xampp\php\php.ini find extension=php_openssl.dll and remove the semicolon from the beginning of […]

read more