Below is a sample string that has been gathered from a normal user and a bad user trying to use SQL Injection. We asked the users for their login, which will be used to run a SELECT statement to get their information. …
Historically, password security in PHP has been a bit slippery, requiring a measures of knowledge and care. Aiming to changes that, PHP 5.5 introduces a special password_hash() function which makes password security much easier to apply, and with features such as automatic …
This tutorial help to encrypt and decrypt strings using cryptojs and php. Cryptojs is very popular library which is used to convert strings into encrypted text and vise versa. I am using Angularjs/javascript Cryptojs libraries for encryption data. You can encrypt and …
PHP explode() and implode() can be used to split strings into array or join the array elements as strings. In the array function methods, you create an array in the scheme of: $foo = bars() For example, to set up the array …
Posting pictures on Facebook works similar as Posting to Facebook Page Wall, you can post not just photo, but questions, status, notes etc in a similar way. In this tutorial we will upload picture and directly post to user profile page using …
You probably know how to send email with PHP, it’s gets bit tricky when you want to send an attachment with PHP emails. So, today let’s find-out how we can send email with an attachment using PHP mail. Create a HTML form …
Do Not Write Wasteful Code Code quality is very important for any project.In PHP 7 don’t waste your time by writing wasteful code. it will become increasingly important because the speed increase in PHP 7 may hide some of your issue. Don’t …
A simple Google Search will land you with hundreds of programming languages in existence, DO the search of the most popular programming languages you will come up with a confusing list, Hence we have done the work to see what is the …
In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software. A software framework is a universal, reusable software environment that provides particular functionality as part …
One of the applications of PHP is processing the data provided by the users in (X)HTML forms. PHP provides two implicit arrays $_GET and $_POSTwhich are global variables and are accessible anywhere in a PHP script. The array $_GET is used when …