Not Just A Random Blog archive
Tag: php

07/06/2011

Password Hashing in Databases

by Cyle
Categories: php
Tags: , , ,
Comments: 1 Comment

Password hashing is vitally important to websites that have usernames, emails, and passwords saved in databases. Since most people use the same password for everything, once the password is obtained a hacker could get access to much more than what is on just your web site. If a hacker gets access to your database somehow,[…]

07/06/2011

SQL Injection Prevention

by Cyle
Categories: php
Tags: , , ,
Comments: Leave a Comment

Taking a raw user’s input and inserting it into a MySQL database can leave your website open to an attack known as SQL injection. Hopefully this tutorial will help you better understand what SQL injection is and how you prevent it from happening on your site. What is SQL Injection? “SQL injection is a code[…]

06/29/2011

PHP Operators

by Cyle
Categories: php
Tags: , , ,
Comments: Leave a Comment

An operator is something that takes one value and yields it with another value to produce a new value or expression. There are many different types of operators used in PHP. Below they are broken into categories. Arithmetic Operators Assignment Operators Bitwise Operators Comparison Operators Error Control Operator Incrementing/Decrementing Operators Logical Operators String Operators Array[…]

06/21/2011

How To Send Email In PHP

by Cyle
Categories: php
Tags: , ,
Comments: 1 Comment

Sending an email with PHP is extremely easy with the mail() function. All it takes is the basics to get started, and you can always do more later. To send a basic email we need the recipient’s email address, a subject, and the body of the message. See the example below: 1 2 3 4[…]

06/21/2011

PHP’s Global Server Variables

by Cyle
Categories: php
Tags: , , , ,
Comments: 1 Comment

Most all web servers pass an array containing a lot of helpful information such as headers, host information, and more. There are many elements in the array, but I am only going to discuss the ones I use most. The $_SERVER array must be called inside the script and not on a command line. Let’s[…]


user-avatar
Today is Monday
05/22/2017