Browsing articles from "March, 2009"
Mar 26, 2009
admin

Redirect to https (SSL) in php


Hello Friends !!

Today I found some new things. This post is show you how to redirect to https(SSL) in PHP.

First, What is SSL ? Let me Explained :

SSL meand Secure Socket Layer. It is developed by Netscape to transmit private data via Internet.

SSL uses a cryptographic system that uses two keys to encrypt data – a public key known to everyone and a private or secret key known only to the recipient of the message. Both Netscape Navigator and Internet Explorer support SSL, and many Web sites use the protocol to obtain confidential user information, such as credit card numbers. By convention, URLs that require an SSL connection start with https: instead of http:

Most of e-commerce sites uses payment gateway for online payment.And those sites use SSL connection to transfer data to and from the payment gateway.

Most of the sites use http protocol. But in above case wehave to redirect browser to https.
If you want to see example, write “http://www.gmail.com” in browser, it automatically redirects to https.It means site transfer to SSL protocol.

First of all, you should know that SSL must be installed in the server. To redirect the browser to “https” , we must know that the site is using SSL or not at the moment. And for this, there is a server variable in PHP called “HTTPS”. $_SERVER['HTTPS'] returns “on” values when the site is using SSL connection.
Continue reading »

Mar 23, 2009
admin

Delete Record Using JQuery and PHP with Animation


Hello Friends !!

Today I will Give you code to delete records using JQuery and PHP with Animation effect.

It is very simple to understand. First you have to download jquery.js which is availble HERE.

After that copy this code in your PHP file and run it.
Continue reading »

Mar 21, 2009
admin

Take cPanel full backup-PHP


Hello Friends !!

I found some new thing to take backup your site/blog from server.

I give you script to take backup.

This will take full backup from cPanel to FTP.

The first, cpbackup_cfg.php, shown below, must be edited to insert your site and FTP server login credentials.

<?php
$cpuser = “xxxxxxxxxx”;
$cppass = “xxxxxxxxxx”;
$domain = “yourdomain.com”;
$skin = “x2″;

$ftpuser = “xxxxxxxx”;
$ftppass = “xxxxxxxx”;
$ftphost = “ftp.backupsite.com”;
$ftpmode = “passiveftp”;
$ftpdir = “/subdir”;

$notifyemail = “webmaster@mydomain.com”;

$delbackup = 1;

$secure = 0;

$debug = 0;
?>

The second file, cp_backup.php, shown below, is the backup script itself.
Continue reading »

Mar 19, 2009
admin

New Open Sorce “OsDate” – Dating and Matchmaking script


Hello Friends !!

Today I want to discuss one new point with you.

I think you all are familier with joomla. Joomla is a free Open Source CMS which is widly used to make CMS.

Same way If you want to develope your Dating or Matrimonial or Couple site, in market there is one new open source available called OsDate.

osDate dating and matchmaking script fully integrates with major bulletin boards (phpBB, vBulletin, etc.) and FlashChat, and provides several payment modules, multiple skins, and free upgrades. The .zip or .tgz downloads below are over 30MB, so please be patient while downloading! Want a different look for your dating site?

You can download absolutely free from this site.

To Download Reffer http://www.tufat.com/s_free_dating_system.htm.

Currently i am working on this. So if you have any question or problem with this then please comment me.

Thanks…

Mar 16, 2009
admin

Take Backup of MySQL database using PHP


Hello Friends !!

Generally we take backup of our MySQL database using import/Export option in phpMyAdmin.

But Suppose, you have to take backup every day or every hour, this technique is time consuming. It takes more time.

There is one way to take backup which take less time. We can take backup using PHP code. When you run this code, This code create one backup file automatically which ia easily import in database when you want.

I write that PHP code below. Simply you have to copy this code and paste in you PHP file.
Continue reading »

Mar 14, 2009
admin

MySQL table to CSV – PHP Script


Hello Friends !!

If you want to export data from MySQL table to CSV file ,then don’t worry. I will provide you one script. When you run this script, data in table are stored in CSV file.

Here i give you code of the PHP script. You have to just copy that code and paste in your PHP file and run that file.
Continue reading »

Mar 13, 2009
admin

Export from CSV to MySQL table – PHP Script


Hello Friends !!

In my later post on Export data from MS EXCEL sheet to MySQL table – PHP Script , i explained how store data from MS EXCEL sheet to MySQL table.

Today I will give you PHP code for store data from CSV file to MySQL table. You have to just make one PHP file, copy code displayed below and paste in that file. After this just run that PHP script.
Continue reading »

Mar 10, 2009
admin

Preventing SQL Injection Attacks with MySQL and PHP-2


Hello Friends !!

If you remember then in my older post on SQL injection, I was explain you basic of SQL injection and basic code to prevent SQL injection.

Today I will explain how to prevent SQL injection using encryption ?

I think you all use MySQL for database purpose.We add one variable named key . This Key is concatenate with original password.

There is one fieldtype md5. We will use this type to store password.

I list some steps for this method :
Continue reading »

Mar 10, 2009
admin

Block Proxy Servers using .htaccess


Hello Friends !!

We all know about spamming.

In my last post we can block IP address using .HTACCESS. But suppose proxy server used for spamming then what will you do ? In using proxy server, every time IP address changed.

Generally hackers are also use proxy servers to hack the site.

Don’t worry about this. I found some code of .HTACCESS which blocks proxy servers to access your site.

How to Block Proxy Servers

This code help you to block proxy servers to access your site.

Continue reading »

Mar 7, 2009
admin

Block IP addresses Using .HTACCESS


Hello Friends !!

In my previous post, i was write how to block IP address using PHP script ?

Today i will write that how to block IP address using .HTACCESS ?

There are several ways to block a specific IP range.

The first utilizes a CIDR number to block the specified range (via htaccess):

# block IP range by CIDR number
<Limit GET POST PUT>
order allow,deny
allow from all
deny from 214.53.25.64/26
</Limit>

Continue reading »

Pages:12»

PHP Genious Services

I am a PHP freelancer india, PHP Developer india, PHP programmer india, Wordpress Freelancer india, Wordpress customization services, Wordpress Plugin Developer, Wordpress theme customization, Wordpress plugin customization, Magento Freelancer, Magento Developer india, Magento customization services, Magento theme integration, Opencart Developer india, Zencart Freelancer, Opencart customization, Opencart plugin development, HTML and CSS customization, cakePHP Developer, cakePHP Freelancer india, Ecommerce Developer india

Click Here for

Follow me on Facebook

Categories

Get Adobe Flash playerPlugin by wpburn.com wordpress themes