This example is explaining how to create secure user registration using php and mysql.This is very secure using salt value into database users table.It help to avoid sql injection and dictionary attack from hackers. This way is secure and better than md5 encryption method.
Here tested code.
This is have two parts.
Continue reading PHP best & secure user registration with login example
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 textual content file too.
Continue reading PHP export content as text file
How can you read excel file using php and save that details to the database? My other post is describing Read Excel file and save details to database using PHP.But it is not properly working in new version of excel 2007..etc.My readers are asked to do this for other excel versions.So I’m going to show how to read any format of excel file like 97-2003(xls) or 2007 (xlsx) formats excel files. Also I’ll show how to create/write excel file using php.
Continue reading Read Excel file and save details to database using PHP-Repost
How to display your facebook wall posts into your own web site.For a example you can display facebook page’s latest posts into your web site sidebar as “latest posts”. This is actually displaying as rss feeds.You can check my demo how this is implemented.
Continue reading Display latest recent posts in my facebook page into my website
How to submit with data to another web site’s form and get its results using php?You can remote submit a form using curl functions.Then can get it’s results.This is named as scraping also.Let’s see how to remote submit a form and get it’s result using php curl.
Continue reading PHP remote submit a form and get result using curl
Here we are describing convert xml file into excel file using php.Simple way to convert xml file into excel file with php.If you have basic knowledge of xml and php(:D) this is very easy.My another post is showing how to read Excel file and save details to database using php. If you not good familiar with xml read this PHP Creating XML file post and Read XML file using PHP post to get and better idea.
Continue reading Convert xml file into excel file using php
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 getting 2D or 3D array of the DNS lookup details of the given domain. Continue reading php get DNS lookup details
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 top level domain and perform a query to retrieve information about that domain. Continue reading php get domain details with whois
How to include different files from different servers using PHP? Is this possible easily? Read this to know about this fully.
Continue reading Include files from different servers 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 all details even latitude,longitude and country details.
Continue reading Getting visitor’s details using PHP
How to check duplicate values in an array and return it using PHP?Also telling php check wild card value in an array and return those values.For a example you want to check number of times that values exist and return that all values in an array.Check this example, you can understand this better.
Continue reading PHP check duplicate values in an array and return it
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 addresses list as line by line with single IP address or CIDR notation.Then check visitor IP address with list and redirect them.
Continue reading PHP IP address based redirect example
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 line and create an array.
Continue reading PHP read file line by line to an array
How to increase max execution time, file upload size, memory limit in php.ini file and htaccess file? When you are executing large file you have to seen Fatal error: Maximum execution time of 30 seconds exceeded in…., Fatal Error: Allowed memory size of 8388608 bytes exhausted…. etc.In this post is describing how to solve this error using php.ini file or htaccess file.
Continue reading increase execution time file size memory limit in php.ini
How can you read and display excel file using php and save that details to the database? You can use this simple php class to do this.That is read row by row while reading column by column.While reading like this it gets each cells details.Look at this example that is simply describes this process and you can understand this better.
Continue reading Read Excel file and save details to database using PHP
Display each users locations in the google map after submitting his addresses using php and java script.This is displaying using location latitude and longitude.That is marked by red bubble.You can customize map types as ROADMAP,SATELLITE,HYBRID or TERRAIN, displaying controls….etc.
Continue reading Display each users location in google map using address in PHP and Java Script
How can you connect and transferring data with multiple databases using php.Only using mysql_connect to simultaneously multiple databases to create multiple databases connections.
Continue reading Connect with multiple databases 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 and your pc.If you don’t know what are the files exist in the server,run php script to get file names and run the following php script to download files list.See the following example and then you can understand this better.
Continue reading Files transfer via FTP 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 archives of compress files in ZIP format.You can compressed archive to a file instead of a variable when the archive size exceeds a given memory usage threshold.
Also you can add comments to the zip file,rename final zip file,get Archive/zip files size.
Continue reading Creating zip files using PHP
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 script will give to force download a file using php.
Continue reading PHP force download a file example