PHP best & secure user registration with login example

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.
1-User Registration
2-User Login

sql-injection

Continue reading PHP best & secure user registration with login example

Read Excel file and save details to database using PHP-Repost

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

Display latest recent posts in my facebook page into my website

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

PHP remote submit a form and get result using curl

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

Convert xml file into excel file using php

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

PHP check duplicate values in an array and return it

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

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 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

increase execution time file size memory limit in php.ini

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

Read Excel file and save details to database using PHP

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 location in google map using address in PHP and Java Script

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

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 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

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 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