Thursday, July 30, 2009

OSCommerce Google Checkout Integration . . .

To integrate Google checkout in Oscommcerce , following steps should .

steps:

1 download the Google checkout addon from the http://addons.oscommerce.com/

2 Follow the steps in the installation file.

3 In the catalog folder change the following files:

  • – checkout_payment.php
  • – gc_return.php
  • – login.php
  • – shoping_cart.php

4 craete a google checkout folder.
5 In the catalog -
includes- english-modules-payment-googlecheckout.php
for different languages. do the same thing.
6 In the the modules folder – in the payment – create a file googlecheckout.php

7 In admin folder.

  • change the – htaccess.php
  • – modules.php
  • – orders.php
  • in includes – functions – genereal.php


In these files we have to add and change for installation the google checkout module for oscommerce.

To integrate the google checkout module to the payment.
In the admin section – in the the modules options – enable the google checkout option and give the Production Merchant ID and Production Merchant Key, then we can successfully integrate the google checkout in oscommerce.

Oscommerce error Out of memory (Needed 1048548 bytes)


5 - Out of memory (Needed 1048548 bytes)


This error is not occur with the php, this will happen about the mysql error.

The only solution is to

Need Help Optimising your database? Looking for a good to OPTIMIZE / REPAIR specific tables, databases, or servers? Here is a code that may help. Very easy to install. No files to change.

I take no credit for this contribution. I merely found it when trying to find ways to
improve my site performance. Here is the link to the original file and article:-

http://dev.mysql.com/doc/refman/5.0/en/optimize-table.html


we can down load that file from the following link :

http://addons.oscommerce.com/info/4647

and run that file with give the database details.
then that error might not occur.

Monday, July 27, 2009

The awesome photos of Michel jacson 1972 - 2009

The awesome photos of king of pop Michel Jackson from the year 1972 to 2009 .



In the year 1972 : In the year 1977 :


















In the year 1984 :
In the year 1987 :



















In the year 1992 :
In the year 1993 :



















In the year 1995
In the year 1998


















 

In the year 2000: In the year 2001:
 



















 



In the year 2002 : In the year 2004














 







In the year 2005 :
In the year 2009:






Wednesday, July 22, 2009

How to delete element in the Array in php if it exists

One of friend is asking on this issue,so post it in the blog then it will be useful to all us ...
The following code will be delete the element in an array if that element is exists
in the array.


<?

$numbers = array(1,2,3,4,5);

for($i=0;$i
{
if($numbers[$i]==3)
{
unset($numbers[$i]); // removes "4"
}
}
print_r($numbers);

?>

Hope it will be useful.

Tuesday, July 21, 2009

Using PHP code connect to FTP and upload files.


The following code will be connect to FTP using php code and upload files to FTP server.

<?

$ftp_server="HOST NAME";
$ftp_user_name="USER NAME";
$ftp_user_pass="PASSWORD";
$conn_id = ftp_connect($ftp_server);

// login with username and password

$login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass");

if ((!$conn_id) || (!$login_result)) {
echo "authentication failed";
}
else
{

$source_file="uploads/".$fileName;
$destination_file="/htdocs/".$fileName;
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);

}

ftp_quit($conn_id);

?>

Monday, July 20, 2009

Call the php file using javascript.

we can the call the php file in javascript following syntax:

<?php

//"ip.php" example- display user IP address on any page
header("content-type: application/x-javascript");
$serverIP=$_SERVER['REMOTE_ADDR'];
echo "document.write(\"Your IP address is: " . $serverIP . "\")";

?>

to call the php file in html file like

<script type="text/javascript" src="ip.php"></script>




Hope it will be helpful.

Anil Kumar Panigrahi

Wednesday, July 15, 2009

How to get the tiny url using php code?

The following php code will generate the tiny urls


<?php

function getTinyUrl($url)
{
$tinyurl = file_get_contents("http://tinyurl.com/
api-create.php?url={$url}");
return $tinyurl;
}

$url="http://www.awesome-gallery-blogspot.com";
echo getTinyUrl($url);

?>



It will gives the url : http://tinyurl.com/ldq9aq


This will be useful when we are trying to post our url in different blog.
If we want more impressions without knowing the url name then we can use this function.

Powerpoint presentation of Video and Audio Streaming

The following presentation is for audio and video streaming files using FFMpeg,programming support is PHP.

http://www.slideshare.net/nyrostechnologies/audio-and-video-streaming

Tuesday, July 14, 2009

little fun to never marry a IT girl.

The following quotes are little fun to never marry a IT girl.

  • Never marry a Testing girl since she always doubts U.
  • Never marry a DATABASE girl since she always wants her husband to be a UNIQUE key.
  • Never marry a C girl because she always have a tendency to BREAK the things and EXIT from house.
  • Never marry a C++ girl as u may encounter some problems in INHERITANCE.
  • Never marry a JAVA girl since she always throws EXCEPTIONS.
  • Never marry a VB girl since she has divorce FORM with her always.
  • Never marry a UNIX girl ,she always dump u with a core.
  • Never marry a PASCAL girl ,she always scolds u as rascal.
  • Never marry a COBOL girl since she may be very good in DIVISION of families.
  • Never marry a NETWORK girl since she may be very good in shooting troubles.

The Complete video Presentation of Audio and Video Streaming

The video complete presentation about the Audio and Video Streaming using FFMpeg
This is Part - 1:


This is Part - 2:



This is part - 3:

Friday, July 10, 2009

Complete reasearch on Audio and Video Streaming

The complete information about Audio and Video Streaming usinf FFMpeg and PHP web development language, By Anil Kumar Panigrahi,


Audio and Video Streaming -

For any information we can contact me at anil4u@in.com or kumaranil21@gmail.com

Thursday, July 9, 2009

PHP is key for most websites developing










PHP language is most powerful and more websites are using this language to implement there websites.
So, we can say that php is key for the websites,

what you say?