PHP

Can’t login into admin panel of Magento (Problem and Solution)

Hello Friends !!

Yesterday, when I was starting to work on Magento E-commerce. When I was access Magento after installation, I can’t logged in Admin section.

After long time serching and research in Magento, finally I found the solution and currently I am able to login to admin section. Today I explain you about the problem and the solution.

First of all, what is Magento ?

Magento is one of the Opensource for E-commerce Websites. Its a top level opensource in E-commerce category.

Now time to explain the problem and the solution of the problem. More >

MySQL to RSS feed(XML)-Used in Google Product Search

Hello Friends !!

In my last post, I explain you how to export data from MySQL to tab formatted TXT file.

I think you all aware about Google Product Search.

In Google Product Search, which is used for search any product around the world. Currently many shopping sites stores their products in Google Product Search.

For store data in google product search, Google supports txt and xml (RSS) file.

Now I make one another script which used to export data from MySQL to RSS (XML). Actually google product also preffer RSS feed.

For this you have to create one datafeed.xml and save this file where PHP script file is stored. Here I give you code :
Click Here for more details :
More >

MySQL to tab formatted TXT(datafeed) converter script-PHP

MySQL to Google Based Datafeed Converter PHP Script

Hello Friends !!

Currently I am working on one project in which I have to store data in Google Merchant Center.

This is a Google Product Search which is used for search any product around the world. Currently many shopping sites stores their products in Google Product Search.

For store data in google product search, Google supports txt file with tab seperated.

After some reserch I have made one PHP script which store data from MySQL table to txt file with tab seperated.
More >

Set Cookies in PHP

Hello Friends !!

Today i will show you hiw to use Cookie in PHP.

First of all Cookies are small pieces of text, stored by a user’s web browser, that contain the user’s settings, shopping cart contents, or other data used by websites.

In PHP we can set cookies by inbuilt function setcookie().

setcookie(‘username’, $name);

It is very easy to use and understand. First parameter is the name of the cookie and second one is the value you want to store in cookie.

By above code you can set simple cookie and this cookie will be deleted when user close their browser.

We can also set the time how long we want the cookie.

$cookie_life = time() + 31536000;
setcookie(‘username’, $name, $cookie_life);

Above example create cookie for 1 year. Yes 31536000 seconds means 1 year.Remember, cookies must be deleted with the same parameters they were set with.If users clear their history from browser then cookies will be deleted.
More >

Security in PHP – Tutorial

Hello Friends !!

Today I found one PDF file about PHP Security. Here I will give you that tutorial.

In this tutorial all the PHP security issues are explained in easu language.

Document is about worth 15 pages so i can’t write it in my blog.

Simply click on link shown below and you can see that PDF file. But first you have to install Adobe PDF reader.

CLICK HERE to see tutorial.

If you like this tutorial then please comment on this post. If you have any query then also tell me.

Click below links for more tutorials:

I will try my best to solve your problem.

Thanks…

Use PayPal’s Instant Payment Notification with PHP

hello Friends !!

Today i will tell you that how to integrate Instant Payment Notification(IPN) inPayPal using PHP.

There are several PHP scripts and classes to process PayPal payments using their native IPN (Internet payment notification) feature. Because the whole process is based on the data you need to send via a web form to the PayPal payment processor these script look very similar.

The payment / notification process is shown via the following graphic:
More >

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

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

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…

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

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
-->