D S Kaletha

Web Designer & Developer

Archive for the ‘PHP Snippets’ Category

Tuesday, July 20th, 2010

Generate a Automatic Password in php

how to generate random passwords that are highly secure and extremely difficult to crack. However you can choose between various complexity/strength and you can set password length as well.Simple method or Traditional way  to generate password is using rand() function: concatenate several random-selected letters together. Something like this:

(more…)

Wednesday, May 5th, 2010

Displaying XML Content in PHP

The easiest way to deal with XML content in PHP is to use the Simple XML functions of PHP. Using these, we can turn a bunch of XML into a PHP object and loop over it.

(more…)

Sunday, May 2nd, 2010

How to Send Email from a PHP Script

The first thing we need to do is to write the contact form itself. Put the following code in the <body> section of an HTML file named, say, contact.html.

(more…)