PHP

How to download webpage content using PHP CURL

September 5, 2011

Thumbnail image for How to download webpage content using PHP CURL

PHP CURL-The powerful and useful library to fetch contents from websites remotely.Using Php CURL you can able to download the webpage source of any website and store it to a php variable.Curl requests to any webpage server and downloads the content.

How to create facebook application using PHP and graph api

February 13, 2011

Thumbnail image for How to create facebook application using PHP and graph api

This tutorial will explain how to create a facebook application using Graph api and PHP.For those who are new to Facebook platform you need to learn the basics of Graph api.We are about to build a facebook application you can see a demo here.

4 Array functions you should know in PHP

January 3, 2011

Thumbnail image for 4 Array functions you should know in PHP

An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.for example, we can store 5 values of type int in an array without having to declare 5 different variables, each one with a different identifier. Instead of that, using an array we can store 5 different values of the same type, int for example, with a unique identifier.

5 Useful mathematical functions in PHP

January 2, 2011

Thumbnail image for 5 Useful mathematical functions in PHP

Here we are going to see 5 mathematical functions which are common in use and are very useful to PHP programmers.

How to:Find duplicate words in a string[PHP]

January 2, 2011

Thumbnail image for How to:Find duplicate words in a string[PHP]

We can find duplicate words in a string through Wordstats() in PHP.In following code , first i have compressed multiple spaces into string and then decomposed the sentence into words with explode().

Str_repeat Function in PHP

January 2, 2011

Thumbnail image for Str_repeat Function in PHP

This function is used to repeat a string fixed no of times. It accepts two parameters : a) a string to be repeated b) no of times it is to be repeated <?php //string to be repeated $a=”devlup”; //result $r=str_repeat($a,20); echo $a; ?>

How to :Encrypt a string using One-way Encryption in PHP

January 2, 2011

Thumbnail image for How to :Encrypt a string using One-way Encryption in PHP

We can do one-way encryption through Crypt function in PHP . Generally it is used in password verification . Since it is one way encryption we can’t able to get original password.

Face detection using PHP

November 20, 2010

Thumbnail image for Face detection using PHP

Face detection is a simple technique to highlight a face in a photograph.You might have used automatic face detection in Picasa web albums that can be easily done using the PHP script.