Thursday, December 31, 2009

Happy New Year - 2010



We are heartly welcome to New Year that brings us sparks in our life.

Wish you a happy new year .



http://www.anil2u.info/newyear.php

Wednesday, December 30, 2009

Search for existing domain names using domainr API

Hello friends,

Domainr API is used to get the information of existing domain names. it is working for all domains ( most probably might not be work for subdomains).


See the following php script :


<? PHP

function getInfo($domain) {

$domain = urlencode($domain); // encode url here…

$request = “http://domai.nr/api/json/search?”;

$request .= “q=”.$domain.”&”;

return $response = file_get_contents($request);


}

? >

Pass the domain name to that function like : ( without http )


<? PHP

$data=getInfo(‘www.anil2u.info’);


? >

Get the results in the json format and convert into string:

<? PHP

$obj = json_decode($data);

echo “This domain is “.$obj->{‘results’}[0]->{‘availability’} ;


? >

Demo @ http://www.anil2u.info/domainchecking.php

Tuesday, December 22, 2009

World class resume for ever of one indian

EDUCATION /Qualifications :
  • 1950: Stood first in BA (Hons), Economics, Punjab University, Chandigarh ,
  • 1952; Stood first in MA (Economics), Punjab University , Chandigarh ,
  • 1954; Wright's Prize for distinguished performance at St John's College, Cambridge,
  • 1955 and 1957; Wrenbury scholar, University of Cambridge ,
  • 1957; DPhil ( Oxford ), DLitt (Honoris Causa); PhD thesis on India 's
    export competitiveness


OCCUPATION /Teaching Experience :
  • Professor (Senior lecturer, Economics, 1957-59;
  • Reader, Economics, 1959-63;
  • Professor, Economics, Punjab University , Chandigarh , 1963-65;
  • Professor,Internati onal Trade, Delhi School of Economics,Universit y
    of Delhi,1969-71 ;
  • Honorary professor, Jawaharlal Nehru University ,New Delhi,1976 and
    Delhi School of Economics, University of Delhi ,1996 and Civil Servant


Working Experience/ POSITIONS :
  • 1971-72: Economic advisor, ministry of foreign trade
  • 1972-76: Chief economic advisor, ministry of finance
  • 1976-80: Director, Reserve Bank of India ;
  • Director, Industrial Development Bank of India;
  • Alternate governor for India, Board of governors, Asian Development Bank;
  • Alternate governor for India, Board of governors, IBRD
  • November 1976 - April 1980: Secretary, ministry of finance (Department
    of economic affairs);
  • Member, finance, Atomic Energy Commission; Member,finance, Space Commission
  • April 1980 - September 15, 1982 : Member-secretary, Planning Commission
  • 1980-83: Chairman , India Committee of the Indo-Japan joint study committee
  • September 16, 1982 - January 14, 1985 :Governor, Reserve Bank of India ..
  • 1982-85: Alternate Governor for India , Board of governors,
    International Monetary Fund
  • 1983-84: Member, economic advisory council to the Prime Minister
  • 1985: President, Indian Economic Association
  • January 15, 1985 - July 31, 1987 : Deputy Chairman, Planning Commission
  • August 1, 1987 - November 10, 19! 90: Secretary-general and commissioner,
    south commission, Geneva
  • December 10, 1990 - March 14, 1991 : Advisor to the Prime Minister on
    economic affairs
  • March 15, 1991 - June 20, 1991 : Chairman, UGC
  • June 21, 1991 - May 15, 1996 : Union finance minister
  • October 1991: Elected to Rajya Sabha from Assam on Congress ticket
  • June 1995: Re-elected to Rajya Sabha
  • 1996 onwards: Member, Consultative Committee for the ministry of finance
  • August 1, 1996 - December 4, 1997: Chairman, Parliamentary standing
    committee on commerce
  • March 21, 1998 onwards: Leader of the Opposition, Rajya Sabha
  • June 5, 1998 onwards: Member, committee on finance
  • August 13, 1998 onwards: Member, committee on rules
  • Aug 1998-2001: Member, committee of privileges 2000 onwards: Member,executive committee, Indian parliamentary group
  • June 2001: Re-elected to Rajya Sabha
  • Aug 2001 onwards: Member, general purposes committee


BOOKS:

  • India 's Export Trends and Prospects for Self-Sustained Growth -
    Clarendon Press, Oxford University , 1964; also published a large
    number of articles in various economic journals.


OTHER ACCOMPLISHMENTS:

  • Adam Smith Prize, University of Cambridge , 1956
  • Padma Vibhushan, 1987
  • Euro money Award, Finance Minister of the Year, 1993;
  • Asia money Award, Finance Minister of the Year for Asia, 1993 and 1994



INTERNATIONAL ASSIGNMENTS:

  • 1966: Economic Affairs Officer
  • 1966-69: Chief, financing for trade section, UNCTAD
  • 1972-74: Deputy for India in IMF Committee of Twenty on
    International Monetary Reform
  • 1977-79: Indian delegation to Aid-India Consortium Meetings
  • 1980-82: Indo-Soviet joint planning group meeting
  • 1982: Indo-Soviet monitoring group meeting
  • 1993: Commonwealth Heads of Government Meeting Cyprus 1993: Human
    Rights World Conference, Vienna



RECREATION :

  • Gymkhana Club, New Delhi; Life Member, India International Centre,
    New Delhi

PERSONAL DETAIL:

  • Name: Dr Manmohan Singh
  • DOB: September 26, 1932
  • Place of Birth: Gah ( West Punjab )
  • Father: S. Gurmukh Singh
  • Mother: Mrs Amrit Kaur
  • Married on: September 14, 1958
  • Wife: Mrs Gursharan Kaur
  • Children: Three daughters
Our Prime Minister seems to be the most qualified PM all over the world.



Be proud to be an Indian


Thursday, November 26, 2009

How to integrate fckeditor to smarty application?

Integration of fckeditor in smarty application

1 . in libs\plugins write the foolowing file called function.fckeditor.php

<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/

/**

* Smarty function plugin
* Requires PHP >= 4.3.0
* ————————————————————-
* Type: function
* Name: fckeditor
* Version: 1.0
* Purpose: Creates a FCKeditor, a very powerful textarea replacement.
* ————————————————————-
* @param InstanceName Editor instance name (form field name)
* @param BasePath optional Path to the FCKeditor directory. Need only be set once on page. Default: /FCKeditor/
* @param Value optional data that control will start with, default is taken from the javascript file
* @param Width optional width (css units)
* @param Height optional height (css units)
* @param ToolbarSet optional what toolbar to use from configuration
* @param CheckBrowser optional check the browser compatibility when rendering the editor
* @param DisplayErrors optional show error messages on errors while rendering the editor
* Default values for optional parameters (except BasePath) are taken from fckeditor.js.
* All other parameters used in the function will be put into the configuration section,
* CustomConfigurationsPath is useful for example.
* See http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_File for more configuration info.
*/

function smarty_function_fckeditor($params, &$smarty)
{
if(!isset($params['InstanceName']) || empty($params['InstanceName']))
{
$smarty->trigger_error(‘fckeditor: required parameter “InstanceName” missing’);
}

static $base_arguments = array();

static $config_arguments = array();

// Test if editor has been loaded before

if(!count($base_arguments)) $init = TRUE;
else $init = FALSE;

// BasePath must be specified once.

if(isset($params['BasePath']))
{
$base_arguments['BasePath'] = $params['BasePath'];
}
else if(empty($base_arguments['BasePath']))
{
$base_arguments['BasePath'] = ‘/FCKeditor/’;
}

$base_arguments['InstanceName'] = $params['InstanceName'];

if(isset($params['Value']))
$base_arguments['Value'] = $params['Value'];
else
$base_arguments['Value'] = ”;

if(isset($params['Width'])) $base_arguments['Width'] = $params['Width'];

if(isset($params['Height'])) $base_arguments['Height'] = $params['Height'];

if(isset($params['ToolbarSet'])) $base_arguments['ToolbarSet'] = $params['ToolbarSet'];

if(isset($params['CheckBrowser'])) $base_arguments['CheckBrowser'] = $params['CheckBrowser'];

if(isset($params['DisplayErrors'])) $base_arguments['DisplayErrors'] = $params['DisplayErrors'];

// Use all other parameters for the config array (replace if needed)

$other_arguments = array_diff_assoc($params, $base_arguments);
$config_arguments = array_merge($config_arguments, $other_arguments);

$out = ”;
if($init)

{
$out .= ‘<script type=”text/javascript” src=”‘ . $base_arguments['BasePath'] . ‘fckeditor.js”></script>’;
}

$out .= “\n<script type=\”text/javascript\”>\n”;

$out .= “var oFCKeditor = new FCKeditor(‘” . $base_arguments['InstanceName'] . “‘);\n”;

foreach($base_arguments as $key => $value)

{
if(!is_bool($value))
{
// Fix newlines, javascript cannot handle multiple line strings very well.
$value = ‘”‘ . preg_replace(“/[\r\n]+/”, ‘” + $0″‘, addslashes($value)) . ‘”‘;
}
$out .= “oFCKeditor.$key = $value; “;
}

foreach($config_arguments as $key => $value)

{
if(!is_bool($value))
{
$value = ‘”‘ . preg_replace(“/[\r\n]+/”, ‘” + $0″‘, addslashes($value)) . ‘”‘;
}
$out .= “oFCKeditor.Config[\"$key\"] = $value; “;
}

$out .= “\noFCKeditor.Create();\n”;

$out .= “</script>\n”;

return $out;

}

/* vim: set expandtab: */

?>


2 download the fckeditor from the http://www.fckeditor.net/ and save it in the smarty folder

3 in the php file we include the fckeditor.php file

4 in the tpl file we write the following code

{fckeditor BasePath=”../includes/fckeditor/” InstanceName=”news_desc” Width=”650px” Height=”300px” Value=”$news_desc”}

Complete information @ http://anil2u.wordpress.com

Tuesday, November 24, 2009

Installation of drupal in localhost


Drupal Installation procedure:

1) Download the zip file from http://www.drupal.org that is drupal 5.20 version.

2) Unzip that file and place that folder at www follder

3) Run that file at browser :

http://localhost/drupal/

4) The Drupal installer requires write permissions to

./sites/default/settings.php

during the installation process. So we need to change the file permission of settings.php file.

5) Creare database in phpmyadmin and give the details at the second screen of installation procedure.

6) After that we need to chnage the file permisstion of

./sites/default/settings.php ,

remove the write permisstion.

7) Now we can sucessfully run the drupal site like :

http://localhost/drupal/

Hope that it will be useful.

Complete information @ http://anil2u.wordpress.com


Wednesday, November 18, 2009

Select the age from birthday date field in mysql ?

Hi,

following is user table:

CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fname` varchar(255) NOT NULL,
`mname` varchar(255) NOT NULL,
`lname` varchar(255) NOT NULL,
`createdat` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`birthday` date NOT NULL,
PRIMARY KEY (`id`)
);

insert one row into table:

INSERT INTO `user` (`id`, `fname`, `mname`, `lname`, `createdat`, `birthday`) VALUES

(1, ‘Anil’, ‘Kumar’, ‘Panigrahi’, ‘2009-11-19 11:04:27′, ‘1983-02-14′),

To retrieve age from the table:

SELECT YEAR( NOW( ) ) - YEAR( birthday ) - IF( MONTH( NOW( ) ) < MONTH( birthday ) , 1, 0 ) - IF( MONTH( NOW( ) ) = MONTH( birthday )AND DAYOFMONTH( NOW( ) ) < DAYOFMONTH( birthday ) , 1, 0 ) AS age, birthday, now( ) From user;
Hope that it will be useful.

Complete information @ http://anil2u.wordpress.com

Thursday, October 15, 2009

To get the real IP using PHP code

The code will get the real IP address of running those scripts.


<?php


function getRealIpAddress()

{

if (!empty($_SERVER['HTTP_CLIENT_IP']))


//check ip from share internet

{

$ip=$_SERVER['HTTP_CLIENT_IP'];

}

elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))


//to check ip is pass from proxy


{

$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];

}

else

{

$ip=$_SERVER['REMOTE_ADDR'];

}

return $ip;

}



echo getRealIpAddress(); // display the real IP address

?>


it will be useful.

Monday, October 5, 2009

stylesheets and javascript code working on smarty

how to add styles and javascript, to smarty application, in the head section written the styles code but when we are applying that code to the tpl file is not applied is there any separate code to written in the smarty.


for that reason go to below code


we can the simple code in the smarty application for style sheet and javascript , we add the add one keyword in the tpl files, then


{literal}


<style type=”text/css”>

.style1

{

font-family:Arial, Helvetica, sans-serif;

color:#666666;

}

</style>

{/literal}



It will be useful.

Wednesday, September 23, 2009

First time PHP have the 3rd position in the programming languages.

PHP programming language has been listed among the first 3 most popular and widly used computer programming languages in the world. According to TIOBE Programming Community Index, PHP is 3 position first time .


First position is Java , second position is C and third position is PHP.



The complete graph of the PHP from 2004 to present of TIOBE community.



In the year 2008 PHP position is 5th now increases the two positions and now is 3rd position.


Thank you.


Anil Kumar Panigrahi

Wednesday, September 16, 2009

Static HTML page as email body using PHP

The following code will work, this functionality is use the external html content as email body.



$mail = new PHPMailer();

$mail->IsMail();


$mail->Timeout = 360;

$mail->From = “”;

$mail->FromName = “”;

$mail->AddReplyTo(”");

$mail->AddAddress($Email);


$mail->IsHTML(true);

$mail->Subject = “Html as email”;


$file = fopen(”email.html”,”r”);

$str=fread($file,filesize(”email.html”));


$str = trim($str);

fclose($file);


$mail->Body = $str;


$mail->Send();


Then it will send the external html file as email body.


But be sure that in the html file all images should be full path. like:

http://www.domain.com/images/<image name>



It will be helpful.


Thank you,

Monday, September 14, 2009

Father of PHP - Rasmus Lerdorf


Rasmus Lerdorf is created PHP at that time PHP stands for "Personal Home Page". It was later changed to "Hypertext Preprocessor" by Suraaski and Gutmans during the rewrite to PHP3 as it's use extended beyond html page manipulation.

Tuesday, September 8, 2009

Using PHP code to get the current page URL?

the following function will get the current page URL using php code:

<?php

function currentPageURL() {

$curpageURL = ‘http’;


if ($_SERVER["HTTPS"] == “on”) {$curpageURL.= “s”;}

$curpageURL.= “://”;

if ($_SERVER["SERVER_PORT"] != “80″) {

$curpageURL.= $_SERVER["SERVER_NAME"].”:”.$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];


} else {

$curpageURL.= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];

}

return $curpageURL;

}


echo currentPageURL();

?>

Friday, September 4, 2009

How to create a Website

About how to create and install a website.

Creating a Website:

may seem like something quite simple at first, then you research a little more and quickly become baffled by terminology and technology alike.

The thing is that whenever you try to search for something relative to web design


it is generally written by a computer whiz kid who expects you to understand the lingo as fluently as he does.

I recognize that this is not usually the case so I have gathered up the relevant information and used my own personal expertise to help you understand the process a little easier.

The Basics

When building a website, there are several things you will need. It is important to understand exactly what these things are so as not to confuse yourself further.

Domain name

This is your website address; people will type this into their browser when they want to navigate to your site. It starts with www.

By now you will probably struggle to find one that you think is perfect because there are so many websites out there. The internet is far from a new technology and you may have to settle for your second best option. Don’t over complicate the domain name though because it has to be something memorable and easy to spell.

You may be able to pick up a domain name very cheaply or even free, do remember though that you will have to pay for the domain to be registered.

Try to keep it localized, for instance if you only operate in the UK then a .com domain may not be necessary and those domains are usually very expensive.

Hosting

This is where your domain name ‘lives’ and without it you wouldn’t have a site. Think of it as buying a filing cabinet for your office. The host stores all of your internet files and folders and you pay them an annual fee. Again you may be able to find a hosting package for free if you don’t require masses of space, however; they may not provide additional services and the customer service level will undoubtedly be poor.

If you decide to go with a free host bear in mind that you probably won’t get email accounts and as such you are complicating matters further!~

Website builder

Assuming you don’t know HTML, CSS, PHP, XML or any other of the delights involved with web design you will need a website builder.

If you have paid for your hosting you will see the benefits now because your host will more than likely provide you with an online builder that will automatically publish your website as and when you tell it to.

If you haven’t paid for your hosting or for whatever reason your host isn’t nice enough to provide a website builder then my personal recommendation is WYSIWYG.













Once you have had a look around the interface it really is very simple to use. The above image is a particularly old version of WYSIWIG and there are now versions available that are even easier to use. You don’t need any programming or HTML knowledge and it is very user friendly.

There are several options available as standard for instance a form wizard that enables you to put contact forms into your website without any PHP knowledge.

If you want your site to have advanced features such a login pages and registration etc then WYSIWIG is not for you and you will need to pay a designer, unless you fancy learning PHP and creating a MySQL database.

FTP Client

If you are using WYSIWIG then you won’t need an FTP client unless you make a mistake that you’ve published. If your website builder doesn’t have a publish feature or you’ve been brave and had a go at creating your own HTML then you will need an FTP.

This is an interface where you basically drag and drop the files into the public_html file or your root directory. This might sound mind boggling but I assure you the files are clearly titled so it isn’t an issue.

You will need the details of your host’s server, your login details and the file to upload to (root directory). Once the connection has been established all that remains is to upload the files and your site is ready!

Remember to name your homepage index.html or index.htm all in lowercase! You might think that such an insignificant issue wouldn’t cause many problems but it really does!

Here is a free FTP client:

http://filezilla-project.org/

Common Problems

When I go to my site all I see is a list of folders in my index, what’s wrong?

You need an FTP client, you will need to rename your homepage as index.html and don’t look at me that way trust me when I say its name is wrong. It has probably saved itself as something stupid such as index.html.html.

When I try to send off a dummy form through my site nothing happens?

The PHP coding is outside of the form area. You need to create a bigger form area around the entry fields.

When I go to a page on my site it says Error?

The page is either named wrong or it is a PHP page that hasn’t been updated and still remains as .html.

Your host’s server may be down or the page is saved in the wrong file directory, again you will need to check that it is in the root directory or public_html.

When I go to my site it says “the owner hasn’t uploaded any files yet” or something similar.

You haven’t published your files correctly. Make sure you have entered the correct parameters in the FTP client.

Original article from http://webupon.com/web-design/how-to-create-a-website-2/


Thursday, September 3, 2009

To set the pagination in CodeIgniter

See the code below: to set the pagination in CodeIgniter

In the controller: add the below code

$this->load->library(’pagination’);
$config['total_rows'] = $this->db->count_all(’code_image’);
$config['per_page'] = ‘3′;
$config['full_tag_open'] = ‘

’;
$config['full_tag_close'] = ‘

’;
$config['base_url'] = base_url().’upload/list_images/’;

$this->pagination->initialize($config);
//echo base_url();
$this->load->model(’code_image’);
$data['images'] = $this->code_image->get_images($config['per_page'],$this->uri->segment(3));

In the View: add the below code


pagination->create_links(); ?>


It will only display the 3 images per page.

To Configure the baseurl in CodeIgniter?

See the code:

In the application\config\ in that folder we have list of files., in that we have to modify the file is config.php


$config['base_url'] = “http://localhost/CodeIgniter/”;


and helpers :

appication \ config\ autoload.php file we have to modify.


$autoload['libraries'] = array();
to
$autoload['libraries'] = array(’database’, ’session’);

$autoload['helper'] = array(’form’, ‘url’);

Most Cutest Plumber

The most cutest plumber:

Monday, August 31, 2009

Wednesday, August 19, 2009

What is TikiWiki and how to install that one in Localhost?

Tiki is a leading open source full featured content management system (CMS) and Groupware (Intranet) suited for many types of online communities. Features include Articles, forums, blogs, directory, topics, wiki, polls, trackers, image galleries, webmail, and much more. Using PHP, MySQL and Smarty.

The main features of TikiWiki:

1) Maintaining the Wikies (Which is like wikipedia)

2) Maintaining the Forums (which is like phpBB)

3) Maintaining the Blogs (Which is like WordPress)

4) Maintaining the Articles (Which is like Digg)

5) Maintaining the Image Gallery (which is like Flickr)

6) Maintaining the Map Server (Which is like Google Maps)

7) Maintaining the Link Directory (Which is like DNOZ)

8) Maintaining the Multilingual (Which is like Babel Fish)

9) Maintaining the Bugtracker (Which is like Bugzilla)

10) Maintaining the Rss feeds (Which is like in & out)

11) It is free source software (LGPL).

Why use the TikiWiki:

1) Tiki has fine-grained user and group permissions. This allows you to easily give users access to exactly what they need.

2) Tiki is uses the powerful template engine called the Smarty, so we can easily maintained and customizing the templates.

3) Tiki uses the database abstraction which uses the ADODB and MySQL.

4) As a leading CMS application, Tiki has the many awards by the software community.

How to install the TikiWiki

1) Download the latest version of TikiWiki from the site : http://info.tikiwiki.org/tiki-index.php?page=Get+Tiki&bl=y

2) Unzip the downloaded file and place that file at your localhost www folder.

3) Run the file like http://localhost/tikiwiki-3.0/tiki-install.php

Download this from :

URL: http://info.tikiwiki.org/tiki-index.php

Wednesday, August 12, 2009

Latest News on Google ...

“Google makes constant changes to its search algorithms and infrastructure, but such a change in this magnitude has not been done since 2006,” said Matt Cutts, Principal Engineer, Google.

Google has unveiled the preview version of Caffeine, a new search engine technology which promises to “push the envelope on size, indexing speed, accuracy, comprehensiveness and other dimensions.”

Microsoft has been praising the momentum of its recently-launched Bing search engine and is believed to take long term approach for closing the gap with Google. Microsoft has also announced a tie-up with Yahoo. Google has a two-third share in the search engine market, as Yahoo stands second and Microsoft at third in a search engine market.

Decrease the website server loading time?

The following points to implement while implementing the website then the website is going fast to load and decrease the loading time.

1. Use YSlow for Firebug
2. Use Smush.it for your images
3. Move your Javascript files to the bottom of your page
4. Compress your Javascript
5. Use CSS sprites
6. Split up your data across different domains
7. Use the Google Ajax libraries.
8. Reduce your HTTP requests
9. Compress your CSS files
10. Use GET when using AJAX
11. Do your best to remove any 404s
12. When possible, declare height and width
13. Mon.itor.us
14. Create a website template
15. Check out Pylot
16. Webload
17. Online analyzation tools
18. Site-Perf
19. Choose link over @import
20. Use Cache
21. Use Gzip

The original resource is from http://www.webhostingsearch.com/articles/how-to-decrease-website-server-load.php

Tuesday, August 4, 2009

Javascript and css used for simple tooltip

The following code will generate the simple tooltip using Javascript and css.


The Javascript code :


<script language=”javascript” type=”text/javascript”>

/* This tooltip library was created by Anil Kumar */

function showtip(e,message){var x=0;var y=0;var m;var h;if(!e)


var e=window.event;if(e.pageX||e.pageY){x=e.pageX;y=e.pageY;}

else if(e.clientX||e.clientY){x=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;y=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;}

m=document.getElementById(’mktipmsg’);if((y>10)&&(y<450)){m.style.top=y-4+”px”;}

else{m.style.top=y+4+”px”;}


var messageHeigth=(message.length/20)*10+25;if((e.clientY+messageHeigth)>510)

{m.style.top=y-messageHeigth+”px”;}

if(x<850){m.style.left=x+20+”px”;}

else{m.style.left=x-170+”px”;}

m.innerHTML=message;m.style.display=”block”;m.style.zIndex=203;}


function hidetip(){var m;m=document.getElementById(’mktipmsg’);m.style.display=”none”;}


</script>


The CSS Code:


<style type=”text/css”>


.mktipmsg {padding: 5px; background-color: #FFF8DC; border: 1px solid #DEB887; width:180px;font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #6b6b6b; display:none; position:absolute;left:0px;top:0px; }

</style>



The html Code :


<a href=”javascript:void(0)” onmouseover=”showtip(event, ‘Simple tooltip text’);”

onmouseout=”hidetip();”>Hover your mouse here to see simple tooltip text.</a><br>


<div id=”mktipmsg” ></div>

Sunday, August 2, 2009

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?

Monday, June 29, 2009

Keep Smiling on your face that makes you to solve problems




















Keep smiling on your face that makes you to solve the many problems...
So, always maintain the smile on your face . . .

Thursday, June 25, 2009

The awesome and cute pictures with quatations

Please don't cry like this ... that brings you unhappy . . .

























Keep smiling like this . . . that makes you happy . . .

Sunday, June 21, 2009

The country wide social networking sites used

The following image will be clarify that in which country which social networking site mostly used.

Monday, June 15, 2009

Saturday, June 13, 2009

Thursday, June 11, 2009