PHP examples,scripts,demo and download php source codes.PHP is a widely-used general-purpose server side scripting language that is especially suited for web development. The current stable version is 5.4.5, released on July 19, 2012, while many are still on the old stable version, which is 5.3.

PHP export content as text file

This publish is describing the way to export contents as text file/txt file utilizing php.This could be very straightforward to export content material as textual content file.You can download the …

php get DNS lookup details

Get details about DNS lookup of the domains with php.This simple php script can be used to get details about DNS lookup with MX records,text records,CNAME records,SOA…etc . Final result is ge…

php get domain details with whois

Get details about domains or addresses with Whois.This php class can be used to get details about domains or IP addresses with Whois protocol. It can connect to the Whois server for a for a given t…

Getting visitor’s details using PHP

PHP get visitor details without any third party web site registrations or keys.Get visitor IP address,region,latitude,longitude,Country,visitor map with php.Look at this example you can get visitor…

PHP IP address based redirect example

This is a IP address redirect example.Check visitor IP address is exist in the IP address list/black list and if exist then visitor redirect to the another location using php.You can put your IP ad…

PHP read file line by line to an array

How can you read file, like text file line by line and get contents to and array using php? This can be using “FILE_IGNORE_NEW_LINES”.Here is a tested example to read text file line by …

Files transfer via FTP using PHP

How to connect to the web server,upload files and download files,create a directory, delete a directory,get list of the directory via FTP using php.You can transfer any type of files between server…

Creating zip files using PHP

How can I compress specific files or compress specific folder or compress bulk files using php.Only you want to add zip class and pass parameters as you want. This class can be used to create archi…

PHP force download a file example

PHP allows you to change the HTTP Headers of files that you’re writing, so that you can force a file to be downloaded that normally the browser would load in the same window. Following php sc…