Category: Backend Development
This PHP login script example is a very simple login system which you can use as a base for your future projects. You should note that it needs to be secured before using on a live system. Some things to do before using it: md5 the password and compare against a md5 encrypted version of […]
Sometimes you may want to hide the contents of a page (e.g. admin page) in a very simple manner. The best and simplest method is to use the PHP’s built in HTTP authentication. It’s both secure and compatible with 99% of your visitor’s browsers.
A lot of people (including me) experience problem accessing a cookie immediately after setting it. The thing is that you can’t access a cookie inside the same request that is used to set it.
Using PHP is great for dynamic website. However, more dynamic means more resource hungry. Here is a short list of tips you should follow to avoid putting the PHP interpreter in difficulty.
Often your MySQL database is so large that if you want to find and replace a given entry, it will take days. This is when this simple snippet comes handy: