<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7095256286886545300</id><updated>2012-01-20T03:53:50.242-08:00</updated><category term='PHP'/><category term='Drupal'/><category term='htaccess'/><category term='Magento'/><category term='Joomla'/><category term='Linux - Ubantu'/><category term='Javascript'/><category term='HTML'/><title type='text'>Experts: Magento, Joomla, Wordpress, Oscommerce, Drupal, htaccess, PHP, Javascript, JQuery,Ajax</title><subtitle type='html'>A blog provide the information regarding web development programming languages, codes, tips, useful links, software's links and many more.

Programming tips for Magento, Joomla, Wordpress, Oscommerce, Drupal, htaccess, JQuary, Mootools, PHP, Javascript, Smarty,  Ajax, HTML, CSS.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>76</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-981219036003436286</id><published>2010-12-28T01:57:00.000-08:00</published><updated>2010-12-28T01:58:33.981-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Javascript Auto Counter</title><content type='html'>&lt;pre&gt;
&amp;lt;script language="Javascript"&amp;gt;
var countdown_number= 0 ;
function countdown_trigger() {  
countdown_number++;
document.getElementById('countdown_text').innerHTML = countdown_number;
countdown = setTimeout('countdown_trigger()', 1000);
}
setTimeout('countdown_trigger()', 1000);
&amp;lt;/script&amp;gt;
&amp;lt;div id="countdown_text"&amp;gt;0&amp;lt;/div&amp;gt;

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-981219036003436286?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/981219036003436286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/12/javascript-auto-counter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/981219036003436286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/981219036003436286'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/12/javascript-auto-counter.html' title='Javascript Auto Counter'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3350605468316311061</id><published>2010-12-28T01:50:00.001-08:00</published><updated>2010-12-28T01:50:29.235-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to get directory path</title><content type='html'>echo dirname(__FILE__);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3350605468316311061?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3350605468316311061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/12/php-how-to-get-directory-path.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3350605468316311061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3350605468316311061'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/12/php-how-to-get-directory-path.html' title='PHP: How to get directory path'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1762531949284104220</id><published>2010-12-28T01:46:00.000-08:00</published><updated>2010-12-28T01:46:59.129-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Javascript: Compare two dates</title><content type='html'>Using following function we can compare the two dates in javscript:
&lt;pre&gt;
function getDateObject(dateString,dateSeperator)
{
//This function return a date object after accepting
//a date string ans dateseparator as arguments
var curValue=dateString;
var sepChar=dateSeperator;
var curPos=0;
var cDate,cMonth,cYear;

//extract day portion
curPos=dateString.indexOf(sepChar);
cDate=dateString.substring(0,curPos);

//extract month portion
endPos=dateString.indexOf(sepChar,curPos+1); 
cMonth=dateString.substring(curPos+1,endPos);

//extract year portion
curPos=endPos;
endPos=curPos+5;
cYear=curValue.substring(curPos+1,endPos);

//Create Date Object
dtObject=new Date(cYear,cMonth,cDate);
return dtObject;
}
var selectDate = getDateObject('15-02-2011',"-");
var startDate = getDateObject('10-02-2011',"-");
var endDate = getDateObject('15-02-2011',"-");

if((selectDate &gt;= startDate) &amp;&amp; (selectDate&lt;=endDate))
{
alert("startDate is less than endDate");
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1762531949284104220?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1762531949284104220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/12/javascript-compare-two-dates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1762531949284104220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1762531949284104220'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/12/javascript-compare-two-dates.html' title='Javascript: Compare two dates'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2745612715754767001</id><published>2010-11-30T06:21:00.000-08:00</published><updated>2010-11-30T06:26:42.840-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: Delete Order Code in Magento Admin</title><content type='html'>Delete the orders from admin in magento site:&lt;br /&gt;
&lt;div style="width:450px;height:600px;overflow:scroll;"&gt;
&amp;nbsp;File:&lt;b&gt; /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Add following code in function&amp;nbsp; &lt;/b&gt;&lt;b&gt;_prepareMassaction()&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;if (Mage::getSingleton('admin/session')-&amp;gt;isAllowed('sales/order/actions/delete')) {
            $this-&amp;gt;getMassactionBlock()-&amp;gt;addItem('delete_order', array(
                 'label'=&amp;gt; Mage::helper('sales')-&amp;gt;__('Delete'),
                 'url'  =&amp;gt; $this-&amp;gt;getUrl('*/sales_order/massDelete'),
            ));
        }&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;File: &lt;b&gt;/app/code/core/Mage/Adminhtml/controllers/Sales/OrderController.php&lt;/b&gt;&lt;/pre&gt;
&lt;pre&gt; public function massDeleteAction()
    {
        $orderIds = $this-&amp;gt;getRequest()-&amp;gt;getPost('order_ids', array());
        $countCancelOrder = 0;
        $countNonCancelOrder = 0;
        foreach ($orderIds as $orderId) {
            $order = Mage::getModel('sales/order')-&amp;gt;load($orderId);
            if ($order-&amp;gt;delete()) {
               
                $countCancelOrder++;
            } else {
                $countNonCancelOrder++;
            }
        }
        if ($countNonCancelOrder) {
            if ($countCancelOrder) {
                $this-&amp;gt;_getSession()-&amp;gt;addError($this-&amp;gt;__('%s order(s) cannot be deleted', $countNonCancelOrder));
            } else {
                $this-&amp;gt;_getSession()-&amp;gt;addError($this-&amp;gt;__('The order(s) cannot be deleted'));
            }
        }
        if ($countCancelOrder) {
            $this-&amp;gt;_getSession()-&amp;gt;addSuccess($this-&amp;gt;__('%s order(s) have been deleted.', $countCancelOrder));
        }
        $this-&amp;gt;_redirect('*/*/');
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2745612715754767001?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2745612715754767001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/11/magento-delete-order-code-in-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2745612715754767001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2745612715754767001'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/11/magento-delete-order-code-in-magento.html' title='Magento: Delete Order Code in Magento Admin'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-7168398932749843535</id><published>2010-11-30T06:16:00.000-08:00</published><updated>2010-11-30T06:16:49.522-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: Delete Test Order in Magento</title><content type='html'>You got a Magento project to develop, you created a Magento theme, 
you placed initial products and categories and you also placed some test
 orders to see if Shipping and Payment methods work as expected. 
Everything seems to be cool and the client wishes to launch the site. 
You launch it. When you enter the administration for the first time 
after the launch, you will see all your test orders there. You know 
those should be deleted. But how?&lt;br /&gt;
&lt;span id="more-250"&gt;&lt;/span&gt;&lt;br /&gt;
If you try to delete orders in the backend, you will find out that 
you can only set the status to “cancelled” and the order is still 
there.&amp;nbsp; Unfortunately, Magento doesn’t enable us to delete those via 
administration, so you will not see any “Delete order” button. This can 
be quite frustrating both to developers and the merchants. People coming
 from an SAP world find the inability to delete to have some merit but 
there should be a status that removes the sales count from the reports 
i.e. sales, inventory, etc.&lt;br /&gt;
&lt;b&gt;So, what to do?&lt;/b&gt;&lt;br /&gt;
You need to go to MySQL admin client and run this query:

&lt;br /&gt;
&lt;pre&gt;SET FOREIGN_KEY_CHECKS=0;

TRUNCATE `sales_order`;
TRUNCATE `sales_order_datetime`;
TRUNCATE `sales_order_decimal`;
TRUNCATE `sales_order_entity`;
TRUNCATE `sales_order_entity_datetime`;
TRUNCATE `sales_order_entity_decimal`;
TRUNCATE `sales_order_entity_int`;
TRUNCATE `sales_order_entity_text`;
TRUNCATE `sales_order_entity_varchar`;
TRUNCATE `sales_order_int`;
TRUNCATE `sales_order_text`;
TRUNCATE `sales_order_varchar`;
TRUNCATE `sales_flat_quote`;
TRUNCATE `sales_flat_quote_address`;
TRUNCATE `sales_flat_quote_address_item`;
TRUNCATE `sales_flat_quote_item`;
TRUNCATE `sales_flat_quote_item_option`;
TRUNCATE `sales_flat_order_item`;
TRUNCATE `sendfriend_log`;
TRUNCATE `tag`;
TRUNCATE `tag_relation`;
TRUNCATE `tag_summary`;
TRUNCATE `wishlist`;
TRUNCATE `log_quote`;
TRUNCATE `report_event`;

ALTER TABLE `sales_order` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_datetime` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_decimal` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_entity` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_entity_datetime` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_entity_decimal` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_entity_int` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_entity_text` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_entity_varchar` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_int` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_text` AUTO_INCREMENT=1;
ALTER TABLE `sales_order_varchar` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_address` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_address_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_item` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_quote_item_option` AUTO_INCREMENT=1;
ALTER TABLE `sales_flat_order_item` AUTO_INCREMENT=1;
ALTER TABLE `sendfriend_log` AUTO_INCREMENT=1;
ALTER TABLE `tag` AUTO_INCREMENT=1;
ALTER TABLE `tag_relation` AUTO_INCREMENT=1;
ALTER TABLE `tag_summary` AUTO_INCREMENT=1;
ALTER TABLE `wishlist` AUTO_INCREMENT=1;
ALTER TABLE `log_quote` AUTO_INCREMENT=1;
ALTER TABLE `report_event` AUTO_INCREMENT=1;

-- reset customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
TRUNCATE `customer_address_entity_decimal`;
TRUNCATE `customer_address_entity_int`;
TRUNCATE `customer_address_entity_text`;
TRUNCATE `customer_address_entity_varchar`;
TRUNCATE `customer_entity`;
TRUNCATE `customer_entity_datetime`;
TRUNCATE `customer_entity_decimal`;
TRUNCATE `customer_entity_int`;
TRUNCATE `customer_entity_text`;
TRUNCATE `customer_entity_varchar`;
TRUNCATE `log_customer`;
TRUNCATE `log_visitor`;
TRUNCATE `log_visitor_info`;

ALTER TABLE `customer_address_entity` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_datetime` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_decimal` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_int` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_text` AUTO_INCREMENT=1;
ALTER TABLE `customer_address_entity_varchar` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_datetime` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_decimal` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_int` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_text` AUTO_INCREMENT=1;
ALTER TABLE `customer_entity_varchar` AUTO_INCREMENT=1;
ALTER TABLE `log_customer` AUTO_INCREMENT=1;
ALTER TABLE `log_visitor` AUTO_INCREMENT=1;
ALTER TABLE `log_visitor_info` AUTO_INCREMENT=1;

-- Reset all ID counters
TRUNCATE `eav_entity_store`;
ALTER TABLE  `eav_entity_store` AUTO_INCREMENT=1;

SET FOREIGN_KEY_CHECKS=1;

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-7168398932749843535?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/7168398932749843535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/11/magento-delete-test-order-in-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7168398932749843535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7168398932749843535'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/11/magento-delete-test-order-in-magento.html' title='Magento: Delete Test Order in Magento'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4822431963543182407</id><published>2010-10-07T03:44:00.000-07:00</published><updated>2010-10-07T03:44:27.683-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: Getting product attributes values and labels</title><content type='html'>I have found that it is very useful to be able to get attributes from the system and use them in places other than a products category page. I always forget the exact syntax to use so, this is going to be my unofficial cheat sheet.

This is how to get a drop down lists options. I don’t think it will work for a mulit-select attribute. I stick the value/label pairs into an array to use how I please.
&lt;pre&gt;
$attribute = Mage::getModel('eav/config')-&gt;getAttribute('catalog_product', 'attribute_id');
foreach ( $attribute-&gt;getSource()-&gt;getAllOptions(true, true) as $option){
$attrubuteArray[$option['value']] = $option['label'];
}

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4822431963543182407?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4822431963543182407/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/10/magento-getting-product-attributes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4822431963543182407'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4822431963543182407'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/10/magento-getting-product-attributes.html' title='Magento: Getting product attributes values and labels'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-571116362130980841</id><published>2010-07-30T04:44:00.000-07:00</published><updated>2010-07-30T04:44:51.241-07:00</updated><title type='text'>Magento: How to add product to magento programmatically</title><content type='html'>&lt;pre&gt;
$product = Mage::getModel('catalog/product');
$product-&gt;setWebsiteIds(array('1'));
$product-&gt;setAttributeSetId(4);
$product-&gt;setSku(time());
$product-&gt;setType('Simple Product');
$product-&gt;setTypeId('simple'); 
$product-&gt;setName('ranjeet test product'.time());
$product-&gt;setDescription('description');
$product-&gt;setShortDescription('[short_description]');
$product-&gt;setPrice('12.00');
$product-&gt;setWeight('11');
$product-&gt;setStatus(1);
$product-&gt;setTaxClassId(2);
$product-&gt;setCategoryIds('2');
$product-&gt;setVisibility(3);
$product-&gt;setCreatedAt(strtotime('now'));
//get stock 
$stockData = $product-&gt;getStockData();
$stockData['qty'] = 10;
$stockData['is_in_stock'] = 1;
$stockData['manage_stock'] = 1;
$stockData['use_config_manage_stock'] = 0;
$product-&gt;setStockData($stockData);


$imagePath=Mage::getBaseDir('media') . DS . 'import' ."/alyssia_02-2.jpg";
$product-&gt;addImageToMediaGallery($imagePath, 
array('image','small_image','thumbnail'), false, false);
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-571116362130980841?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/571116362130980841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/07/magento-how-to-add-product-to-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/571116362130980841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/571116362130980841'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/07/magento-how-to-add-product-to-magento.html' title='Magento: How to add product to magento programmatically'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-869080448351855117</id><published>2010-06-06T21:45:00.001-07:00</published><updated>2010-06-06T21:45:45.943-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Joomla'/><title type='text'>Joomla: How to use external database connection in joomla</title><content type='html'>If you need to access tables within the same database as your Joomla! installation then you can simply use the JFactory-&gt;getDBO  method. 
This uses the already established connection that Joomla! uses to connect to the database. For example:
&lt;pre&gt;
&amp;lt? $db = JFactory::getDBO(); ?&amp;gt;
&lt;/pre&gt;
$db is now an object of type JDatabase and you can perform database operations on it using the usual methods.

But what if you want to connect to a completely different database 
from the one used by Joomla!?.This might be a different database on 
the same machine as your Joomla! site or it might be on a different 
host and perhaps even require a different database driver. Well, 
you can do this using the JDatabase-&gt;getInstance method.

&lt;pre&gt;
&amp;lt;?php
$option = array(); //prevent problems
 
$option['driver']   = 'mysql';            // Database driver name
$option['host']     = 'db.myhost.com';    // Database host name
$option['user']     = 'fredbloggs';       // User for database authentication
$option['password'] = 's9(39s£h[%dkFd';   // Password for database authentication
$option['database'] = 'bigdatabase';      // Database name
$option['prefix']   = 'abc_';             // Database prefix (may be empty)
 
$db = &amp; JDatabase::getInstance( $option );
?&amp;gt;


&lt;/pre&gt;
$db is now an object of type JDatabase and you can perform database operations on it using the usual methods.
Note that if the database uses a non-standard port number then this can be specified by adding it to the end of the host name. For example, you might have your MySQL database running on port 3307 (the default is port 3306), in which case your host name might be 'db.myhost.com:3307'.
One feature of using JDatabase-&gt;getInstance is that if another call is made with the same parameters it will return the previously created object rather than creating a fresh one.
Note, however, that the parameters must match exactly for this to happen. For example, if two calls were made to a MySQL database using JDatabase-&gt;getInstance, with the first using a host name of 'db.myhost.com' and the second using 'db.myhost.com:3306', then two separate connections would be made, even though port 3306 is the default port for MySQL and so the parameters are logically the same.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-869080448351855117?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/869080448351855117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/06/joomla-how-to-use-external-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/869080448351855117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/869080448351855117'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/06/joomla-how-to-use-external-database.html' title='Joomla: How to use external database connection in joomla'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-573885993014885449</id><published>2010-05-29T02:11:00.001-07:00</published><updated>2010-05-29T02:11:57.816-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get customer information</title><content type='html'>You can get logged customer account information easily using following code
&lt;pre&gt;
$customer =  Mage::getSingleton('customer/session')-&gt;getCustomer();
$customer-&gt;getId();
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-573885993014885449?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/573885993014885449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-customer-information.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/573885993014885449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/573885993014885449'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-customer-information.html' title='Magento: How to get customer information'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2886903677112837049</id><published>2010-05-29T02:09:00.000-07:00</published><updated>2010-05-29T02:09:46.679-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get current currency code</title><content type='html'>Gets current currency code using in magento site
&lt;pre&gt;
$currency_code = Mage::app()-&gt;getStore()-&gt;getCurrentCurrencyCode();
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2886903677112837049?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2886903677112837049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-current-currency.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2886903677112837049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2886903677112837049'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-current-currency.html' title='Magento: How to get current currency code'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4739606521057851148</id><published>2010-05-19T02:45:00.000-07:00</published><updated>2010-05-19T02:47:53.697-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get product for specific category</title><content type='html'>&lt;pre&gt;
&amp;lt;?php
$cat_id = 8; // set desired category id
$category = Mage::getModel('catalog/category')-&amp;gt;load($cat_id);
$products = $category-&amp;gt;getProductCollection()-&amp;gt;addCategoryFilter($category
-&amp;gt;addAttributeToSelect('*');
 foreach ( $products as $_product ): ?&amp;gt;
    &amp;lt;a href="&amp;lt;?php echo $_product-&amp;gt;getProductUrl() ?&amp;gt;"&amp;gt;
&amp;lt;img src="&amp;lt;?php echo $this-&amp;gt;helper('catalog/image')-&amp;gt;init($_product,
 'small_image')-&amp;gt;resize(135, 135); ?&amp;gt;" width="135" height="135" 
title="&amp;lt;?php echo $_product-&amp;gt;getName() ?&amp;gt;"
 alt="&amp;lt;?php echo $_product-&amp;gt;getName() ?&amp;gt;" /&amp;gt;&amp;lt;/a&amp;gt;
&amp;lt;?php endforeach; ?&amp;gt;

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4739606521057851148?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4739606521057851148/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-product-for-specific.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4739606521057851148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4739606521057851148'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-product-for-specific.html' title='Magento: How to get product for specific category'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-6262651520778503301</id><published>2010-05-19T02:42:00.000-07:00</published><updated>2010-05-19T02:42:36.305-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get category URL by ID</title><content type='html'>&lt;pre&gt;
&amp;lt;?php echo Mage::getModel("catalog/category")-&gt;load(5)-&gt;getUrl() ?&amp;gt; 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-6262651520778503301?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/6262651520778503301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-category-url-by-id.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6262651520778503301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6262651520778503301'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-category-url-by-id.html' title='Magento: How to get category URL by ID'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-7199948435098590635</id><published>2010-05-18T05:43:00.000-07:00</published><updated>2010-05-18T05:47:46.185-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to use site URL in Magento CMS pages</title><content type='html'>You may be familiar with some of the template directives you can use in the Magento CMS pages and blocks. Their syntax is distinguished by the double curly braces that enclose the directive
&lt;br/&gt;
The url paramter generates a URL using the Magento routing. This means it will take anything you pass to the store url directive append it to the store base URL and append a ‘/’. So for example, you can create a URL to the contact us page like so:
&lt;pre&gt;
href="{{store url=""}}"
&lt;/pre&gt;
&lt;br/&gt;

If you need to create a URL to a category or product, you can use the direct_url parameter. In that case, whatever you pass to the store directive will simply be appended to the base URL. For example, if your settings are that .html is added to your links, a link to a category can be created like so:
&lt;pre&gt;
href="{{store direct_url="privacy"}}:
&lt;/pre&gt;
&lt;br/&gt;
If you need to generate URLs with query parameters, there are two ways Using the _query parameter, you can add an arbitrary query string to the URL like so:
&lt;pre&gt;
href="{{store direct_url="category/subcategory.html" 
_query="a=param_a&amp;b=param_b"}}"
&lt;/pre&gt;
&lt;br/&gt;
Or you can use the second parameter syntax where you define the query parameter name with the parameter itself:

&lt;pre&gt;
href="{{store direct_url="category/subcategory.html" 
_query_a="param_a" _query_b="param_b"}}"
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-7199948435098590635?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/7199948435098590635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-use-site-url-in-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7199948435098590635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7199948435098590635'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-use-site-url-in-magento.html' title='Magento: How to use site URL in Magento CMS pages'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4178282949983922206</id><published>2010-05-18T05:33:00.000-07:00</published><updated>2010-05-18T05:33:12.663-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to add images in CMS Pages and Blocks</title><content type='html'>Its not a hard code just use the following path to get the images from skin folder
&lt;br/&gt;

&lt;pre&gt;
src="{{skin url=’images/dog-playing.jpg’}}"
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4178282949983922206?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4178282949983922206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-add-images-in-cms-pages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4178282949983922206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4178282949983922206'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-add-images-in-cms-pages.html' title='Magento: How to add images in CMS Pages and Blocks'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-6911926526426624362</id><published>2010-05-18T05:30:00.000-07:00</published><updated>2010-05-18T05:30:43.531-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: Add Static Block to CMS Page</title><content type='html'>There is definitely nothing complicated about doing this. Static blocks are a great way to divide up different types of data blocks to make updating content easier.
&lt;br/&gt;
There are just two simple steps to adding a static block to a cms page. First, create your static block. You will use the identifier to call it on the cms page. Let’s say, for this example, we call the identifier “home-page-promo”.
&lt;br/&gt;
Once your static block is created, edit whatever cms page you would like this block to appear on, and simply put this code in right where you want it to show up:
&lt;pre&gt;
{{block type="cms/block" block_id="home-page-promo"}}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-6911926526426624362?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/6911926526426624362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-add-static-block-to-cms-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6911926526426624362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6911926526426624362'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-add-static-block-to-cms-page.html' title='Magento: Add Static Block to CMS Page'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-431240851942551488</id><published>2010-05-18T05:27:00.000-07:00</published><updated>2010-05-18T05:28:26.122-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get content of static block in magento</title><content type='html'>There are some small code to get content or other info of static block which you created on admin panel.
&lt;pre&gt;
&amp;lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')
-&gt;setBlockId('yourBlockName')-&gt;toHtml() ?&amp;gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-431240851942551488?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/431240851942551488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-content-of-static.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/431240851942551488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/431240851942551488'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/05/magento-how-to-get-content-of-static.html' title='Magento: How to get content of static block in magento'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1357305226317853393</id><published>2010-04-16T03:00:00.001-07:00</published><updated>2010-04-16T03:00:35.664-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to update the invoice output PDF font style and size</title><content type='html'>In magento it is very simple to change the font type and font size for invoice PDF output. 
There are 2 files where some code will change. Please look below:
&lt;pre&gt;
1. In app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php file

line number : 564
 $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() .
  '/lib/LinLibertineFont/LinLibertineC_Re-2.8.0.ttf');
 
 2. In app/code/core/Mage/Sales/Model/Order/Pdf/items/Abstract.php file
 line number : 262
  $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() .
   '/lib/LinLibertineFont/LinLibertineC_Re-2.8.0.ttf'); 
  &lt;/pre&gt;
  
  In magento default font for PDF output is LinLibertineC_Re-2.8.0.ttf.
  You can easly change the font. Please upload any font file (.ttf) in 'lib' directory and use the path in upper lines&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1357305226317853393?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1357305226317853393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-how-to-update-invoice-output.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1357305226317853393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1357305226317853393'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-how-to-update-invoice-output.html' title='Magento: How to update the invoice output PDF font style and size'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8032874037164203199</id><published>2010-04-14T02:05:00.000-07:00</published><updated>2010-04-14T02:10:47.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Font family (HTML)</title><content type='html'>In HTML and XHTML, a font face or font family is the typeface that will be applied by a web browser to some text. The font is relevant for the display of text on the screen, on a printer or another device.
&lt;br/&gt;
A font family and other presentational attribute of a font may be applied in HTML code in either cascading style sheets (CSS) or the deprecated HTML font element.
&lt;br/&gt;

In CSS, a font-family (or face in HTML) in fact consists of a set of related fonts, grouped as font families. For example, the Times family includes different font sizes, styles (like roman and italic) and weight (like regular and bold).

The web browser will only be able to apply a font if it is available to it, which is not always the case. HTML code writers may list in preferential order font families to use when rendering text. The font list is separated by commas (as shown above). To avoid unexpected results, the last font family on the font list will be one of the five generic families which are by default always available in HTML and CSS. In the absence of a font being found, the web browser will use its default font, which may be a user defined one. Depending on the web browser, a user can in fact override the font defined by the code writer. This may be for personal taste reasons, but may also be because of some physical limitation of the user - such as the need for a larger font size, or the avoiding of certain colours.
&lt;br/&gt;

&lt;table style="border:1px solid #AAAAAA;background:#E5E5E5;" cellspacing="2"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;th&gt;Font&lt;/th&gt;
&lt;th&gt;Example (dependent on installed fonts)&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Times New Roman&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: 'Times New Roman',times,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Roman&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Roman,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arial&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Arial,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Garamond&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Garamond,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Palatino&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Palatino,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Antiqua&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Antiqua,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minion&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Minion,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Helvetica&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Helvetica,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Swiss&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Swiss,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Impact&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Impact,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Script&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Script,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decorative&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Decorative,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blackletter&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Blackletter,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fraktur&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Fraktur,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comic Sans&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: 'Comic Sans MS','comic sans ms','comic sans',serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Modern&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: Modern,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Courier&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: courier,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Calibri&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: calibri,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Verdana&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: verdana,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frosty&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: frosty,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Georgia&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: georgia,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avqest&lt;/td&gt;
&lt;td&gt;&lt;span style="font-family: avqest,serif;"&gt;Expert: Magento Joomla Wordpress Drupal &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8032874037164203199?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8032874037164203199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/font-family-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8032874037164203199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8032874037164203199'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/font-family-html.html' title='Font family (HTML)'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5780429074311734040</id><published>2010-04-06T04:59:00.001-07:00</published><updated>2010-04-06T04:59:42.335-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get order shipping address details by order id</title><content type='html'>Here is the code you can use to get the order shipping address/ billing address details
&lt;pre&gt;
$incrementid ="100000004";
$_order = Mage::getModel('sales/order')-&gt;loadByIncrementId($incrementid);

OR
$order_id ="4";
$_order = Mage::getModel('sales/order')-&gt;load($order_id);

$_shippingAddress = $_order-&gt;getShippingAddress();
echo $_shippingAddress-&gt;getFirstname() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getLastname() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getCompany() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getStreetFull() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getRegion() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getCity() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getPostcode() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getTelephone() . '&lt;br /&gt;';
echo $_shippingAddress-&gt;getCountry_id() . '&lt;br /&gt;';
echo $_order-&gt;getCustomerId();
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5780429074311734040?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5780429074311734040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-how-to-get-order-shipping.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5780429074311734040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5780429074311734040'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-how-to-get-order-shipping.html' title='Magento: How to get order shipping address details by order id'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4336373348399659746</id><published>2010-04-05T22:33:00.001-07:00</published><updated>2010-04-05T22:33:45.006-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to use magento database connection, classes, functions outside.</title><content type='html'>I need to make a page(like ajax page) outside from magento , but i need magento database connection there. I searched my code by then i find following code to call all classes , function outside from magento site
Here is code:-
&lt;pre&gt;
include("./app/Mage.php");
Mage::app('default');
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4336373348399659746?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4336373348399659746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-how-to-use-magento-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4336373348399659746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4336373348399659746'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-how-to-use-magento-database.html' title='Magento: How to use magento database connection, classes, functions outside.'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5941908547732898114</id><published>2010-04-05T03:21:00.001-07:00</published><updated>2010-04-05T03:32:22.736-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento localhost site problem with firefox browser</title><content type='html'>I faced major problem with magento on localhost with firefox browser. No login for frontend and admin works. 
Add to cart also not works.
&lt;br/&gt;
&lt;b&gt;Firefox does not set cookies for http://localhost&lt;/b&gt;&lt;br/&gt;
For some reason Firefox is "blocking" localhost or any hostname without dot.&lt;br/&gt;

I have empty cookie exceptions list on my Firefox preferences. Adding "localhost" and setting it as "enable" (always accept) does not work.&lt;br/&gt;
&lt;br/&gt;

I solved problem.&lt;br/&gt;
Please use You system ip at the place of localhost like &lt;br/&gt;
http://localhost/magento to http://192.168.1.88/magento it will works 100%&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5941908547732898114?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5941908547732898114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-localhost-site-problem-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5941908547732898114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5941908547732898114'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/04/magento-localhost-site-problem-with.html' title='Magento localhost site problem with firefox browser'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1842230700186125853</id><published>2010-03-14T23:35:00.000-07:00</published><updated>2010-03-14T23:39:04.475-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>PHPBB Forum login from outside in magento site</title><content type='html'>In one my magento project client want to integrate the phpbb forum with magento. Client want the common login for both magento and phpbb. After some research i make a following code for phpbb. Its help for successful login from outside for forum.
&lt;pre&gt;
define('IN_PHPBB', true);
define('IN_LOGIN', true);
$phpbb_root_path = "forum/";     
$phpEx = "php";
require($phpbb_root_path . 'common.php');
$username = $_REQUEST['username'];
$user_password  = $_REQUEST['password'];
$user-&gt;session_begin();
$result = $auth-&gt;login( $username, $user_password );
   
if ( $result[ "status" ] == LOGIN_SUCCESS )
{
if ( defined( "IN_CHECK_BAN" ) &amp;&amp;
 $result[ "user_row" ][ "user_type" ] != USER_FOUNDER )
{
return;
}
$successurl = $_GET[ "successurl" ];
if ( $successurl == "" )
{
$successurl = "./customer/account/";
}
$successurl = reapply_sid( $successurl );
$successurl = str_replace( "&amp;amp;", "&amp;", $successurl );
header( "Location: $successurl" );
exit( 0 );
}
else
{
die( $result[ "error_msg" ] );
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1842230700186125853?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1842230700186125853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/03/phpbb-forum-login-from-outside.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1842230700186125853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1842230700186125853'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/03/phpbb-forum-login-from-outside.html' title='PHPBB Forum login from outside in magento site'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-7814686943142141314</id><published>2010-03-05T23:01:00.000-08:00</published><updated>2010-03-05T23:01:40.087-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Joomla'/><title type='text'>Joomla site / root path</title><content type='html'>Joomla important paths:
&lt;pre&gt;
Site Root Path:
echo JURI::root(); // http://sitename.com/  

Site Directory Path   
echo JPATH_BASE; //   /var/www/sitefolder/
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-7814686943142141314?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/7814686943142141314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/03/joomla-site-root-path.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7814686943142141314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7814686943142141314'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/03/joomla-site-root-path.html' title='Joomla site / root path'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3674572771212980347</id><published>2010-02-22T20:18:00.000-08:00</published><updated>2010-02-22T20:18:09.567-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux - Ubantu'/><title type='text'>How open rar file or Extract rar files under ubantu</title><content type='html'>How do I open rar archive files under Linux / UNIX operating systems?
RAR is a proprietary file format for data compression and archiving, developed by Eugene Roshal.

Under Linux and UNIX, use command called unrar. By default unrar is not being installed on Linux, FreeBSD or UNIX oses. You can install unrar command with the help of apt-get or yum command.

Install unrar command
&lt;pre&gt;
sudo apt-get install unrar //for ubantu/Debian Linux
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3674572771212980347?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3674572771212980347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/how-open-rar-file-or-extract-rar-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3674572771212980347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3674572771212980347'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/how-open-rar-file-or-extract-rar-files.html' title='How open rar file or Extract rar files under ubantu'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2185565354596207592</id><published>2010-02-20T02:31:00.000-08:00</published><updated>2010-02-20T02:33:32.022-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to overload a core controller in Magneto</title><content type='html'>In my one magneto project i want the bridge between magento and phpbb. So i need a to edit the user login class without effect the core code. I need to overload the controller "Mage_Customer_AccountController". I try many code but no luck. Then i find one code i want to discuss with all. Make own extention add code in etc/module.XML following
&lt;pre&gt;
&lt;global&gt;  
&amp;#60;rewrite&amp;#62;
  &amp;#60;Mage_Customer&amp;#62;
 &amp;#60;from&amp;#62;#^/account/create/#&amp;#60;/from&amp;#62;
    &amp;#60;to&amp;#62;Bridge_Magentophpbb_Controllers_Account&amp;#60;/to&amp;#62;
  &amp;#60;/Mage_Customer&amp;#62;
&amp;#60;/rewrite&amp;#62;
&lt;global&gt;
require_once 'Mage/Customer/controllers/AccountController.php';

class Newmodule_Name_AccountController extends Mage_Customer_AccountController
{
you code here
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2185565354596207592?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2185565354596207592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/magento-how-to-overload-core-controller.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2185565354596207592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2185565354596207592'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/magento-how-to-overload-core-controller.html' title='Magento: How to overload a core controller in Magneto'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3177640211437117250</id><published>2010-02-18T21:05:00.000-08:00</published><updated>2010-02-18T21:06:15.463-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Days diffrence between two dates in PHP</title><content type='html'>It is very simple to find the day difference between two dates. Here is simple PHP function to find difference.
&lt;pre&gt;
function dateDiff($dformat, $endDate, $beginDate)
{
$date_parts1=explode($dformat, $beginDate);
$date_parts2=explode($dformat, $endDate);
$start_date=gregoriantojd($date_parts1[1],
 $date_parts1[2], $date_parts1[0]);
$end_date=gregoriantojd($date_parts2[1],
 $date_parts2[2], $date_parts2[0]);
return $end_date - $start_date;
}
$enddate= "2010-09-30";
$startdate= "2010-01-30";
echo dateDiff("-", $enddate, $startdate);
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3177640211437117250?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3177640211437117250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-days-diffrence-between-two-dates-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3177640211437117250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3177640211437117250'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-days-diffrence-between-two-dates-in.html' title='PHP: Days diffrence between two dates in PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8623539192249037799</id><published>2010-02-14T21:14:00.000-08:00</published><updated>2010-02-15T01:34:27.445-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>How to highlight the search result with search keywords using javascript and css</title><content type='html'>&lt;b&gt;Highlight &lt;span style="background-color: #ffe599;"&gt;search&lt;/span&gt; result keywords using JavaScript and CSS.&lt;/b&gt;&lt;br /&gt;
You see it in Google &lt;span style="background-color: #ffe599;"&gt;search&lt;/span&gt; results and a lot of other sites that have good &lt;span style="background-color: #ffe599;"&gt;search &lt;/span&gt;functionality. When you perform a search, your words or phrases are highlighted in the &lt;span style="background-color: #ffe599;"&gt;search&lt;/span&gt; results making it easy for you to find the most relevant content.
&lt;br /&gt;
&lt;div style="border: 1px solid rgb(204, 204, 204); height: 500px; overflow: scroll; width: 440px;"&gt;
&lt;pre&gt;//use this code below the result
function highlightOnLoad() {
var keys = document.searchform.keywords.value;
//keywords is input type and searchform is form name
if (keys) { 
var searchString = getSearchString();
//content div used to show the result or result div
var textContainerNode = document.getElementById("content");
var searchTerms = searchString.split('|');
for (var i in searchTerms)  {
var regex = new RegExp("&amp;gt;([^&amp;lt;]*)?("+searchTerms[i]+")([^&amp;gt;]*)?&amp;lt;","ig");
highlightTextNodes(textContainerNode, regex, i);     
}
var searchTermDiv = document.createElement("H2");
searchTermDiv.className = 'searchterms';
searchTermDiv.innerHTML = searchInfo;
textContainerNode.insertBefore(searchTermDiv, textContainerNode.childNodes[0]);
}}
function getSearchString() {
var keys = document.searchform.keywords.value;
var rawSearchString = keys.replace(/[a-zA-Z0-9\?\&amp;amp;\=\%\#]+s\=(\w+)(\&amp;amp;.*)?/,"$1");
return rawSearchString.replace(/\%20|\+/g,"\|");
}
function highlightTextNodes(element, regex, termid) {
var tempinnerHTML = element.innerHTML;
element.innerHTML = tempinnerHTML.replace(regex,'&amp;gt;$1&amp;lt;span class="highlighted term'+termid+'"&amp;gt;$2&amp;lt;/span&amp;gt;$3&amp;lt;');
}

highlightOnLoad(); 

//css for result highlight
span.term0 {
  background-color: #161633;
}
span.term1 {
  background-color: #331616;
}
span.term2 {
  background-color: #163316;
}


&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8623539192249037799?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8623539192249037799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/how-to-highlight-search-result-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8623539192249037799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8623539192249037799'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/how-to-highlight-search-result-with.html' title='How to highlight the search result with search keywords using javascript and css'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2763809311603756094</id><published>2010-02-12T04:44:00.000-08:00</published><updated>2010-02-12T04:46:25.288-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Create thumbnail and add text on thumbnail</title><content type='html'>It is very simple php class to create thumbnail and add the text or string on the thumbnail on the fly. My one client want the site name on all thumbnail. So i created this code for my client. Here is the code:
&lt;div style="border: 1px solid rgb(204, 204, 204); overflow: scroll; width: 440px; height: 500px;"&gt;
&lt;pre&gt;
class Thumb_image {
var $save_to_file = true;
var $image_type = -1;
var $quality = 100;
var $cut_x = 0;
var $cut_y = 0;    
function SaveImage($im, $filename) { 
$res = null; 
// ImageGIF is not included into some GD2 releases, so it might not work
// output png if gifs are not supported
if(($this-&gt;image_type == 1)  &amp;&amp; 
!function_exists('imagegif')) $this-&gt;image_type = 3;
switch ($this-&gt;image_type) {
case 1:
if ($this-&gt;save_to_file) {
$res = ImageGIF($im,$filename);
}
else {
header("Content-type: image/gif");
$res = ImageGIF($im);
}
break;
case 2:
if ($this-&gt;save_to_file) {
$res = ImageJPEG($im,$filename,$this-&gt;quality);
}
else {
header("Content-type: image/jpeg");
$res = ImageJPEG($im, NULL, $this-&gt;quality);
}
break;
case 3:
if (PHP_VERSION &gt;= '5.1.2') {
// Convert to PNG quality.
// PNG quality: 0 (best quality, bigger file) to 9 (worst quality, smaller file)
$quality = 9 - min( round($this-&gt;quality / 10), 9 );
if ($this-&gt;save_to_file) {
$res = ImagePNG($im, $filename, $quality);
}
else {
header("Content-type: image/png");
$res = ImagePNG($im, NULL, $quality);
}
}
else {
if ($this-&gt;save_to_file) {
$res = ImagePNG($im, $filename);
}
else {
header("Content-type: image/png");
$res = ImagePNG($im);
}
}
break;
}    return $res; 
}

function ImageCreateFromType($type,$filename) {
$im = null;
switch ($type) {
case 1:
$im = ImageCreateFromGif($filename);
break;
case 2:
$im = ImageCreateFromJpeg($filename);
break;
case 3:
$im = ImageCreateFromPNG($filename);
break;
}
return $im;
}
// generate thumb from image and save it
function GenerateThumbFile($from_name, $to_name,$X,$Y,$textString) {
$this-&gt;max_x=$X;
$this-&gt;max_y=$Y;
// if src is URL then download file first
$temp = false;
if (substr($from_name,0,7) == 'http://') {
$tmpfname = tempnam("tmp/", "TmP-");
$temp = @fopen($tmpfname, "w");
if ($temp) {
@fwrite($temp, @file_get_contents($from_name)) or die("Cannot download image");
@fclose($temp);
$from_name = $tmpfname;
}
else {
die("Cannot create temp file");
}
}
// check if file exists
if (!file_exists($from_name)) die("Source image does not exist!");

// get source image size (width/height/type)
// orig_img_type 1 = GIF, 2 = JPG, 3 = PNG
list($orig_x, $orig_y, $orig_img_type, $img_sizes) = @GetImageSize($from_name);
if($this-&gt;max_x=="") { $this-&gt;max_x=$orig_x;}
if($this-&gt;max_y=="") { $this-&gt;max_y=$orig_y;}
// cut image if specified by user
if ($this-&gt;cut_x &gt; 0) $orig_x = min($this-&gt;cut_x, $orig_x);
if ($this-&gt;cut_y &gt; 0) $orig_y = min($this-&gt;cut_y, $orig_y); 
// should we override thumb image type?
$this-&gt;image_type = ($this-&gt;image_type != -1 ? $this-&gt;image_type : $orig_img_type); 
// check for allowed image types
if ($orig_img_type &lt; 1 or $orig_img_type &gt; 3) die("Image type not supported");

if ($orig_x &gt; $this-&gt;max_x or $orig_y &gt; $this-&gt;max_y) {   

// resize
$per_x = $orig_x / $this-&gt;max_x;
$per_y = $orig_y / $this-&gt;max_y;
if ($per_y &gt; $per_x) {
$this-&gt;max_x = $orig_x / $per_y;
}
else {
$this-&gt;max_y = $orig_y / $per_x;
} 
}
else {
// keep original sizes, i.e. just copy
if ($this-&gt;save_to_file) {
@copy($from_name, $to_name);
}
else {
switch ($this-&gt;image_type) {
case 1:
header("Content-type: image/gif");
readfile($from_name);
break;
case 2:
header("Content-type: image/jpg");
readfile($from_name);
break;
case 3:
header("Content-type: image/png");
readfile($from_name);
break;
}
}
return;
}
if ($this-&gt;image_type == 1) {
// should use this function for gifs (gifs are palette images)
$ni = imagecreate($this-&gt;max_x, $this-&gt;max_y);
}
else {
// Create a new true color image
$ni = imagecreatetruecolor($this-&gt;max_x,$this-&gt;max_y);
} 
// Fill image with white background (255,255,255)
$white = imagecolorallocate($ni, 255, 255, 255);
imagefilledrectangle( $ni, 0, 0, $this-&gt;max_x, $this-&gt;max_y, $white);
// Create a new image from source file
$im = $this-&gt;ImageCreateFromType($orig_img_type,$from_name);

// Copy the palette from one image to another
imagepalettecopy($ni,$im);
// Copy and resize part of an image with resampling
imagecopyresampled(
$ni, $im,             // destination, source
0, 0, 0, 0,           // dstX, dstY, srcX, srcY
$this-&gt;max_x, $this-&gt;max_y,       // dstW, dstH
$orig_x, $orig_y);    // srcW, srcH

//place some text at the top left
//$textcolor = imagecolorallocate($im, 0, 0, 255);
//please download any gd font anf put name here
$font = imageloadfont('./04b.gdf'); 
imagestring($ni,$font, 0, 0, $textString, 0xFF0000);
// merge the two canvas
//set opacity to 50%
imagecopymerge($im, $ni, 0, 0, 0, 0, $this-&gt;max_x,  $this-&gt;max_y, 50);

// save thumb file
$this-&gt;SaveImage($ni, $to_name);

if($temp) {
unlink($tmpfname); // this removes the file
} }}
function generate_image($thumb,$source,$maxX,$maxY,$text)
{

$img = new Thumb_image; 
$save_to_file = true;
$image_quality = 100;
$image_type = -1;
$cut_x = 0;
$cut_y = 0;

$max_x = $maxX;
$max_y = $maxY; 

$img-&gt;cut_x        = $cut_x;
$img-&gt;cut_y        = $cut_y;
$img-&gt;quality      = $image_quality;
$img-&gt;save_to_file = $save_to_file;
$img-&gt;image_type   = $image_type;
$img-&gt;GenerateThumbFile($source, $thumb,$max_x,$max_y,$text);
}
$source ="1.jpg";
$thumb =time().".jpg";
$text="THUMB";
generate_image($thumb,$source,400,350,$text);
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2763809311603756094?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2763809311603756094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-create-thumbnail-and-add-text-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2763809311603756094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2763809311603756094'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-create-thumbnail-and-add-text-on.html' title='PHP: Create thumbnail and add text on thumbnail'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5607620678972082179</id><published>2010-02-12T03:03:00.001-08:00</published><updated>2010-02-12T03:03:15.876-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to convert the wav file to mp3</title><content type='html'>Using following one line code you can convert the any wav file to mp3 on the fly in PHP.
&lt;pre&gt;
exec("sox $SourcePath -t wav -s -w - | lame -V 1  - $Destination");
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5607620678972082179?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5607620678972082179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-convert-wav-file-to-mp3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5607620678972082179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5607620678972082179'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-convert-wav-file-to-mp3.html' title='PHP: How to convert the wav file to mp3'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3610636578713805713</id><published>2010-02-11T23:31:00.000-08:00</published><updated>2010-02-11T23:31:55.536-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to unzip / extract the file in PHP</title><content type='html'>It is very easy to unzip the zip archives file on the fly in PHP. In PHP there is a 'ZipArchive' and extract functions to unzip/extract the zip file. But be sure it's installed on the sever and work properly. This code is helpful to extract the backup zip on the server. Just upload the code on server and write the name of zip file in code and run the code in browser. This code will unzip or extract the zip file on the server. Here is the code: 
&lt;pre&gt;
$zip = new ZipArchive;
echo $base =dirname(__FILE__);
if ($zip-&gt;open($base.'/sample.zip') === TRUE) {
  echo $zip-&gt;extractTo($base."/");
  $zip-&gt;close();
 die('Extraction Completed');
} else {
    die('Unable to open Updates Package');
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3610636578713805713?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3610636578713805713/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-unzip-extract-file-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3610636578713805713'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3610636578713805713'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-unzip-extract-file-in-php.html' title='PHP: How to unzip / extract the file in PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8631966236542706273</id><published>2010-02-11T22:58:00.000-08:00</published><updated>2010-02-11T23:00:59.311-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to create ZIP file in PHP / Create ZIP backup of files on server using PHP</title><content type='html'>&lt;b&gt;How to create a zip archives file from folders on the fly.&lt;/b&gt;&lt;br/&gt;
It is very easy to create the zip archives file on the fly in PHP. In PHP there is a 'ZipArchive' function to create zip file. But be sure it's installed on the sever and work properly. This code is helpful to create the backup's on the server. Just upload the code on server and create on backup folder and run the code in browser. This code will create the one zip file. Here is the code:
&lt;pre&gt;
global $names ;
$names = array();
function walkTree($src,$des,$flag=false,$dirs=0,$files=0){
global $names;
if(!is_readable($des) &amp;&amp; $flag){
mkdir($des);
}
$hndl =  opendir($src);
while(!false == ($entry = readdir($hndl))){
if($entry != "updater" &amp;&amp; 
$entry != "backup" &amp;&amp; $entry != "." &amp;&amp; $entry != ".."){
if(filetype($src."/".$entry) == "dir" ){
$dirs++;
$stats = walkTree($src."/".$entry,$des."/".$entry,$flag,$dirs,$files);
$dirs = $stats[0];
$files = $stats[1];
}
else if(filetype($src."/".$entry) == "file" ){
$files++;
$names[] = $src."/".$entry;
if($flag){
copy($src."/".$entry,$des."/".$entry);
}}}}
return array($dirs,$files);}
$dir = dirname(__FILE__);
$hndl =  opendir($dir);
$output = "";
$stat = walkTree($dir,$dir);
$zip = new ZipArchive;
if($fp = fopen($dir.'/backup/backup.zip',"w"))
fclose($fp);
else
die("no file");
echo $dir.'/backup/backup.zip';
$res = $zip-&gt;open($dir.'/backup/backup.zip',ZIPARCHIVE::CREATE);
if ($res === TRUE) {
foreach($names as $name){
echo "&lt;br /&gt;".$zip-&gt;addFile($name,str_replace(dirname(__FILE__),'',$name));
echo str_replace(dirname(__FILE__),'',$name)."&lt;br /&gt;";
}
$zip-&gt;close();
}
else
die("Unable to create zip file");
echo "Backup Complete";
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8631966236542706273?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8631966236542706273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-create-zip-file-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8631966236542706273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8631966236542706273'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-create-zip-file-in-php.html' title='PHP: How to create ZIP file in PHP / Create ZIP backup of files on server using PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5140308892125718430</id><published>2010-02-10T01:55:00.000-08:00</published><updated>2010-02-10T01:55:28.767-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to Create Thumbnail Images using PHP, Simple Code</title><content type='html'>This tutorial will describe how to create thumbnail images on the fly using PHP. Furthermore you will learn how to process a whole folder of images and create their thumbnails. Since this requires the GD library, you will need an installation of PHP with at least GD 2.0.1 enabled.

Below we will create a PHP script that contains two functions. The first one scans a provided directory for any .JPG images and, for each one, creates a thumbnail in the specified folder using the GD image functions. The second function creates an HTML file in the same directory as the script, which contains all of the thumbnails with links to the original images. This could be the basis of advanced photo gallery software.

The code below creates a function named createThumbs that will get three parameters. The first and the second is correspondingly the path to the directory that contains original images and the path to the directory in which thumbnails will be placed. The third parameter is the width you want for the thumbnail images.
&lt;pre&gt;
function createThumbs( $Mainimage, $ThumbImage, $thumbWidth )
{
      $img = imagecreatefromjpeg( "{$Mainimage}" );
      $width = imagesx( $img );
      $height = imagesy( $img );
      // calculate thumbnail size
      $new_width = $thumbWidth;
      $new_height = floor( $height * ( $thumbWidth / $width ) );
      // create a new temporary image
      $tmp_img = imagecreatetruecolor( $new_width, $new_height );
      // copy and resize old image into new image
      imagecopyresized( $tmp_img, $img, 0, 0, 0, 0, $new_width,
 $new_height, $width, $height );
      // save thumbnail into a file
      imagejpeg( $tmp_img, "{$ThumbImage}" );

}

createThumbs("/var/www/ffmpeg/1265717192.jpg",
"/var/www/ffmpeg/thumb/test.jpg",100);

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5140308892125718430?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5140308892125718430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-create-thumbnail-images.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5140308892125718430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5140308892125718430'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-create-thumbnail-images.html' title='PHP: How to Create Thumbnail Images using PHP, Simple Code'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-261711699481382158</id><published>2010-02-06T02:46:00.001-08:00</published><updated>2010-02-06T02:48:41.809-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to create thumbnail and convert flv from any video in php</title><content type='html'>First of all ffmpeg libaray is needed to work this code. You need to install the ffmpeg library on the linux server.Otherwise this code can't works
&lt;br/&gt;
&lt;b&gt;Convert any video to flv:&lt;/b&gt;
&lt;pre&gt;
function convertFlv($source,$destination)
{
 exec("ffmpeg -i {$source} -ar 22050 -ab 32 -f flv -s 320x240 {$destination}");
}

$source = "/var/www/project/abc/video/sample.mov";
$destination = "/var/www/project/abc/flvfiles/sample.flv";
convertFlv($source,$destination);
&lt;/pre&gt;

&lt;b&gt;Convert thumbnail form video file:&lt;/b&gt;
&lt;pre&gt;
function getthumbnail($source, $image)
{
exec("ffmpeg -i {$source} -deinterlace -an -ss 1 
-t 00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg {$image} 2&gt;&amp;1"); 
}
$source = "/var/www/project/abc/video/sample.mov";
$image = "/var/www/project/abc/image/sample.jpg";
getthumbnail($source, $image);
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-261711699481382158?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/261711699481382158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-create-thumbnail-and-convert.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/261711699481382158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/261711699481382158'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-create-thumbnail-and-convert.html' title='PHP: How to create thumbnail and convert flv from any video in php'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-7081559590736735066</id><published>2010-02-06T02:38:00.000-08:00</published><updated>2010-02-06T02:38:26.853-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux - Ubantu'/><title type='text'>Installing PHP5 and Apache on Ubuntu</title><content type='html'>If you are doing any kind of PHP development, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu box
&lt;br/&gt;
From a command shell, you will run the following commands:&lt;br/&gt;
&lt;pre&gt;
    sudo apt-get install apache2
    sudo apt-get install php5
    sudo apt-get install libapache2-mod-php5
    sudo /etc/init.d/apache2 restart //restart server

   How to install FFMPEG library on ubantu
   sudo apt-get install php5-dev
  
   sudo apt-get install ffmpeg
 
   apt-get install libavcodec-dev

   sudo apt-get install mencoder

   How to install curl ssl on ubantu:    
   sudo apt-get install curl-ssl
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-7081559590736735066?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/7081559590736735066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/installing-php5-and-apache-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7081559590736735066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7081559590736735066'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/installing-php5-and-apache-on-ubuntu.html' title='Installing PHP5 and Apache on Ubuntu'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8111304658792738873</id><published>2010-02-06T02:32:00.000-08:00</published><updated>2010-02-06T02:32:59.998-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux - Ubantu'/><title type='text'>Ubuntu – Enable mod_rewrite in Apache server</title><content type='html'>At first I should define, what is mod_rewrite?&lt;br/&gt;
mod_rewrite is a part of Apache server that can rewrite requested urls on the fly.&lt;br/&gt;&lt;br/&gt;

To enable mod_rewrite in Ubuntu, you just need to write this command in terminal&lt;br/&gt;&lt;br/&gt;

sudo a2enmod rewrite&lt;br/&gt;&lt;br/&gt;

After enabling mod_rewrite you can write .htaccess file for your web application.&lt;br/&gt;&lt;br/&gt;

So what is .htaccess?&lt;br/&gt;
.htaccess file provides a way to make configuration changes on a per directory basis. It is a file contains configuration directives is placed in a particular document directory and the directives apply to that directory and all subdirectories thereof.&lt;br/&gt;

Some example:&lt;br/&gt;

Nice looking URLs (no querying) with pagination:&lt;br/&gt;
Suppose your url is: domain.com/article.php?name=title&amp;page=5&lt;br/&gt;
You want to change: domain.com/articles/title/5/&lt;br/&gt;
Then write in .htaccess file:&lt;br/&gt;
RewriteRule ^articles/(A-Za-z0-9-]+)/([0-9]+)/?$ article.php?name=$1&amp;page=$2 [L]&lt;br/&gt;

The rule is defined in regular expression. Here [L] means Last Rule. It’s called RewriteRule Flags.&lt;br/&gt;

Another example:&lt;br/&gt;
Suppose your site has permanently moved to a new domain.&lt;br/&gt;
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]&lt;br/&gt;
RewriteRule  ^(.*)$ http://www.domain2.com/$1  [R=301, L]&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8111304658792738873?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8111304658792738873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/ubuntu-enable-modrewrite-in-apache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8111304658792738873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8111304658792738873'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/ubuntu-enable-modrewrite-in-apache.html' title='Ubuntu – Enable mod_rewrite in Apache server'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5842242947535973805</id><published>2010-02-04T21:36:00.000-08:00</published><updated>2010-02-04T21:37:56.917-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Date / Time Functions</title><content type='html'>&lt;pre&gt;
$today = date("F j, Y, g:i a");                 // March 10, 2010, 5:16 pm
$today = date("m.d.y");                         // 03.10.01
$today = date("j, n, Y");                       // 10, 3, 2010
$today = date("Ymd");                           // 20100310
$today = date('h-i-s, j-m-y, it is w Day');     // 05-16-18, 10-03-10, 1631 1618 6 Satpm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // it is the 10th day.
$today = date("D M j G:i:s T Y");               // Sat Mar 10 17:16:18 MST 2010
$today = date('H:m:s \m \i\s\ \m\o\n\t\h');     // 17:03:18 m is month
$today = date("H:i:s"); 

Add 1 day in time
1 hour = 60 min * 60 sec
i day =  24 hrs * 60 min * 60 sec
$nextday = time() + (24 * 60 * 60);
$prevday = time() - (24 * 60 * 60);

echo date('l',time()); //Current day

$tomorrow  = mktime(0, 0, 0, date("m")  , date("d")+1, date("Y"));
$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"),   date("Y"));
$nextyear  = mktime(0, 0, 0, date("m"),   date("d"),   date("Y")+1);

$nextWeek = time() + (7 * 24 * 60 * 60);
                   // 7 days; 24 hours; 60 mins; 60secs
echo 'Now:       '. date('Y-m-d') ."\n";
echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";
// or using strtotime():
echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."\n";
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5842242947535973805?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5842242947535973805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-date-time-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5842242947535973805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5842242947535973805'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-date-time-functions.html' title='PHP: Date / Time Functions'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4001218163822852248</id><published>2010-02-04T21:19:00.000-08:00</published><updated>2010-02-04T21:19:18.256-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Using SOAP with PHP</title><content type='html'>Ho to use the soapclient in PHP&lt;br/&gt;
SOAP, the Simple Object Access Protocol, is the powerhouse of web services. It’s a highly adaptable, object-oriented protocol that exists in over 80 implementations on every popular platform, including AppleScript, JavaScript, and Cocoa. It provides a flexible communication layer between applications, regardless of platform and location. As long as they both speak SOAP, a PHP-based web application can ask a C++ database application on another continent to look up the price of a book and have the answer right away. Another Internet Developer article shows how to use SOAP with AppleScript and Perl.

SOAP was created collaboratively as an open protocol. Early in its development, XML-RPC was spun off, and now enjoys its own popularity as a simpler alternative to SOAP. Both encode messages as XML, and both use HTTP to transport those messages. SOAP, however, can use other transport protocols, offers a number of high-end features, and is developing rapidly. (For more about SOAP and web services, try XML.com’s helpful demystification.)

A SOAP transaction begins with an application making a call to a remote procedure. The SOAP client script then encodes the procedure request as an XML payload and sends it over the transport protocol to a server script. The server parses the request and passes it to a local method, which returns a response. The response is encoded as XML by the server and returned as a response to the client, which parses the response and passes the result to the original function.

There are a number of different implementations of SOAP under PHP. It’s a shifting landscape: new ones appear, and old ones aren’t maintained or simply vanish. As of this writing, the most viable PHP implementation of SOAP seems to be Dietrich Ayala’s SOAPx4, also known as NuSOAP. This implementation is the most commonly used and appears to be the most fully developed and actively maintained, and it shows every sign of continuing to be a robust and popular solution. It’s not complete—a number of features, including full documentation, are still in the works—but it’s still a highly viable and easy-to-use SOAP solution.

&lt;br/&gt;
There are many function to use the SOAP in PHP
&lt;pre&gt;
$client = new SoapClient("http://www.sitename.com/soap/soap.class.api2.php?wsdl");
var_dump($client-&gt;__getTypes()); //it help to get all function running in soap xml

$data = array("API_KEY"=&gt;'37383838',"USERNAME"=&gt;'demouser');
$result = $client -&gt;__soapCall(functions, array ('data'=&gt;$data));

/* Methods */
public mixed __call ( string $function_name , string $arguments )
SoapClient ( mixed $wsdl [, array $options ] )
public string __doRequest ( string $request , string $location , string $action , int $version [, int $one_way = 0 ] )
public array __getFunctions ( void )
public string __getLastRequest ( void )
public string __getLastRequestHeaders ( void )
public string __getLastResponse ( void )
public string __getLastResponseHeaders ( void )
public array __getTypes ( void )
public void __setCookie ( string $name [, string $value ] )
public string __setLocation ([ string $new_location ] )
public bool __setSoapHeaders ([ mixed $soapheaders ] )
public mixed __soapCall ( string $function_name , array $arguments [, array $options [, mixed $input_headers [, array &amp;$output_headers ]]] )
SoapClient ( mixed $wsdl [, array $options ] )

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4001218163822852248?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4001218163822852248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-using-soap-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4001218163822852248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4001218163822852248'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-using-soap-with-php.html' title='PHP: Using SOAP with PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8514548286250809286</id><published>2010-02-04T21:07:00.000-08:00</published><updated>2010-02-04T21:07:22.487-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: How to get data from XML file or API XML in PHP</title><content type='html'>We have 2 methods to get the data from XML file. First one is simple method and 2nd ont is DOM method. For simple load method we are using PHP 'simplexml_load_file' function , but on some server it is not works so in that case we can use 'DOM' method to get the data from XML file. It is mostly used in the API implementation.
&lt;br/&gt;
&lt;b&gt;Simple file load method&lt;/b&gt;
&lt;pre&gt;
$xmlfile = "sample.xml"; or $xmlfile = "http://sitename.com/sample.xml";
if(simplexml_load_file($xmlfile))
        {
         $xml =  simplexml_load_file($xmlfile);
           print_r($xml );
        }
&lt;/pre&gt;
&lt;b&gt;DOM Method&lt;/b&gt;
&lt;pre&gt;
$xml="http://www.sitename.com/xmllog/citydetails.xml";
$doc = new DOMDocument();
$doc-&gt;load( $xml );
$cityArray=  $doc-&gt;getElementsByTagName('city_details_row');
foreach($cityArray as $value ) 
  { 
    $city_name = $value-&gt;getElementsByTagName("city_name"); 
    $city  = $city_name-&gt;item(0)-&gt;nodeValue; 

    $city_id = $value-&gt;getElementsByTagName("city_id"); 
    $cityid  = $city_id-&gt;item(0)-&gt;nodeValue;  
  } 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8514548286250809286?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8514548286250809286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-get-data-from-xml-file-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8514548286250809286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8514548286250809286'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/php-how-to-get-data-from-xml-file-or.html' title='PHP: How to get data from XML file or API XML in PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3708067401492729094</id><published>2010-02-02T21:00:00.000-08:00</published><updated>2010-02-02T21:00:24.133-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to set session and get session in magento</title><content type='html'>Using following magento code you can set and get the session value in magento site:

&lt;pre&gt;
 Mage::getSingleton('core/session')-&gt;setYourVariable('data');
$Data = Mage::getSingleton('core/session')-&gt;getYourVariable();
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3708067401492729094?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3708067401492729094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/magento-how-to-set-session-and-get.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3708067401492729094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3708067401492729094'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/magento-how-to-set-session-and-get.html' title='Magento: How to set session and get session in magento'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4094032562721418306</id><published>2010-02-01T02:13:00.000-08:00</published><updated>2010-02-01T02:14:23.291-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Drupal: Some useful path for drupal site</title><content type='html'>Drupal useful paths:
&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;Drupal Theme Path:&lt;/b&gt;
&lt;pre&gt;
path_to_theme();
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4094032562721418306?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4094032562721418306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/drupal-some-useful-path-for-drupal-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4094032562721418306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4094032562721418306'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/02/drupal-some-useful-path-for-drupal-site.html' title='Drupal: Some useful path for drupal site'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-7496527895713188032</id><published>2010-01-31T23:02:00.000-08:00</published><updated>2010-01-31T23:03:05.482-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Drupal: How select query can be used in drupal, Drupal mysql select query</title><content type='html'>Using following code you can get the data from drupal site database.
&lt;pre&gt;
$result = db_query("SELECT title FROM tablename");
 while ($record = db_fetch_object($result)) {
echo $record-&gt;title;
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-7496527895713188032?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/7496527895713188032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/drupal-how-select-query-can-be-used-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7496527895713188032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7496527895713188032'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/drupal-how-select-query-can-be-used-in.html' title='Drupal: How select query can be used in drupal, Drupal mysql select query'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1513659267092074212</id><published>2010-01-27T20:38:00.000-08:00</published><updated>2010-01-27T20:38:57.204-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Drupal: How can drupal database connection, function can use from outside</title><content type='html'>I worked on Drupal project.For dynamic flash content come from one PHP generated XML. I faced one problem there. For XML i need to access the drupal database connection outside from drupal environment. I search a lot on Google, but no luck. then from drupal i find following code to use all drupal function and database connection outside. Here is the code:-
&lt;pre&gt;
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1513659267092074212?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1513659267092074212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/drupal-how-can-drupal-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1513659267092074212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1513659267092074212'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/drupal-how-can-drupal-database.html' title='Drupal: How can drupal database connection, function can use from outside'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3083258695831625583</id><published>2010-01-20T22:17:00.000-08:00</published><updated>2010-04-05T22:29:18.381-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to use select, update, delete and insert queries in magento.</title><content type='html'>It is very easy to select, insert, delete and update the record in magento site. following functions are helpful in magento site for database queries.
You can also use this function outside magento environment with the help pf include "Mage.php" file form "app" folder
like &lt;pre&gt; require_once '../../app/Mage.php';
Mage::app('default');
//Select query to get the value form table
$connection = Mage::getSingleton('core/resource')
-&gt;getConnection('core_read');
$select = $connection-&gt;select()
-&gt;from('tablename', array('*')) // select * from tablename or use array('id','name') selected values
-&gt;where('id=?',1)               // where id =1
-&gt;group('name');         // group by name
$rowsArray = $connection-&gt;fetchAll($select); // return all rows
$rowArray =$connection-&gt;fetchRow($select);   //return row

//insert query
$connection = Mage::getSingleton('core/resource')
-&gt;getConnection('core_write');
$connection-&gt;beginTransaction();
$fields = array(); 
$fields['name']= 'test';
$fields['age']='25';
$connection-&gt;insert('tablename', $fields);
$connection-&gt;commit();

//update query
$connection = Mage::getSingleton('core/resource')
-&gt;getConnection('core_write');
$connection-&gt;beginTransaction();
$fields = array();
$fields['name'] = 'jony';
$where = $connection-&gt;quoteInto('id =?', '1');
$connection-&gt;update('tablename', $fields, $where);
$connection-&gt;commit();


//delete query
$condition = array($connection-&gt;quoteInto('id=?', '1'));
$connection-&gt;delete('tablename', $condition);
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3083258695831625583?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3083258695831625583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-to-use-select-update-delete.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3083258695831625583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3083258695831625583'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-to-use-select-update-delete.html' title='Magento: How to use select, update, delete and insert queries in magento.'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5861718676607811501</id><published>2010-01-20T21:40:00.000-08:00</published><updated>2010-01-20T21:40:40.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How can access the magento classes, function, database from magento files</title><content type='html'>It is very easy to access all magento classes, function and database connection from outside magento environment just include Mage.php file in the page
&lt;pre&gt;
include("app/Mage.php");
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5861718676607811501?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5861718676607811501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-can-access-magento-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5861718676607811501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5861718676607811501'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-can-access-magento-classes.html' title='Magento: How can access the magento classes, function, database from magento files'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1006424964776611083</id><published>2010-01-20T21:27:00.000-08:00</published><updated>2010-01-20T21:27:06.064-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to upload file, image in magento</title><content type='html'>Magento: How to upload file, image in magento.&lt;br/&gt;
With help of following simple magento you can upload any file or image in any magento site folder
&lt;pre&gt;
if(isset($_FILES['filename']['name']) &amp;&amp; $_FILES['filename']['name'] != '') {
try { 
/* Starting upload */ 
$uploader = new Varien_File_Uploader('filename');
// Any extention would work
$uploader-&gt;setAllowedExtensions(array('jpg','jpeg','gif','png'));
$uploader-&gt;setAllowRenameFiles(false);
// Set the file upload mode 
// false -&gt; get the file directly in the specified folder
// true -&gt; get the file in the product like folders 
// (file.jpg will go in something like /media/f/i/file.jpg)
$uploader-&gt;setFilesDispersion(false);
// We set media as the upload dir
$path = Mage::getBaseDir('media') . DS ;
$uploader-&gt;save($path, $_FILES['filename']['name'] );
} catch (Exception $e) {
}
$filename=$_FILES['filename']['name'];
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1006424964776611083?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1006424964776611083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-to-upload-file-image-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1006424964776611083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1006424964776611083'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-to-upload-file-image-in.html' title='Magento: How to upload file, image in magento'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1532480944410076309</id><published>2010-01-20T21:13:00.001-08:00</published><updated>2010-01-20T21:19:27.186-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento site url</title><content type='html'>It is easy to get you magento site base url. Using following magento function you can get url.
&lt;pre&gt;
Mage::getBaseUrl();

If you want ot get url in inner pages like http://sitename.com/index.php/test
Then use:  dirname(Mage::getBaseUrl()) code to get path
$path = dirname(Mage::getBaseUrl())."/media/";   
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1532480944410076309?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1532480944410076309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1532480944410076309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1532480944410076309'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento.html' title='Magento site url'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4150683148838921942</id><published>2010-01-18T02:42:00.000-08:00</published><updated>2010-01-18T03:25:32.070-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Generate password / Create a random password</title><content type='html'>PHP: Generate password / Create a random password
&lt;pre&gt;
function createCode2()
{
  $Key="";
  while(strlen($Key)&lt;=5)
 {
    srand((double)microtime()*1000000);
    $number = rand(50,150);
    if($number&gt;=65 &amp;&amp; $number&lt;=78)
   $Key = $Key.chr($number);
    elseif($number&gt;=80 &amp;&amp; $number&lt;=90)
   $Key = $Key.chr($number); 
    elseif($number&gt;=49 &amp;&amp; $number&lt;=57)
   $Key = $Key.chr($number);
    }
  return trim($Key); 
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4150683148838921942?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4150683148838921942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-generate-password-function-create.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4150683148838921942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4150683148838921942'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-generate-password-function-create.html' title='PHP: Generate password / Create a random password'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-755009307717058240</id><published>2010-01-17T23:08:00.000-08:00</published><updated>2010-01-17T23:09:24.497-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='htaccess'/><title type='text'>htaccess url rewrite, how to write www before sitename</title><content type='html'>Redirect to www (htaccess redirect) Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
Following htaccess code is helpful to convert the non www domain url to www url. 

&lt;pre&gt;
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-755009307717058240?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/755009307717058240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/htaccess-url-rewrite-url-write-www.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/755009307717058240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/755009307717058240'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/htaccess-url-rewrite-url-write-www.html' title='htaccess url rewrite, how to write www before sitename'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-6612844252284447933</id><published>2010-01-15T03:30:00.000-08:00</published><updated>2010-01-15T03:30:29.106-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP Breadcrumb Class</title><content type='html'>There are many types of php breadcrumb classes but here following class simple and easy to use class. I have a lot of experience with this class it's works fine.
&lt;div style="border: 1px solid rgb(204, 204, 204); overflow: scroll; width: 440px; height: 500px;"&gt;
&lt;pre&gt;
&amp;lt;?php
class Breadcrumb{
   var $output;
   var $crumbs = array();
   var $location;
   function Breadcrumb(){     
     if(isset($_SESSION['breadcrumb'])) {
   if ($_SESSION['breadcrumb'] != null){
         $this-&amp;gt;crumbs = $_SESSION['breadcrumb'];
      }  
   }
   }  
   function add($label, $url, $level){
      $crumb = array();
      $crumb['label'] = $label;
      $crumb['url'] = $url; 
      if ($crumb['label'] != null  &amp;&amp; isset($level)){                   
         while(count($this-&amp;gt;crumbs) &amp;gt; $level){
            array_pop($this-&amp;gt;crumbs); 

         }

         if (!isset($this-&amp;gt;crumbs[0]) &amp;&amp; $level &amp;gt; 0){ 
            $this-&amp;gt;crumbs[0]['url'] = "/index.php";
            $this-&amp;gt;crumbs[0]['label'] = "Home";
         }
         $this-&amp;gt;crumbs[$level] = $crumb;                 
      }
        $_SESSION['breadcrumb'] = $this-&amp;gt;crumbs; 
     
   }
   function output(){
      echo "&amp;lt;div id='breadcrumb'&amp;gt;&amp;lt;ul&amp;gt;";
       $i=1;
      foreach ($this-&amp;gt;crumbs as $crumb){ 
        if($i==1)
  {  if ($crumb['url'] != null){  
     echo "&amp;lt;li&amp;gt;&amp;lt;a href='".$crumb['url']."' title='".$crumb['label']."'&amp;gt;".$crumb['label']."&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; ";  
     } else {  
     echo "&amp;lt;li&amp;gt;  ".$crumb['label']." &amp;gt; &amp;lt;/li&amp;gt; ";  
    }
  }
  else
  {
    if ($crumb['url'] != null){  
     echo "&amp;lt;li&amp;gt; &amp;gt; &amp;lt;a href='".$crumb['url']."' title='".$crumb['label']."'&amp;gt;".$crumb['label']."&amp;lt;/a&amp;gt; &amp;lt;/li&amp;gt; ";  
     } else {  
     echo "&amp;lt;li&amp;gt; &amp;gt; ".$crumb['label']." &amp;lt;/li&amp;gt; ";  
    }   
  }
  $i++;
      }

      echo "&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;";
   }
}
?&amp;gt; 

//how to use
$bread = new Breadcrumb();
$bread-&gt;add('Home', './index.php', 0); //last page  
$bread-&gt;add('Account', $_SERVER['PHP_SELF'], 1);  
$bread-&gt;output();
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-6612844252284447933?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/6612844252284447933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-breadcrumb-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6612844252284447933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6612844252284447933'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-breadcrumb-class.html' title='PHP Breadcrumb Class'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2919681423148207601</id><published>2010-01-15T03:21:00.000-08:00</published><updated>2010-01-15T03:21:54.822-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP XML Read Function</title><content type='html'>It's just a 10-12 line code to get the data from XML file.
&lt;pre&gt;
$xmlfile="samplexmlfile.xml";
if(file_exists($xmlfile)) {
if(simplexml_load_file($xmlfile))
        {
         $xml =  simplexml_load_file($xmlfile);
        print_r($xml );        }
}
else
{
 die("no file");
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2919681423148207601?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2919681423148207601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-xml-read-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2919681423148207601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2919681423148207601'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-xml-read-function.html' title='PHP XML Read Function'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3913598370088929532</id><published>2010-01-15T03:09:00.000-08:00</published><updated>2010-01-15T03:14:42.846-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Google AJAX Search API for Developers</title><content type='html'>It's My favorites Google AJAX search API , helpful to search content, websites, images on your website with a simple JavaScript code. 
&lt;a href="http://code.google.com/apis/ajaxsearch/" target="_blank"&gt;Click here to get code&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Google AJAX Search Api for Developers&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The Google AJAX Search API allows you to easily integrate some very powerful and diverse Google based &lt;em&gt;search&lt;/em&gt; mechanisms or "controls" onto a Web page with relatively minimal coding. These includes:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;Web Search on your website:&lt;/b&gt; This is a traditional search input field where, when a query is entered, a series of text search results appear on the page.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Local Search:&lt;/b&gt; With Local Search, a Google Map is mashed
together with a search input field and the search results are based on
a specific location.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Video/Image Search:&lt;/b&gt; The AJAX Video Search provides the ability to offer compelling video/Image search along with accompanying video based search results.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;b&gt;Example:&lt;/b&gt;
&lt;pre&gt;
&amp;lt;script src="www.google.com/uds/api?file=uds.js&amp;v=1.0
                &amp;key=YOUR-KEY" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
   &amp;lt;script type="text/javascript"&amp;gt;
   //&amp;lt;![CDATA[
   function onLoad() {
      // Create a search control
      var googleSearchControl = new GSearchControl();

      // Add in a full set of searchers
      var localSearch = new GlocalSearch();
      googleSearchControl.addSearcher(localSearch);
      googleSearchControl.addSearcher(new GwebSearch());
      googleSearchControl.addSearcher(new GvideoSearch());
      googleSearchControl.addSearcher(new GblogSearch());
      googleSearchControl.addSearcher(new GnewsSearch());
      googleSearchControl.addSearcher(new GbookSearch());

      // Set the Local Search center point
      localSearch.setCenterPoint("New York, NY");

      // tell the searcher to draw itself and tell it where to attach
      googleSearchControl.draw(document.getElementById("resultDiv"));

      // execute an inital search
      googleSearchControl.execute("google");
   }
   GSearch.setOnLoadCallback(onLoad);

   //]]&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;div id="resultDiv"&gt;Loading&amp;lt;/div&amp;gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3913598370088929532?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3913598370088929532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/google-ajax-search-api-for-developers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3913598370088929532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3913598370088929532'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/google-ajax-search-api-for-developers.html' title='Google AJAX Search API for Developers'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8799269114220707399</id><published>2010-01-15T02:49:00.000-08:00</published><updated>2010-01-15T02:53:08.213-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>AJAX JavaScript Function</title><content type='html'>Simple AJAX JavaScript function. That is the function which is called just like any other JavaScript function, passing in those two required parameters. The only other requirement is to make sure you have a div,span with the ID you are passing in the function call.
&lt;pre&gt;
// JavaScript Document
function ajaxFunction(url,element){
  
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
   if (xmlHttp.status == 200) {
    if(element != "")
    { //alert(xmlHttp.responseText);
     //alert(element) 
     if(document.getElementById(element))
     {
      document.getElementById(element).value = "";
     }

     document.getElementById(element).innerHTML=xmlHttp.responseText;
    }

         }
  }
  else
  {
   document.getElementById(element).innerHTML="&lt;b&gt;Loading ....&lt;/b&gt;";
  }
      }
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }
 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8799269114220707399?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8799269114220707399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/ajax-javascript-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8799269114220707399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8799269114220707399'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/ajax-javascript-function.html' title='AJAX JavaScript Function'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2519944552901009673</id><published>2010-01-15T02:25:00.000-08:00</published><updated>2010-01-15T02:41:10.093-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Database Connection Class with select , insert, delete, update functions</title><content type='html'>To create our database connection class we will be using PHP's class structure. Following class is very simple class for PHP. This PHP Database Connection Class have functions for mysql select , insert, delete, update queries.

&lt;div style="border: 1px solid rgb(204, 204, 204); overflow: scroll; width: 440px; height: 500px;"&gt;
&lt;pre&gt;
// Coding Standards : Todd Hoff and Fredrik Kristiansen
define('ERROR_QUERY','Error In Query');
define('ERROR_CONNECTION','Error In Connection');
class FwConnection 
{
 var  $mConnection;
 var  $mHost;
 var  $mDatabase;
 var  $mUser;
 var  $mError;
 var  $mData = array();
 var  $mQueryLog = array();
 var  $mErrorLog = array();
 var  $mDebug = array();
 var  $mIsLogQuery = true;
 var  $mIsLogError = true;
 var  $mIsDebug = true;
 var $bugtrackker; 

 function FwConnection($connectionHost,$connectionUser,$connectionPass,$connectionDb)
 {
  $connection = @mysql_pconnect($connectionHost,$connectionUser,$connectionPass);
  mysql_select_db($connectionDb,$connection);
  if (true == is_resource($connection))
  {
   $this-&gt;mConnection  = $connection;
   $this-&gt;mHost   = $connectionHost;
   $this-&gt;mDatabase  = $connectionDb;
   $this-&gt;mUser   = $connectionUser;
  }
  else
  {
   $this-&gt;LogError(ERROR_CONNECTION);
  } }
 /**
  * Executes the Query
  *
  * @param string(Query) $query
  * @return string(Message)
  */
 function MakeQuery($query)
 {
         //echo $query;
  $this_query = mysql_query($query,$this-&gt;mConnection);
  $this-&gt;LogQuery($query);
  $query_type = substr($query,0,6);
  if($query_type == 'select')
  {

   if (true == (is_resource($this_query)))
   {
    return $this_query;
   }
   else
   { $query = '&lt;span style=\"color:green\"&gt;&lt;b&gt;'.$query.'&lt;/b&gt;&lt;/span&gt;';
    $this-&gt;LogError('&lt;br&gt;[&lt;b&gt;'.ERROR_QUERY .'&lt;/b&gt;] ' . $query);
    return false;
   }
  }
  elseif($query_type == 'show c')
  {
   return $this_query;
  }
  else
  {if ($this_query==1)

   { $aff_rows = '&lt;span style=\"color:green\"&gt;&lt;b&gt;'.mysql_affected_rows($this-&gt;mConnection).'&lt;/b&gt;&lt;/span&gt;';
    return '&lt;br&gt;' . $query_type . " command successfully executed!. ($aff_rows) row(s) affected";
   }
   else 
   {$query = '&lt;span style=\"color:green\"&gt;&lt;b&gt;'.$query.'&lt;/b&gt;&lt;/span&gt;';

   $this-&gt;LogError('&lt;br&gt;[&lt;b&gt;'.ERROR_QUERY .'&lt;/b&gt;] ' . $query . '&lt;span style=\"color:red\"&gt;&lt;b&gt;'. mysql_error().'&lt;/b&gt;&lt;/span&gt;');
    return '&lt;br&gt;' . '&lt;span style=\"color:red\"&gt;&lt;b&gt;'. mysql_error().'&lt;/b&gt;&lt;/span&gt;';
   }
  }
 }
 function LogError($error)
 {if (true == $this-&gt;mIsLogError)
  {   $this-&gt;mErrorLog[] = '&lt;br&gt;&lt;b&gt;Error:&lt;/b&gt;&lt;br&gt;' . $error;

  } if (true == $this-&gt;mIsDebug)
  {
   $this-&gt;mDebug[] = '&lt;br&gt;&lt;b&gt;Error:&lt;/b&gt;&lt;br&gt;' . $error;
  }
 }
 function LogDebug($msg,$title)
 {
  if (true == $this-&gt;mIsDebug)
  {
   $this-&gt;mDebug[] = '&lt;br&gt;&lt;b&gt;'.$title.':&lt;/b&gt;' . $msg ;
  }
 }
 function LogQuery($query)
 {
  if (true == $this-&gt;mIsLogQuery)
  {
   $this-&gt;mQueryLog[] = '&lt;br&gt;&lt;b&gt;Query:&lt;/b&gt;&lt;br&gt;' . $query;
  }
  if (true == $this-&gt;mIsDebug)
  {
   $this-&gt;mDebug[] = '&lt;br&gt;&lt;b&gt;Query:&lt;/b&gt;&lt;br&gt;' .$query;
  }
 }

 function Selectwithjoin($query,$condition=1){
 if ($condition == '')
  {
   $condition = 1;
  }

 $select_query = "select $query where $condition ";
 $query_resource = $this-&gt;MakeQuery($select_query);
 $rows = array();
  while ($row = mysql_fetch_assoc($query_resource))
  {
   $rows[] = $row;
  }
  $this-&gt;mData = $rows; 
 }
 function SelectLogin($tblFields,$tblName,$log,$pass)
 {
  if ('' != $limit)
  {
   $limit = ' limit '.$limit;
  }
  else
  {
   $limit='';
  }
$qry = "select $tblFields from $tblName where userName='".$log."' and password='".$pass."'";
  $result=mysql_query($qry);
  return $result;
 }
 function Select($tblFields,$tblName,$condition=1,$otherParam,$limit)
 {
  $params="";
  if ($condition == '')
  {
   $condition = 1;
  }
  if (''!= $otherParam &amp;&amp; is_array($otherParam))
  {
   foreach ($otherParam as $cond=&gt;$val)
   {
    $params .= " $cond $val ";
   }
  }
  if ('' != $limit)
  {
   $limit = ' limit '.$limit;
  }

   $select_query = "select $tblFields from $tblName where $condition ".$params." $limit ";
   $this-&gt;bugtrackker = $select_query ;
   return $this-&gt;RawQuery($select_query);
 }
 function InsertInto($tblName,$tblFields)
 {
  $fields = $this-&gt;SeprateFields($tblFields,'=',',');
  $select_query = "insert into $tblName set $fields";
  return $this-&gt;RawQuery($select_query);
 } 

 function UpdatebyID($tblName,$tblFields,$tblId,$tblVal)
 {
  $fields = $this-&gt;SeprateFields($tblFields,'=',',');
  $select_query = "update $tblName set $fields where $tblId = '$tblVal'";
  return $this-&gt;RawQuery($select_query);
 }
 function Update($tblName,$tblFields,$cond)
 {
  $fields = $this-&gt;SeprateFields($tblFields,'=',',');
  //$cond = $this-&gt;SeprateFields($cond,'=',',');
  $select_query = "update $tblName set $fields where $cond";
  $this-&gt;RawQuery($select_query);
  if (mysql_affected_rows($this-&gt;mConnection)&gt;=1)
  {
  return 1;
  }
  else
  {
  return 0;
  }
 }
 function getInsertID()
 {  return mysql_insert_id();
 }
 function Delete($tblName,$tblFields)
 {  

  $select_query = "delete from $tblName where $tblFields";
  return $this-&gt;RawQuery($select_query);
 }
 function SeprateFields($tblFields,$inSep,$outSep)
 {
  $string="";
  if (is_array($tblFields))
  {
   foreach($tblFields as $head=&gt;$val)
   {
    if ($val == 'NOW()')
    {
    $string .= " $head  $inSep $val $outSep";
    }
    else
    {
    $string .= " $head  $inSep '$val' $outSep";
    }
   }
   $string = substr($string,0,strlen($string)-strlen($outSep));
  }
  return $string;
 }
 function RawQuery($query)
 {
  $query_resource = $this-&gt;MakeQuery($query);
  $query_type = substr($query,0,6);
  if($query_type == 'select'  || $query_type == 'show c' || $query_type == 'show t')
  { $rows= $this-&gt;IterateRows($query_resource);
   $this-&gt;LogDebug($rows,'Result');
  }
  elseif ($query_type == 'insert' || 'update' || 'delete')
  {
   $this-&gt;LogDebug($query_resource,'Result');
  }
  if ($query_resource)
  {
   return true;
  }
  else
  {
   return false;
  }
 }
 function GetRows()
 {
  return($this-&gt;mData);
 }
 function IterateElement(&amp;$element)
 {
  if (!empty($element))
  {
   foreach($element as $debug)
   {
    $debug_info  .=  $debug . '\n';

   }
   return $debug_info;
  }
  else
  {
   return false;
  } }
 function IterateElementAndSubElements(&amp;$element)
 {
  $Iteration="";
  $i="";
  if (!empty($element))
  {
   $Iteration .= '&lt;br&gt;';
   foreach($element as $head =&gt; $debug)
   {$Iteration .= ++$i . ') ';
    if (is_array($debug))
    {
     $Iteration .= $this-&gt;IterateElementAndSubElements($debug);
    }
    else
    {
     $Iteration .= "[$head] : " . $debug . ',';
    }
    $Iteration .= '&lt;br&gt;';
   }
   $Element = $Iteration;
   return $Element;
  }
  else 
  {
   return false;
  }
 }
 function IterateRows(&amp;$query_resource)
 {
  $rows = array();
  while ($row = mysql_fetch_assoc($query_resource))
  {
   $rows[] = $row;
  }
  $this-&gt;mData = $rows;
  return ($this-&gt;IterateElementAndSubElements($this-&gt;mData)); }



 /**

  * Shows the Description of the Particular Connection including ConnectionId, Host, Database and User
  *
  * @return string

  */

 function ShowConnectionStatus()

 {
  $connection_status = '&lt;div style=\"padding:3px;color:white; background-color:green\"&gt;&lt;b&gt;Connection ID&lt;/b&gt; : ' . $this-&gt;mConnection .'&lt;br&gt;';
  $connection_status .= '&lt;b&gt;Host:&lt;/b&gt; ' . $this-&gt;mHost . '&lt;br&gt;';
  $connection_status .= '&lt;b&gt;Database:&lt;/b&gt; ' . $this-&gt;mDatabase . '&lt;br&gt;';
  $connection_status .= '&lt;b&gt;User:&lt;/b&gt; ' . $this-&gt;mUser. '&lt;br&gt;&lt;/div&gt;';
  return $connection_status;
 }
 function Show($element)
 {
  switch ($element)
  {
   case 'debug':
    $ele_cnd = &amp;$this-&gt;mIsDebug;
    $ele = $this-&gt;mDebug;
    break;
   case 'error':
    $ele_cnd = &amp;$this-&gt;mIsLogError;
    $ele = $this-&gt;mErrorLog;
    break;
   case 'query':
    $ele_cnd = &amp;$this-&gt;mIsLogQuery;
    $ele = $this-&gt;mQueryLog;
    break;
  }
  if (true == $ele_cnd)
  {
   $this-&gt;FwJavaScript();
   $debug_string = $this-&gt;ShowConnectionStatus();
   $debug_string .= $this-&gt;IterateElement($ele);
   $this-&gt;AlertInDiv($debug_string);
  }
 }
     function CheckIfNotExists($galleryTable,$galleryInfo)
 {
   $this-&gt;Select("count(*)",$galleryTable,'fld_name = "' . $galleryInfo .'"','',1);
   $results = $this-&gt;GetRows();
   if (($results[0]['count(*)'])&gt;=1)
   {
   return false;
   }
   else
   {return true;
   } 
 } 
 function NotExists($categoryTable,$categoryInfo)
 {
   $this-&gt;Select("count(*)",$categoryTable,'cate_name = "' . $categoryInfo .'"','',1);
    $results = $this-&gt;GetRows();
   if (($results[0]['count(*)'])&gt;=1)
   {
   return false;
   }
   else
   {
   return true;
   } 
 }
 function GetLink()
 {
 return $this-&gt;mConnection;
 }
 }
$DbConnection = new FwConnection(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME);
//select
$DbConnection-&gt;Select("id,SubCat","tablename","where id=1","","");
$dataArray = $DbConnection-&gt;GetRows();
//update by id
$q= array("fieldname"=&gt;'123');
$DbConnection-&gt;UpdatebyID("tablename",$q,"id",$_POST['id']);
//update
$q= array("fieldname"=&gt;'123');
$DbConnection-&gt;Update("tablename",$q,"id = ".$_POST['id']);
//insert
$q= array("fieldname"=&gt;'123');
$DbConnection-&gt;InsertInto("tablename",$q);
//delete
$DbConnection-&gt;Delete('tablename','id= "'.$_GET['id'].'"');
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2519944552901009673?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2519944552901009673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-database-connection-class-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2519944552901009673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2519944552901009673'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-database-connection-class-with.html' title='PHP: Database Connection Class with select , insert, delete, update functions'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5783625194257868335</id><published>2010-01-14T02:01:00.001-08:00</published><updated>2010-01-14T03:26:10.728-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Special Characters in HTML</title><content type='html'>&lt;b&gt;HTML: Special Characters&lt;br/&gt;HTML Entities and/or ISO Latin-1 codes can be placed in source code like any other alphanumeric characters to produce special characters and symbols that cannot be generated in HTML with normal keyboard commands.&lt;/b&gt;
&lt;table border=0 cellpadding=3 cellspacing=0 width="430"&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;left single quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;lsquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;lsquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;right single quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;rsquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;rsquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;single low-9 quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;sbquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;sbquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;left double quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ldquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;ldquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;right double quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;rdquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;rdquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;double low-9 quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;bdquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;bdquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;dagger&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;dagger;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;dagger;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;double dagger&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Dagger;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Dagger;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;per mill sign&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;permil;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;permil;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;single left-pointing angle quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;lsaquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;lsaquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;single right-pointing angle quote&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;rsaquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;rsaquo;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;black spade suit&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;spades;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;spades;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;black club suit&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;clubs;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;clubs;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;black heart suit&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;hearts;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;hearts;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;black diamond suit&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;diams;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;diams;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;overline, = spacing overscore&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;oline;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;oline;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;leftward arrow&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;larr;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;larr;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;upward arrow&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;uarr;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;uarr;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;rightward arrow&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;rarr;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;rarr;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;downward arrow&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;amp;darr;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;darr;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;trademark sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#x2122;&lt;/TD&gt;&lt;TD&gt;&amp;amp;trade;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;trade;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;unused&lt;/TD&gt;&lt;TD&gt;&amp;amp;#00;-&lt;BR&gt;&amp;amp;#08;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;horizontal tab&lt;/TD&gt;&lt;TD&gt;&amp;amp;#09;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;line feed&lt;/TD&gt;&lt;TD&gt;&amp;amp;#10;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;unused&lt;/TD&gt;&lt;TD&gt;&amp;amp;#11;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;


&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;space&lt;/TD&gt;&lt;TD&gt;&amp;amp;#32;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;exclamation mark&lt;/TD&gt;&lt;TD&gt;&amp;amp;#33;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#33;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;double quotation mark&lt;/TD&gt;&lt;TD&gt;&amp;amp;#34;&lt;/TD&gt;&lt;TD&gt;&amp;amp;quot;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#34;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;number sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#35;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#35;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;dollar sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#36;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#36;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;percent sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#37;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#37;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;ampersand&lt;/TD&gt;&lt;TD&gt;&amp;amp;#38;&lt;/TD&gt;&lt;TD&gt;&amp;amp;amp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#38;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;apostrophe&lt;/TD&gt;&lt;TD&gt;&amp;amp;#39;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#39;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;left parenthesis&lt;/TD&gt;&lt;TD&gt;&amp;amp;#40;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#40;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;right parenthesis&lt;/TD&gt;&lt;TD&gt;&amp;amp;#41;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#41;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;asterisk&lt;/TD&gt;&lt;TD&gt;&amp;amp;#42;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#42;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;plus sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#43;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#43;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;comma&lt;/TD&gt;&lt;TD&gt;&amp;amp;#44;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#44;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;hyphen&lt;/TD&gt;&lt;TD&gt;&amp;amp;#45;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#45;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;period&lt;/TD&gt;&lt;TD&gt;&amp;amp;#46;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#46;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;slash&lt;/TD&gt;&lt;TD&gt;&amp;amp;#47;&lt;/TD&gt;&lt;TD&gt;&amp;amp;frasl;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#47;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;digits 0-9&lt;/TD&gt;&lt;TD&gt;&amp;amp;#48;-&lt;BR&gt;&amp;amp;#57;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;colon&lt;/TD&gt;&lt;TD&gt;&amp;amp;#58;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#58;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;semicolon&lt;/TD&gt;&lt;TD&gt;&amp;amp;#59;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#59;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;less-than sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#60;&lt;/TD&gt;&lt;TD&gt;&amp;amp;lt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#60;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;equals sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#61;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#61;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;greater-than sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#62;&lt;/TD&gt;&lt;TD&gt;&amp;amp;gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#62;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;question mark&lt;/TD&gt;&lt;TD&gt;&amp;amp;#63;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#63;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;at sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#64;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#64;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase letters A-Z&lt;/TD&gt;&lt;TD&gt;&amp;amp;#65;-&lt;BR&gt;&amp;amp;#90;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;left square bracket&lt;/TD&gt;&lt;TD&gt;&amp;amp;#91;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#91;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;backslash&lt;/TD&gt;&lt;TD&gt;&amp;amp;#92;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#92;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;right square bracket&lt;/TD&gt;&lt;TD&gt;&amp;amp;#93;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#93;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;caret&lt;/TD&gt;&lt;TD&gt;&amp;amp;#94;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#94;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;horizontal bar (underscore)&lt;/TD&gt;&lt;TD&gt;&amp;amp;#95;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#95;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#96;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#96;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase letters a-z&lt;/TD&gt;&lt;TD&gt;&amp;amp;#97;-&lt;BR&gt;&amp;amp;#122;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;left curly brace&lt;/TD&gt;&lt;TD&gt;&amp;amp;#123;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#123;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;vertical bar&lt;/TD&gt;&lt;TD&gt;&amp;amp;#124;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#124;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;right curly brace&lt;/TD&gt;&lt;TD&gt;&amp;amp;#125;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#125;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#126;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#126;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;unused&lt;/TD&gt;&lt;TD&gt;&amp;amp;#127;-&lt;BR&gt;&amp;amp;#149;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;en dash&lt;/TD&gt;&lt;TD&gt;&amp;amp;#150;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ndash;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#150;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;em dash&lt;/TD&gt;&lt;TD&gt;&amp;amp;#151;&lt;/TD&gt;&lt;TD&gt;&amp;amp;mdash;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#151;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;unused&lt;/TD&gt;&lt;TD&gt;&amp;amp;#152;-&lt;BR&gt;&amp;amp;#159;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;nonbreaking space&lt;/TD&gt;&lt;TD&gt;&amp;amp;#160;&lt;/TD&gt;&lt;TD&gt;&amp;amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#160;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;inverted exclamation&lt;/TD&gt;&lt;TD&gt;&amp;amp;#161;&lt;/TD&gt;&lt;TD&gt;&amp;amp;iexcl;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#161;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;cent sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#162;&lt;/TD&gt;&lt;TD&gt;&amp;amp;cent;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#162;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;pound sterling&lt;/TD&gt;&lt;TD&gt;&amp;amp;#163;&lt;/TD&gt;&lt;TD&gt;&amp;amp;pound;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#163;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;general currency sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#164;&lt;/TD&gt;&lt;TD&gt;&amp;amp;curren;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#164;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;yen sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#165;&lt;/TD&gt;&lt;TD&gt;&amp;amp;yen;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#165;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;broken vertical bar&lt;/TD&gt;&lt;TD&gt;&amp;amp;#166;&lt;/TD&gt;&lt;TD&gt;&amp;amp;brvbar; or &amp;amp;brkbar;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#166;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;section sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#167;&lt;/TD&gt;&lt;TD&gt;&amp;amp;sect;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#167;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#168;&lt;/TD&gt;&lt;TD&gt;&amp;amp;uml; or &amp;amp;die;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#168;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;copyright&lt;/TD&gt;&lt;TD&gt;&amp;amp;#169;&lt;/TD&gt;&lt;TD&gt;&amp;amp;copy;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#169;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;feminine ordinal&lt;/TD&gt;&lt;TD&gt;&amp;amp;#170;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ordf;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#170;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;left angle quote&lt;/TD&gt;&lt;TD&gt;&amp;amp;#171;&lt;/TD&gt;&lt;TD&gt;&amp;amp;laquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#171;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;not sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#172;&lt;/TD&gt;&lt;TD&gt;&amp;amp;not;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#172;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;soft hyphen&lt;/TD&gt;&lt;TD&gt;&amp;amp;#173;&lt;/TD&gt;&lt;TD&gt;&amp;amp;shy;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#173;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;registered trademark&lt;/TD&gt;&lt;TD&gt;&amp;amp;#174;&lt;/TD&gt;&lt;TD&gt;&amp;amp;reg;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#174;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;macron accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#175;&lt;/TD&gt;&lt;TD&gt;&amp;amp;macr; or &amp;amp;hibar;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#175;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;degree sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#176;&lt;/TD&gt;&lt;TD&gt;&amp;amp;deg;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#176;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;plus or minus&lt;/TD&gt;&lt;TD&gt;&amp;amp;#177;&lt;/TD&gt;&lt;TD&gt;&amp;amp;plusmn;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#177;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;superscript two&lt;/TD&gt;&lt;TD&gt;&amp;amp;#178;&lt;/TD&gt;&lt;TD&gt;&amp;amp;sup2;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#178;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;superscript three&lt;/TD&gt;&lt;TD&gt;&amp;amp;#179;&lt;/TD&gt;&lt;TD&gt;&amp;amp;sup3;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#179;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#180;&lt;/TD&gt;&lt;TD&gt;&amp;amp;acute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#180;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;micro sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#181;&lt;/TD&gt;&lt;TD&gt;&amp;amp;micro;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#181;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;paragraph sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#182;&lt;/TD&gt;&lt;TD&gt;&amp;amp;para;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#182;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;middle dot&lt;/TD&gt;&lt;TD&gt;&amp;amp;#183;&lt;/TD&gt;&lt;TD&gt;&amp;amp;middot;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#183;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;cedilla&lt;/TD&gt;&lt;TD&gt;&amp;amp;#184;&lt;/TD&gt;&lt;TD&gt;&amp;amp;cedil;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#184;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;superscript one&lt;/TD&gt;&lt;TD&gt;&amp;amp;#185;&lt;/TD&gt;&lt;TD&gt;&amp;amp;sup1;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#185;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;masculine ordinal&lt;/TD&gt;&lt;TD&gt;&amp;amp;#186;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ordm;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#186;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;right angle quote&lt;/TD&gt;&lt;TD&gt;&amp;amp;#187;&lt;/TD&gt;&lt;TD&gt;&amp;amp;raquo;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#187;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;one-fourth&lt;/TD&gt;&lt;TD&gt;&amp;amp;#188;&lt;/TD&gt;&lt;TD&gt;&amp;amp;frac14;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#188;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;one-half&lt;/TD&gt;&lt;TD&gt;&amp;amp;#189;&lt;/TD&gt;&lt;TD&gt;&amp;amp;frac12;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#189;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;three-fourths&lt;/TD&gt;&lt;TD&gt;&amp;amp;#190;&lt;/TD&gt;&lt;TD&gt;&amp;amp;frac34;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#190;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;inverted question mark&lt;/TD&gt;&lt;TD&gt;&amp;amp;#191;&lt;/TD&gt;&lt;TD&gt;&amp;amp;iquest;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#191;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase A, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#192;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Agrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#192;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase A, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#193;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Aacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#193;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase A, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#194;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Acirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#194;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase A, tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#195;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Atilde;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#195;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase A, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#196;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Auml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#196;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase A, ring&lt;/TD&gt;&lt;TD&gt;&amp;amp;#197;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Aring;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#197;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase AE&lt;/TD&gt;&lt;TD&gt;&amp;amp;#198;&lt;/TD&gt;&lt;TD&gt;&amp;amp;AElig;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#198;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase C, cedilla&lt;/TD&gt;&lt;TD&gt;&amp;amp;#199;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ccedil;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#199;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase E, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#200;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Egrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#200;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase E, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#201;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Eacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#201;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase E, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#202;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ecirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#202;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase E, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#203;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Euml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#203;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase I, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#204;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Igrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#204;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase I, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#205;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Iacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#205;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase I, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#206;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Icirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#206;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase I, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#207;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Iuml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#207;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase Eth, Icelandic&lt;/TD&gt;&lt;TD&gt;&amp;amp;#208;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ETH;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#208;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase N, tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#209;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ntilde;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#209;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase O, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#210;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ograve;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#210;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase O, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#211;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Oacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#211;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase O, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#212;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ocirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#212;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase O, tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#213;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Otilde;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#213;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase O, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#214;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ouml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#214;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;multiplication sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#215;&lt;/TD&gt;&lt;TD&gt;&amp;amp;times;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#215;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase O, slash&lt;/TD&gt;&lt;TD&gt;&amp;amp;#216;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Oslash;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#216;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase U, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#217;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ugrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#217;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase U, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#218;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Uacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#218;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase U, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#219;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Ucirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#219;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase U, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#220;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Uuml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#220;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;uppercase Y, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#221;&lt;/TD&gt;&lt;TD&gt;&amp;amp;Yacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#221;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;uppercase THORN, Icelandic&lt;/TD&gt;&lt;TD&gt;&amp;amp;#222;&lt;/TD&gt;&lt;TD&gt;&amp;amp;THORN;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#222;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase sharps, German&lt;/TD&gt;&lt;TD&gt;&amp;amp;#223;&lt;/TD&gt;&lt;TD&gt;&amp;amp;szlig;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#223;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase a, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#224;&lt;/TD&gt;&lt;TD&gt;&amp;amp;agrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#224;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase a, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#225;&lt;/TD&gt;&lt;TD&gt;&amp;amp;aacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#225;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase a, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#226;&lt;/TD&gt;&lt;TD&gt;&amp;amp;acirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#226;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase a, tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#227;&lt;/TD&gt;&lt;TD&gt;&amp;amp;atilde;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#227;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase a, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#228;&lt;/TD&gt;&lt;TD&gt;&amp;amp;auml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#228;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase a, ring&lt;/TD&gt;&lt;TD&gt;&amp;amp;#229;&lt;/TD&gt;&lt;TD&gt;&amp;amp;aring;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#229;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase ae&lt;/TD&gt;&lt;TD&gt;&amp;amp;#230;&lt;/TD&gt;&lt;TD&gt;&amp;amp;aelig;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#230;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase c, cedilla&lt;/TD&gt;&lt;TD&gt;&amp;amp;#231;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ccedil;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#231;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase e, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#232;&lt;/TD&gt;&lt;TD&gt;&amp;amp;egrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#232;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase e, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#233;&lt;/TD&gt;&lt;TD&gt;&amp;amp;eacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#233;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase e, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#234;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ecirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#234;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase e, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#235;&lt;/TD&gt;&lt;TD&gt;&amp;amp;euml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#235;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase i, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#236;&lt;/TD&gt;&lt;TD&gt;&amp;amp;igrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#236;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase i, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#237;&lt;/TD&gt;&lt;TD&gt;&amp;amp;iacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#237;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase i, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#238;&lt;/TD&gt;&lt;TD&gt;&amp;amp;icirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#238;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase i, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#239;&lt;/TD&gt;&lt;TD&gt;&amp;amp;iuml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#239;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase eth, Icelandic&lt;/TD&gt;&lt;TD&gt;&amp;amp;#240;&lt;/TD&gt;&lt;TD&gt;&amp;amp;eth;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#240;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase n, tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#241;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ntilde;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#241;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase o, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#242;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ograve;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#242;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase o, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#243;&lt;/TD&gt;&lt;TD&gt;&amp;amp;oacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#243;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase o, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#244;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ocirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#244;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase o, tilde&lt;/TD&gt;&lt;TD&gt;&amp;amp;#245;&lt;/TD&gt;&lt;TD&gt;&amp;amp;otilde;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#245;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase o, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#246;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ouml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#246;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;division sign&lt;/TD&gt;&lt;TD&gt;&amp;amp;#247;&lt;/TD&gt;&lt;TD&gt;&amp;amp;divide;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#247;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase o, slash&lt;/TD&gt;&lt;TD&gt;&amp;amp;#248;&lt;/TD&gt;&lt;TD&gt;&amp;amp;oslash;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#248;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase u, grave accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#249;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ugrave;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#249;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase u, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#250;&lt;/TD&gt;&lt;TD&gt;&amp;amp;uacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#250;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;

&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase u, circumflex accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#251;&lt;/TD&gt;&lt;TD&gt;&amp;amp;ucirc;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#251;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase u, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#252;&lt;/TD&gt;&lt;TD&gt;&amp;amp;uuml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#252;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase y, acute accent&lt;/TD&gt;&lt;TD&gt;&amp;amp;#253;&lt;/TD&gt;&lt;TD&gt;&amp;amp;yacute;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#253;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;lowercase thorn, Icelandic&lt;/TD&gt;&lt;TD&gt;&amp;amp;#254;&lt;/TD&gt;&lt;TD&gt;&amp;amp;thorn;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#254;&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lowercase y, umlaut&lt;/TD&gt;&lt;TD&gt;&amp;amp;#255;&lt;/TD&gt;&lt;TD&gt;&amp;amp;yuml;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#255;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Alpha&lt;/TD&gt;&lt;TD&gt;&amp;amp;Alpha;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Alpha;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;alpha&lt;/TD&gt;&lt;TD&gt;&amp;amp;alpha;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;alpha;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Beta&lt;/TD&gt;&lt;TD&gt;&amp;amp;Beta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Beta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;beta&lt;/TD&gt;&lt;TD&gt;&amp;amp;beta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;beta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Gamma&lt;/TD&gt;&lt;TD&gt;&amp;amp;Gamma;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Gamma;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;gamma&lt;/TD&gt;&lt;TD&gt;&amp;amp;gamma;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;gamma;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Delta&lt;/TD&gt;&lt;TD&gt;&amp;amp;Delta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Delta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;delta&lt;/TD&gt;&lt;TD&gt;&amp;amp;delta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;delta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Epsilon&lt;/TD&gt;&lt;TD&gt;&amp;amp;Epsilon;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Epsilon;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;epsilon&lt;/TD&gt;&lt;TD&gt;&amp;amp;epsilon;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;epsilon;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Zeta&lt;/TD&gt;&lt;TD&gt;&amp;amp;Zeta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Zeta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;zeta&lt;/TD&gt;&lt;TD&gt;&amp;amp;zeta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;zeta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Eta&lt;/TD&gt;&lt;TD&gt;&amp;amp;Eta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Eta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;eta&lt;/TD&gt;&lt;TD&gt;&amp;amp;eta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;eta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Theta&lt;/TD&gt;&lt;TD&gt;&amp;amp;Theta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Theta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;theta&lt;/TD&gt;&lt;TD&gt;&amp;amp;theta;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;theta;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Iota&lt;/TD&gt;&lt;TD&gt;&amp;amp;Iota;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Iota;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;iota&lt;/TD&gt;&lt;TD&gt;&amp;amp;iota;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;iota;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Kappa&lt;/TD&gt;&lt;TD&gt;&amp;amp;Kappa;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Kappa;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;kappa&lt;/TD&gt;&lt;TD&gt;&amp;amp;kappa;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;kappa;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Lambda&lt;/TD&gt;&lt;TD&gt;&amp;amp;Lambda;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Lambda;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;lambda&lt;/TD&gt;&lt;TD&gt;&amp;amp;lambda;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;lambda;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Mu&lt;/TD&gt;&lt;TD&gt;&amp;amp;Mu;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Mu;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;mu&lt;/TD&gt;&lt;TD&gt;&amp;amp;mu;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;mu;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Nu&lt;/TD&gt;&lt;TD&gt;&amp;amp;Nu;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Nu;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;nu&lt;/TD&gt;&lt;TD&gt;&amp;amp;nu;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;nu;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Xi&lt;/TD&gt;&lt;TD&gt;&amp;amp;Xi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Xi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;xi&lt;/TD&gt;&lt;TD&gt;&amp;amp;xi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;xi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Omicron&lt;/TD&gt;&lt;TD&gt;&amp;amp;Omicron;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Omicron;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;omicron&lt;/TD&gt;&lt;TD&gt;&amp;amp;omicron;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;omicron;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Pi&lt;/TD&gt;&lt;TD&gt;&amp;amp;Pi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Pi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;pi&lt;/TD&gt;&lt;TD&gt;&amp;amp;pi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;pi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Rho&lt;/TD&gt;&lt;TD&gt;&amp;amp;Rho;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Rho;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;rho&lt;/TD&gt;&lt;TD&gt;&amp;amp;rho;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;rho;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Sigma&lt;/TD&gt;&lt;TD&gt;&amp;amp;Sigma;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Sigma;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;sigma&lt;/TD&gt;&lt;TD&gt;&amp;amp;sigma;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;sigma;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Tau&lt;/TD&gt;&lt;TD&gt;&amp;amp;Tau;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Tau;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;tau&lt;/TD&gt;&lt;TD&gt;&amp;amp;tau;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;tau;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Upsilon&lt;/TD&gt;&lt;TD&gt;&amp;amp;Upsilon;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Upsilon;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;upsilon&lt;/TD&gt;&lt;TD&gt;&amp;amp;upsilon;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;upsilon;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Phi&lt;/TD&gt;&lt;TD&gt;&amp;amp;Phi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Phi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;phi&lt;/TD&gt;&lt;TD&gt;&amp;amp;phi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;phi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Chi&lt;/TD&gt;&lt;TD&gt;&amp;amp;Chi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Chi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;chi&lt;/TD&gt;&lt;TD&gt;&amp;amp;chi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;chi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Psi&lt;/TD&gt;&lt;TD&gt;&amp;amp;Psi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Psi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;psi&lt;/TD&gt;&lt;TD&gt;&amp;amp;psi;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;psi;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;Omega&lt;/TD&gt;&lt;TD&gt;&amp;amp;Omega;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;Omega;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;omega&lt;/TD&gt;&lt;TD&gt;&amp;amp;omega;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;omega;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;

&lt;TR bgcolor=#FFFFFF&gt;&lt;TD&gt;password dot&lt;/TD&gt;&lt;TD&gt;&amp;amp;#9679;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#9679;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;TR bgcolor=#EEEEEE&gt;&lt;TD&gt;bullet&lt;/TD&gt;&lt;TD&gt;&amp;amp;#8226;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;&amp;#8226;&lt;/B&gt;&lt;/TD&gt;&lt;/tr&gt;
&lt;/TABLE&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5783625194257868335?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5783625194257868335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/special-characters-in-html.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5783625194257868335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5783625194257868335'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/special-characters-in-html.html' title='Special Characters in HTML'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-8873615949147989699</id><published>2010-01-14T01:27:00.000-08:00</published><updated>2010-01-14T02:00:00.615-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP Pagination Class</title><content type='html'>PHP Pagination is a flexible and easy to implement PHP pagination &lt;br /&gt;
script which will help you split large result sets over multiple pages. &lt;br /&gt;
&lt;b&gt;Main Features&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Ease of integration with existing &lt;span class="caps"&gt;PHP&lt;/span&gt; applications&lt;/li&gt;
&lt;li&gt;Easy to customize. The main class is just 200 code lines&lt;/li&gt;
&lt;li&gt;Append custom parameters to pagination links&lt;/li&gt;
&lt;li&gt;Flexibility in rendering pagination links&lt;/li&gt;
&lt;/ul&gt;&lt;div style="width:440px;height:500px;overflow-y:scroll;overflow-x:scroll;border:1px solid #cccccc;"&gt;&lt;pre&gt;define("QS_VAR", "page"); 
define("NUM_ROWS",10); 
define("STR_FWD", "Next"); 
define("STR_BWD", "Previous"); 
define("IMG_FWD",  "next.gif");
define("IMG_BWD",  "prev.gif"); 
define("NUM_LINKS", 5);
class MyPagina { 
 var $sql;
 var $result;
 var $outstanding_rows = false; 
 var $get_var; var $rows_on_page;
 var $max_rows; 
 function MyPagina($rows = 0) {
  //$this-&gt;connect_db();
  $this-&gt;max_rows = $rows;
  $this-&gt;get_var = QS_VAR;
  $this-&gt;rows_on_page = NUM_ROWS;
 }
 function set_page() {
  $page = (isset($_REQUEST[$this-&gt;get_var]) &amp;&amp; $_REQUEST[$this-&gt;get_var] != "") ? $_REQUEST[$this-&gt;get_var] : 0;
  return $page;
 }
 // gets the total number of records 
 function get_total_rows() {
  $tmp_result = mysql_query($this-&gt;sql);
  $all_rows = mysql_num_rows($tmp_result);
  if (!empty($this-&gt;max_rows) &amp;&amp; $all_rows &gt; $this-&gt;max_rows) {
   $all_rows = $this-&gt;max_rows;
   $this-&gt;outstanding_rows = true;
  }
  mysql_free_result($tmp_result);
  return $all_rows;
 }
 // database connection
 
 // get the totale number of result pages
 function get_num_pages() {
  $number_pages = ceil($this-&gt;get_total_rows() / $this-&gt;rows_on_page);
  return $number_pages;
 }
 // returns the records for the current page
 function get_page_result() {
  $start = $this-&gt;set_page() * $this-&gt;rows_on_page;
  $page_sql = sprintf("%s LIMIT %s, %s", $this-&gt;sql, $start, $this-&gt;rows_on_page);
  $this-&gt;result = mysql_query($page_sql);
  return $this-&gt;result;
 }
 // get the number of rows on the current page
 function get_page_num_rows() {
  $num_rows = mysql_num_rows($this-&gt;result);
  return $num_rows;
 }
 // free the database result
 function free_page_result() {
  mysql_free_result($this-&gt;result);
 }
 // function to handle other querystring than the page variable
 function rebuild_qs($curr_var) {
  if (!empty($_SERVER['QUERY_STRING'])) {
   $parts = explode("&amp;", $_SERVER['QUERY_STRING']);
   $newParts = array();
   foreach ($parts as $val) {
    if (stristr($val, $curr_var) == false)  {
     array_push($newParts, $val);
    }
   }
   if (count($newParts) != 0) {
    $qs = "&amp;".implode("&amp;", $newParts);
   } else {
    return false;
   }
   return $qs; // this is your new created query string
  } else {
   return false;
  }
 } 
 
 // this method will return the navigation links for the conplete recordset
 function navigation($separator = " | ", $css_current = "", $back_forward = false, $use_images = false) {
  $max_links = NUM_LINKS;
  $curr_pages = $this-&gt;set_page(); 
  $all_pages = $this-&gt;get_num_pages() - 1;
  $totalrecords= $this-&gt;get_total_rows();
  $var = $this-&gt;get_var;
  $navi_string = "";
  if (!$back_forward) {
   $max_links = ($max_links &lt; 2) ? 2 : $max_links;
  }
  if ($curr_pages &lt;= $all_pages &amp;&amp; $curr_pages &gt;= 0) {
   if ($curr_pages &gt; ceil($max_links/2)) {
    $start = ($curr_pages - ceil($max_links/2) &gt; 0) ? $curr_pages - ceil($max_links/2) : 1;
    $end = $curr_pages + ceil($max_links/2);
    if ($end &gt;= $all_pages) {
     $end = $all_pages + 1;
     $start = ($all_pages - ($max_links - 1) &gt; 0) ? $all_pages  - ($max_links - 1) : 1;
    }
   } else {
    $start = 0;
    $end = ($all_pages &gt;= $max_links) ? $max_links : $all_pages + 1;
   }
   if($all_pages &gt;= 1) {
    $forward = $curr_pages + 1;
    $backward = $curr_pages - 1;
    // the text two labels are new sinds ver 1.02
    $lbl_forward = $this-&gt;build_back_or_forward("forward", $use_images);
    $lbl_backward = $this-&gt;build_back_or_forward("backward", $use_images);
    $navi_string .="&lt;div style='float:left'&gt;Total Records: ".$totalrecords." | Go to Page ";
    if (!$back_forward) {
     for($a = $start + 1; $a &lt;= $end; $a++){
      $theNext = $a - 1; // because a array start with 0
      
      if ($theNext != $curr_pages) {
       $navi_string .= "&amp;lt; a href=\"".$_SERVER['PHP_SELF']."?".$var."=".$theNext.$this-&gt;rebuild_qs($var)."\"&amp;gt;";
       $navi_string .= $a."&amp;lt;/a&amp;gt;";
       $navi_string .= ($theNext &lt; ($end - 1)) ? $separator : "";
      } else {
       $navi_string .= ($css_current != "") ? "&lt;span class=\"".$css_current."\"&gt;".$a."&lt;/span&gt;" : $a;
       $navi_string .= ($theNext &lt; ($end - 1)) ? $separator : "";
      }
     }
    }
    $navi_string .="&lt;/div&gt;
&lt;div style='float:right'&gt;";
    $navi_string .= ($curr_pages &gt; 0) ? "&amp;lt; a href=\"".$_SERVER['PHP_SELF']."?".$var."=".$backward.$this-&gt;rebuild_qs($var)."\"&amp;gt;".$lbl_backward."&amp;lt;/a&amp;gt;&amp;nbsp;" : $lbl_backward."&amp;nbsp;";
    $navi_string .= ($curr_pages &lt; $all_pages) ? "&amp;nbsp;&amp;lt;a href=\"".$_SERVER['PHP_SELF']."?".$var."=".$forward.$this-&gt;rebuild_qs($var)."\"&amp;gt;".$lbl_forward."&amp;lt;/a&amp;gt;" : "&amp;nbsp;".$lbl_forward;
    $navi_string .='&lt;/div&gt;&lt;div style="clear:both"&gt;&lt;/div&gt;';
   }
  }
  return $navi_string;
 }
 // function to create the back/forward elements; $what = forward or backward
 // type = text or img
 function build_back_or_forward($what, $img = false) {
  $label['text']['forward'] = IMG_FWD;
  $label['text']['backward'] = IMG_BWD;
  $label['img']['forward'] = IMG_FWD;
  $label['img']['backward'] = IMG_BWD;
  if ($img) {
   $img_info = getimagesize($label['img'][$what]);
   $label = "&amp;lt;img src=\"".$label['img'][$what]."\" ".$img_info[3]." border=\"0\"&amp;gt;";
  } else {
   $img_info = getimagesize($label['img'][$what]);
   $label = "&amp;lt;img src=\"".$label['img'][$what]."\" ".$img_info[3]." border=\"0\"&amp;gt;";
  }
  return $label;
 }
 // this info will tell the visitor which number of records are shown on the current page
 function page_info($str = "Result: %d - %d of %d") {
  $first_rec_no = ($this-&gt;set_page() * $this-&gt;rows_on_page) + 1;
  $last_rec_no = $first_rec_no + $this-&gt;rows_on_page - 1;
  $last_rec_no = ($last_rec_no &gt; $this-&gt;get_total_rows()) ? $this-&gt;get_total_rows() : $last_rec_no;
  $info = sprintf($str, $first_rec_no, $last_rec_no, $this-&gt;get_total_rows());
  return $info;
 }
 // simple method to show only the page back and forward link.
 function back_forward_link($images = false) {
  $simple_links = $this-&gt;navigation(" ", "", true, $images);
  return $simple_links;
 }
}

&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-8873615949147989699?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/8873615949147989699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-pagination-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8873615949147989699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/8873615949147989699'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/php-pagination-class.html' title='PHP Pagination Class'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-6826545437716782438</id><published>2010-01-14T01:18:00.000-08:00</published><updated>2010-01-14T01:55:32.058-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>How to Create Thumbnail Images using PHP</title><content type='html'>This tutorial will describe how to create thumbnail images on the fly using PHP. Furthermore you will learn how to process a whole folder of images and create their thumbnails. Since this requires the GD library, you will need an installation of PHP with at least GD 2.0.1 enabled.&lt;br /&gt;
&lt;div style="width:440px;height:500px;overflow-y:scroll;overflow-x:scroll;border:1px solid #cccccc;"&gt;&lt;pre&gt;class Zubrag_image {
  var $save_to_file = true;
  var $image_type = -1;
  var $quality = 100;
  var $cut_x = 0;
  var $cut_y = 0; 
  function SaveImage($im, $filename) { 
    $res = null;
    // ImageGIF is not included into some GD2 releases, so it might not work
    // output png if gifs are not supported
    if(($this-&gt;image_type == 1)  &amp;&amp; 
!function_exists('imagegif')) $this-&gt;image_type = 3;
    switch ($this-&gt;image_type) {
      case 1:
        if ($this-&gt;save_to_file) {
          $res = ImageGIF($im,$filename);
        }
        else {
          header("Content-type: image/gif");
          $res = ImageGIF($im);
        }
        break;
      case 2:
        if ($this-&gt;save_to_file) {
          $res = ImageJPEG($im,$filename,$this-&gt;quality);
        }
        else {
          header("Content-type: image/jpeg");
          $res = ImageJPEG($im, NULL, $this-&gt;quality);
        }
        break;
      case 3:
        if (PHP_VERSION &gt;= '5.1.2') {
          $quality = 9 - min( round($this-&gt;quality / 10), 9 );
          if ($this-&gt;save_to_file) {
            $res = ImagePNG($im, $filename, $quality);
          }
          else {
            header("Content-type: image/png");
            $res = ImagePNG($im, NULL, $quality);
          }
        }
        else {
          if ($this-&gt;save_to_file) {
            $res = ImagePNG($im, $filename);
          }
          else {
            header("Content-type: image/png");
            $res = ImagePNG($im);
          }
        }
        break;    }
    return $res;
  }  function ImageCreateFromType($type,$filename) {
   $im = null;
   switch ($type) {
     case 1:
       $im = ImageCreateFromGif($filename);
       break;
     case 2:
       $im = ImageCreateFromJpeg($filename);
       break;
     case 3:
       $im = ImageCreateFromPNG($filename);
       break;
    }
    return $im;
  }
  function GenerateThumbFile($from_name, $to_name,$X,$Y) {
    $this-&gt;max_x=$X;
  $this-&gt;max_y=$Y;
    $temp = false;
    if (substr($from_name,0,7) == 'http://') {
      $tmpfname = tempnam("tmp/", "TmP-");
      $temp = @fopen($tmpfname, "w");
      if ($temp) {
        @fwrite($temp, @file_get_contents($from_name)) or 
         die("Cannot download image");
        @fclose($temp);
        $from_name = $tmpfname;
      }      else {
        die("Cannot create temp file");
      }    }
    // check if file exists
    if (!file_exists($from_name)) die("Source image does not exist!"); 
    list($orig_x, $orig_y, $orig_img_type, $img_sizes) = @GetImageSize($from_name);
 if($this-&gt;max_x=="") { $this-&gt;max_x=$orig_x;}
 if($this-&gt;max_y=="") { $this-&gt;max_y=$orig_y;}
    // cut image if specified by user
    if ($this-&gt;cut_x &gt; 0) $orig_x = min($this-&gt;cut_x, $orig_x);
    if ($this-&gt;cut_y &gt; 0) $orig_y = min($this-&gt;cut_y, $orig_y);
    // should we override thumb image type?
    $this-&gt;image_type = ($this-&gt;image_type != -1 ? $this-&gt;image_type : $orig_img_type);
    // check for allowed image types
    if ($orig_img_type &lt; 1 or $orig_img_type &gt; 3) die("Image type not supported");
    if ($orig_x &gt; $this-&gt;max_x or $orig_y &gt; $this-&gt;max_y) {
      // resize
     $per_x = $orig_x / $this-&gt;max_x;
      $per_y = $orig_y / $this-&gt;max_y;
      if ($per_y &gt; $per_x) {
        $this-&gt;max_x = $orig_x / $per_y;   
   }      else {
        $this-&gt;max_y = $orig_y / $per_x;
      }    }    else {
      // keep original sizes, i.e. just copy
      if ($this-&gt;save_to_file) {
        @copy($from_name, $to_name);
      }      else {
        switch ($this-&gt;image_type) {
          case 1:
              header("Content-type: image/gif");
              readfile($from_name);
            break;
          case 2:
              header("Content-type: image/jpg");
              readfile($from_name);
            break;
          case 3:
              header("Content-type: image/png");
              readfile($from_name);
            break;
        }      }
      return;
    }
    if ($this-&gt;image_type == 1) {
      // should use this function for gifs (gifs are palette images)
      $ni = imagecreate($this-&gt;max_x, $this-&gt;max_y);    }
    else {
      // Create a new true color image
      $ni = imagecreatetruecolor($this-&gt;max_x,$this-&gt;max_y);
    }   // Fill image with white background (255,255,255)
    $white = imagecolorallocate($ni, 255, 255, 255);
 imagefilledrectangle( $ni, 0, 0, $this-&gt;max_x, $this-&gt;max_y, $white);
    // Create a new image from source file
    $im = $this-&gt;ImageCreateFromType($orig_img_type,$from_name);
    // Copy the palette from one image to another
    imagepalettecopy($ni,$im);
    imagecopyresampled(
      $ni, $im,             // destination, source
      0, 0, 0, 0,           // dstX, dstY, srcX, srcY
      $this-&gt;max_x, $this-&gt;max_y,       // dstW, dstH
      $orig_x, $orig_y);    // srcW, srcH
    // save thumb file
    $this-&gt;SaveImage($ni, $to_name);
    if($temp) {
      unlink($tmpfname); // this removes the file
    } }}
$img = new Zubrag_image; 
$image = "test.jpg";
$dirMain = "/var/www/projects/test/images/";
$dirThumb = "/var/www/projects/test/images/thumb"
$img-&gt;GenerateThumbFile($dirMain.$image, $dirThumb.$image,$imageHeight);


?&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-6826545437716782438?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/6826545437716782438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/how-to-create-thumbnail-images-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6826545437716782438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6826545437716782438'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/how-to-create-thumbnail-images-using.html' title='How to Create Thumbnail Images using PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3686164521235223627</id><published>2010-01-08T01:03:00.000-08:00</published><updated>2010-01-08T07:42:34.720-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento: How to get the products by category in magento</title><content type='html'>Please use following code to get the all product for category in magento site.&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_ZFfm-xNVy1g/S0dRbGbw3pI/AAAAAAAAABg/8iSXC1_A514/s1600-h/magento.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_ZFfm-xNVy1g/S0dRbGbw3pI/AAAAAAAAABg/8iSXC1_A514/s200/magento.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$cat_id=19;
 //assign any category id
    $category = new Mage_Catalog_Model_Category();
    $category-&amp;gt;load($cat_id);
    $collection = $category-&amp;gt;getProductCollection();
    foreach ($collection as $product) {
        $result[] = $product-&amp;gt;getId();
    }
Here $result is array of all products ids
$i=0;
foreach ($result as $_product_id){
    $i++;
    $_product = new Mage_Catalog_Model_Product();
    $_product-&amp;gt;load($_product_id);
    //do something with the product here
   $productUrl = $_product-&amp;gt;getProductUrl();
   $productTitle = $this-&amp;gt;htmlEscape($_product-&amp;gt;getName());
   $productImage = $this-&amp;gt;helper('catalog/image')-&amp;gt;
                    init($_product, 'small_image')-&amp;gt;resize(80, 77);
}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3686164521235223627?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3686164521235223627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-to-get-products-by-category.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3686164521235223627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3686164521235223627'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/magento-how-to-get-products-by-category.html' title='Magento: How to get the products by category in magento'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZFfm-xNVy1g/S0dRbGbw3pI/AAAAAAAAABg/8iSXC1_A514/s72-c/magento.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-7551136611497085199</id><published>2010-01-06T23:32:00.000-08:00</published><updated>2010-01-06T23:49:28.141-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>How to display the products on your magento site home page</title><content type='html'>There are numerous ways to put products on your home page, and we’ll compile a list of code snippets you can use on your own store here. 

Products on magento site home page:&lt;br/&gt;
All following code in admin section CMS &gt;&gt; Manage Pages &gt;&gt; home&lt;br/&gt;
You can also add the following code in General information section
&lt;pre&gt;
{{block type="catalog/product_list" category_id="3"
 template="catalog/product/list.phtml"}}
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-7551136611497085199?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/7551136611497085199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/how-to-display-products-on-your-magento.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7551136611497085199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/7551136611497085199'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2010/01/how-to-display-products-on-your-magento.html' title='How to display the products on your magento site home page'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3294142405214867532</id><published>2009-12-22T23:04:00.000-08:00</published><updated>2009-12-22T23:43:50.964-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='htaccess'/><title type='text'>htaccess tips and tricks</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Introduction to .htaccess&lt;/span&gt;
This work in constant progress is some collected wisdom, stuff I've learned on the topic of .htaccess hacking, commands I've used successfully in the past, on a variety of server setups, and in most cases still do. You may have to tweak the examples some to get the desired result, though, and a reliable test server is a powerful ally, preferably one with a very similar setup to your "live" server.
&lt;br/&gt;
&lt;span style="font-style:italic;"&gt;.htaccess files are invisible&lt;/span&gt;
&lt;br/&gt;
&lt;span style="font-weight:bold;"&gt;What are .htaccess files&lt;/span&gt;&lt;br/&gt;
Simply put, they are invisible plain text files where one can store server directives. Server directives are anything you might put in an Apache config file (httpd.conf) or even a php.ini**, but unlike those "master" directive files, these .htaccess directives apply only to the folder in which the .htaccess file resides, and all the folders inside.
&lt;br/&gt;
This ability to plant .htaccess files in any directory of our site allows us to set up a finely-grained tree of server directives, each subfolder inheriting properties from its parent, whilst at the same time adding to, or over-riding certain directives with its own .htaccess file. For instance, you could use .htacces to enable indexes all over your site, and then deny indexing in only certain subdirectories, or deny index listings site-wide, and allow indexing in certain subdirectories. One line in the .htaccess file in your root and your whole site is altered. From here on, I'll probably refer to the main .htaccess in the root of your website as "the master .htaccess file", or "main" .htaccess file.
&lt;br/&gt;
There's a small performance penalty for all this .htaccess file checking, but not noticeable, and you'll find most of the time it's just on and there's nothing you can do about it anyway, so let's make the most of it..
&lt;br/&gt;
&lt;span style="font-weight:bold;"&gt;Is .htaccess enabled?&lt;/span&gt;
&lt;br/&gt;
It's unusual, but possible that .htaccess is not enabled on your site. If you are hosting it yourself, it's easy enough to fix; open your httpd.conf in a text editor, and locate this &lt;Directory&gt; &lt;br/&gt;
 &lt;br/&gt;
&lt;span style="font-weight:bold;"&gt;What can I do with .htaccess files?&lt;/span&gt;
 &lt;br/&gt;
Almost any directive that you can put inside an httpd.conf file will also function perfectly inside an .htaccess file. Unsurprisingly, the most common use of .htaccess
&lt;br/&gt;
&lt;a href="http://www.iwebtool.com/htaccess_url_rewrite" target='_blank'&gt;.htaccess URL writing tool&lt;/a&gt;
&lt;br/&gt;
&lt;span style="font-weight:bold;"&gt;.htaccess Exapmles&lt;/span&gt;
&lt;pre&gt;
First write following code to activate the rewrite url action
Options +FollowSymLinks
RewriteEngine on
http://sitename.com/event.php?id=1 to http://sitename.com/event/1.html 
RewriteRule ^event/([0-9]+)\.html$ event.php?eventid=$1
&lt;/pre&gt;
Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
&lt;pre&gt;
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 
&lt;/pre&gt;
&lt;span style="font-weight:bold;"&gt; Error Documents&lt;/span&gt;
ErrorDocument 404 /errors/notfound.html
This would cause any error code
resulting in 404 to be forward to yoursite.com/errors/notfound.html
Likewise with:
ErrorDocument 500 /errors/internalerror.html
You can name the pages anything you want (I'd recommend something that would prevent you from forgetting what the page is being used for), and you can place the error pages anywhere you want within your site, so long as they are web-accessible (through a URL). The initial slash in the directory location represents the root directory of your site, that being where your default page for your first-level domain is located. I typically prefer to keep them in a separate directory for maintenance purposes and in order to better control spiders indexing them through a ROBOTS.TXT file, but it is entirely up to you.

If you were to use an error document handler for each of the error codes I mentioned, the htaccess file would look like the following (note each command is on its own line):

    ErrorDocument 400 /errors/badrequest.html
    ErrorDocument 401 /errors/authreqd.html
    ErrorDocument 403 /errors/forbid.html
    ErrorDocument 404 /errors/notfound.html
    ErrorDocument 500 /errors/serverr.html

You can specify a full URL rather than a virtual URL in the ErrorDocument string (http://yoursite.com/errors/notfound.html vs. /errors/notfound.html). But this is not the preferred method by the server's happiness standards.
&lt;span style="font-weight:bold;"&gt;Blocking users by IP&lt;/span&gt;
 Is there a pesky person perpetrating pain upon you? Stalking your site from the vastness of the electron void? Blockem! In your htaccess file, add the following code--changing the IPs to suit your needs--each command on one line each:

    order allow,deny
    deny from 123.45.6.7
    deny from 012.34.5.
    allow from all

You can deny access based upon IP address or an IP block. The above blocks access to the site from 123.45.6.7, and from any sub domain
under the IP block 012.34.5. (012.34.5.1, 012.34.5.2, 012.34.5.3, etc.) I have yet to find a useful application
of this, maybe if there is a site scraping your content you can block them, who knows.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3294142405214867532?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3294142405214867532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/htaccess-tips-and-tricks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3294142405214867532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3294142405214867532'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/htaccess-tips-and-tricks.html' title='htaccess tips and tricks'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-3497142491415527264</id><published>2009-12-21T03:57:00.000-08:00</published><updated>2009-12-21T04:00:15.098-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento Module Creator</title><content type='html'>This code is helpful to create a new magento extension. 
&lt;a href="http://www.magentocommerce.com/wiki/_media/modulecreator0.0.9.1.zip?id=custom_module_with_custom_database_table&amp;amp;cache=cache"&gt;Click Here to Download Magento Module Creater&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-3497142491415527264?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/3497142491415527264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/magento-module-creator.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3497142491415527264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/3497142491415527264'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/magento-module-creator.html' title='Magento Module Creator'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5811981176475031243</id><published>2009-12-21T03:52:00.000-08:00</published><updated>2009-12-21T03:56:53.696-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Php Captcha Security Image Font Based</title><content type='html'>A CAPTCHA or Captcha is a type of challenge-response test used in computing to ensure that the response is not generated by a computer. The process usually involves one computer (a server) asking a user to complete a simple test which the computer is able to generate and grade. Because other computers are unable to solve the CAPTCHA, any user entering a correct solution is presumed to be human. Thus, it is sometimes described as a reverse Turing test, because it is administered by a machine and targeted to a human, in contrast to the standard Turing test that is typically administered by a human and targeted to a machine. A common type of CAPTCHA requires that the user type letters or digits from a distorted image that appears on the screen.

&lt;pre&gt;
img src="./CaptchaSecurityImages.php?width=100&amp;height=40&amp;characters=5" 

File : CaptchaSecurityImages.php

class CaptchaSecurityImages {

 var $font = './font/monofont.ttf';

 function generateCode($characters) {
  $code = "";
  /* list all possible characters, similar looking characters and vowels have been removed */
  $possible = '23456789bcdfghjkmnpqrstvwxyz';
  $code = '';
  $i = 0;
  while ($i &lt; $characters) { 
   $code .= substr($possible, mt_rand(0, strlen($possible)-1), 1);
   $i++;
  }
  return $code;
 }

 function CaptchaSecurityImages($width='120',$height='40',$characters='6') {
  $code = $this-&gt;generateCode($characters);
  $_SESSION['security_code'] = $code;
  /* font size will be 75% of the image height */
  $font_size = $height * 0.75;
  $image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream');
  /* set the colours */
  $background_color = imagecolorallocate($image, 255, 255, 255);
  $text_color = imagecolorallocate($image, 20, 40, 100);
  $noise_color = imagecolorallocate($image, 100, 120, 180);
  /* generate random dots in background */
  for( $i=0; $i&lt;($width*$height)/3; $i++ ) {
   imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color);
  }
  /* generate random lines in background */
  for( $i=0; $i&lt;($width*$height)/150; $i++ ) {
   imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color);
  }
  /* create textbox and add text */
  $textbox = imagettfbbox($font_size, 0, $this-&gt;font, $code) or die('Error in imagettfbbox function');
  $x = ($width - $textbox[4])/2;
  $y = ($height - $textbox[5])/2;
  imagettftext($image, $font_size, 0, $x, $y, $text_color, $this-&gt;font , $code) or die('Error in imagettftext function');
  /* output captcha image to browser */
  header('Content-Type: image/jpeg');
  imagejpeg($image);
  imagedestroy($image);
 }

}

$width = isset($_GET['width']) ? $_GET['width'] : '120';
$height = isset($_GET['height']) ? $_GET['height'] : '40';
$characters = isset($_GET['characters']) &amp;&amp; $_GET['characters'] &gt; 1 ? $_GET['characters'] : '6';

$captcha = new CaptchaSecurityImages($width,$height,$characters);

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5811981176475031243?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5811981176475031243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/php-captcha-security-image-font-based.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5811981176475031243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5811981176475031243'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/php-captcha-security-image-font-based.html' title='Php Captcha Security Image Font Based'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1876933573927763346</id><published>2009-12-15T22:21:00.000-08:00</published><updated>2009-12-15T22:34:14.230-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Jscolor : Color Picker</title><content type='html'>jscolor is a &lt;strong&gt;simple &amp;amp; user-friendly color picker for your web forms&lt;/strong&gt;.
It extends all desired input fields of a smooth color selection dialog. You can &lt;em&gt;pickerize&lt;/em&gt; these inputs in two easy steps:
&lt;strong&gt;1.&lt;/strong&gt; set them to &lt;code&gt; input class="color" &lt;/code&gt;
&lt;strong&gt;2.&lt;/strong&gt; include script &lt;a href="http://jscolor.com/release/jscolor-1.3.0.zip"&gt;jscolor.js&lt;/a&gt; into your HTML page.

&lt;ul&gt;&lt;li&gt;No framework needed (jQuery, MooTools, YUI, Dojo…)&lt;/li&gt;&lt;li&gt;Quick &amp;amp; easy installation&lt;/li&gt;&lt;li&gt;No popup windows&lt;/li&gt;&lt;li&gt;Wide cross-browser compatibility&gt;&lt;/li&gt;&lt;li&gt;Customizable appearance and behavior&lt;/li&gt;&lt;/ul&gt;

&lt;a href="http://jscolor.com/release/jscolor-1.3.0.zip" target="_blank"&gt;Click here to download&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1876933573927763346?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1876933573927763346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/jscolor-color-picker.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1876933573927763346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1876933573927763346'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/jscolor-color-picker.html' title='Jscolor : Color Picker'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1036487509914172884</id><published>2009-12-15T22:15:00.000-08:00</published><updated>2009-12-15T23:36:18.125-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Magento'/><title type='text'>Magento eCommerce: How to save the product from front end</title><content type='html'>You can save the product also from front site. I worked on site in which client want to create the product (Sticker/Banner) from front side by any user. So here is code to create the product from front site:

 $product = Mage::getModel('catalog/product');



        $product-&gt;setWebsiteIds(array('1'));

        $product-&gt;setAttributeSetId(4);

        $product-&gt;setSku(time());

        $product-&gt;setType('Simple Product');

        $product-&gt;setTypeId('simple'); 

        $product-&gt;setName('ranjeet test product');

        $product-&gt;setDescription('[description]');

        $product-&gt;setShortDescription('[short_description]');

        $product-&gt;setPrice('12.00');

        $product-&gt;setWeight('11');

        $product-&gt;setStatus(1);

        $product-&gt;setTaxClassId(2);

        $product-&gt;setCategoryIds(',2');

        $product-&gt;setVisibility(4);

        $product-&gt;setCreatedAt(strtotime('now'));

        //get stock 

  $stockData = $product-&gt;getStockData();

  $stockData['qty'] = 10;

  $stockData['is_in_stock'] = 1;

  $stockData['manage_stock'] = 1;

  $stockData['use_config_manage_stock'] = 0;

  $product-&gt;setStockData($stockData);

  //save product

  $product-&gt;save(); 

  $productId = $product-&gt;getId();  

  //add to cart

  $cart = Mage::getModel('checkout/cart');

  $cart-&gt;addProductsByIDs(array($productId));

  $cart-&gt;save();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1036487509914172884?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1036487509914172884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/magento-ecommerce-how-to-save-product.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1036487509914172884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1036487509914172884'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/12/magento-ecommerce-how-to-save-product.html' title='Magento eCommerce: How to save the product from front end'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2817348399419298507</id><published>2009-11-05T02:15:00.000-08:00</published><updated>2009-12-25T20:12:18.151-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Add more inputbox, file using javascript</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Add more input boxes:&lt;/span&gt;
&lt;pre&gt;
function addPointsInput() {
var d = document.createElement("div");
var file = document.createElement("input");
file.setAttribute("type", "text");
file.setAttribute("name", "points[]");
file.setAttribute("style", "width:350px");
file.setAttribute("class", "inputPopUp");
d.appendChild(file);
document.getElementById("morePoints").appendChild(d);
}
&lt;/pre&gt;
Use addPointsInput() function on onlick.
Use id = morePoints for output

----------------------------------------------------------------------

&lt;span style="font-weight: bold;"&gt;Add more files upload:&lt;/span&gt;
&lt;pre&gt;
function addFileInput() {
 var d = document.createElement("div");
 var file = document.createElement("input");
 file.setAttribute("type", "file");
 file.setAttribute("name", "images[]");
 d.appendChild(file);
 document.getElementById("moreUploads").appendChild(d);
}
&lt;/pre&gt;
Use addFileInput() function on onlick.
Use id = moreUploads for output&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2817348399419298507?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2817348399419298507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/11/add-more-inputbox-file-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2817348399419298507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2817348399419298507'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/11/add-more-inputbox-file-using-javascript.html' title='Add more inputbox, file using javascript'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4866863537995195729</id><published>2009-10-30T04:07:00.000-07:00</published><updated>2010-01-14T03:30:53.884-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Writing a mail client that handles attachments with PHP</title><content type='html'>Now we've got a connection to the mailbox.
To retrieve some content from a mailbox we now always use the object $mbox which has many features and almost any of these are more or less documented. You can always find information about it on www.php.net search in functions for imap.
Now to an example on how to retrieve a list of all messages:
Message list

&lt;div style="border: 1px solid rgb(204, 204, 204); overflow: scroll; width: 440px; height: 500px;"&gt;
&lt;pre&gt;
   $ServerName = "{localhost/imap:143}INBOX"; // For a IMAP connection    (PORT 143)
   $ServerName = "{localhost/pop3:110}INBOX"; // For a POP3 connection    (PORT 110)   
   $UserName = "YOUR USERNAME";
   $PassWord = "YOUR PASSWORD";   
   $mbox = imap_open($ServerName, $UserName,$PassWord) or die("Could not open Mailbox - try again later!"); 
   $ServerName = "{localhost/imap:143}INBOX"; // For a IMAP connection    (PORT 143)
   //$ServerName = "{localhost/pop3:110}INBOX"; // For a POP3 connection    (PORT 110)   
   $UserName = "YOUR USERNAME";
   $PassWord = "YOUR PASSWORD";   
   $mbox = imap_open($ServerName, $UserName,$PassWord) or die("Could not open Mailbox - try again later!");   
   if ($hdr = imap_check($mbox)) {
	   echo "Num Messages " . $hdr-&gt;Nmsgs ."\n\n&lt;br&gt;&lt;br&gt;";
   	$msgCount = $hdr-&gt;Nmsgs;
   } else {
   	echo "failed";
   }
   $MN=$msgCount;
   $overview=imap_fetch_overview($mbox,"1:$MN",0);
   $size=sizeof($overview);
   
   echo "&lt;table border=\"0\" cellspacing=\"0\" width=\"582\"&gt;";
   
   for($i=$size-1;$i&gt;=0;$i--){
   	$val=$overview[$i];
		$msg=$val-&gt;msgno;
   	$from=$val-&gt;from;
  		$date=$val-&gt;date;
		$subj=$val-&gt;subject;
   	$seen=$val-&gt;seen;
   
	   $from = ereg_replace("\"","",$from);
   
	   // MAKE DANISH DATE DISPLAY
   	list($dayName,$day,$month,$year,$time) = split(" ",$date); 
		$time = substr($time,0,5);
   	$date = $day ." ". $month ." ". $year . " ". $time;
   
   	if ($bgColor == "#F0F0F0") {
   		$bgColor = "#FFFFFF";
   	} else {
			$bgColor = "#F0F0F0";
		}
   
		if (strlen($subj) &gt; 60) {
   		$subj = substr($subj,0,59) ."...";
		}
   
   	echo "&lt;tr bgcolor=\"$bgColor\"&gt;&lt;td colspan=\"2\"&gt;$from&lt;/td&gt;&lt;td colspan=\"2\"&gt;$subj&lt;/td&gt;
   		 &lt;td class=\"tblContent\" colspan=\"2\"&gt;$date&lt;/td&gt;&lt;/tr&gt;\n";
   }

	echo "&lt;/table&gt;";
   imap_close($mbox);
?&gt;

This produces a message list where you can read the subject and the date and time for arrival in you mailbox.
The main PHP function used is the imap_fetch_overview($mbox,"1:$MN",0); in this example it tells PHP to fetch message 1 to $MN ($msgCount = the last message from the connection $mbox).
For each message we retrieve in the main "for loop" some properties.
Thats made with:
$val=$overview[$i];
$msg=$val-&gt;msgno;
$from=$val-&gt;from;
$date=$val-&gt;date;
$subj=$val-&gt;subject;
$seen=$val-&gt;seen;
$msg is getting the message number that identifies a single message from the mailbox. The first one is 1
$from is getting the senders name
$date is getting the date and time of the arrival in your mailbox.
$subj is getting the subject of the message
$seen is either 0 or 1 if 1 the message body has been retrieved earlier.
Thats practically all we need to know for now to produce a list of all the messages.
The seen property is not used in my example but you could implement it easily with an if statement that writes a not seen message (with property of 0) in bold if you want an overview over new messages especially if you are connecting to a IMAP account.
Now we'll take a look on how to retrive the body of the message.
Body retrieval
To retrieve the body of a message I use a nice script posted in www.php.net I thank the author :-)
&lt;?php
   function get_mime_type(&amp;$structure) {
   $primary_mime_type = array("TEXT", "MULTIPART","MESSAGE", "APPLICATION", "AUDIO","IMAGE", "VIDEO", "OTHER");
   if($structure-&gt;subtype) {
   	return $primary_mime_type[(int) $structure-&gt;type] . '/' .$structure-&gt;subtype;
   }
   	return "TEXT/PLAIN";
   }
   function get_part($stream, $msg_number, $mime_type, $structure = false,$part_number    = false) {
   
   	if(!$structure) {
   		$structure = imap_fetchstructure($stream, $msg_number);
   	}
   	if($structure) {
   		if($mime_type == get_mime_type($structure)) {
   			if(!$part_number) {
   				$part_number = "1";
   			}
   			$text = imap_fetchbody($stream, $msg_number, $part_number);
   			if($structure-&gt;encoding == 3) {
   				return imap_base64($text);
   			} else if($structure-&gt;encoding == 4) {
   				return imap_qprint($text);
   			} else {
   			return $text;
   		}   	}   
		if($structure-&gt;type == 1) /* multipart */ {
   		while(list($index, $sub_structure) = each($structure-&gt;parts)) {
   			if($part_number) {
   				$prefix = $part_number . '.';
   			}
   			$data = get_part($stream, $msg_number, $mime_type, $sub_structure,$prefix .    ($index + 1));
   			if($data) {
   				return $data;
   			}
   		} // END OF WHILE
   		} // END OF MULTIPART
   	} // END OF STRUTURE
   	return false;
   } // END OF FUNCTION   
?&gt; 
The function get_part() needs 3 parameters.
1. Mailbox connection (e.g. $mbox from my connection example)
2. Message number to look up (e.g. $msg from my message list example)
3. A content type to check for
In my following example I'll check for the content types of TEXT/PLAIN and TEXT/HTML which are the common MIME of an email message body. However when it comes to attachments you simply don't know what MIME the attachment has. This gives us a problem we'll deal with in a very short time. - Hang on!
To get the message body we invoke the function get_part() like this:
 &lt;?php
   // GET TEXT BODY
   $dataTxt = get_part($mbox, $msgno, "TEXT/PLAIN");
   
   // GET HTML BODY
   $dataHtml = get_part($mbox, $msgno, "TEXT/HTML");
   
   if ($dataHtml != "") {
	   $msgBody = $dataHtml;
   	$mailformat = "html";
   } else {
   	$msgBody = ereg_replace("\n","&lt;br&gt;",$dataTxt);
   	$mailformat = "text";   }
	// To out put the message body to the user simply print $msgBody like this.
?&gt; 
To make the text-body more userfriendly in our browser we could make it more HTML-like if we would replace all URLs with an actual HYPERLINK on. And sometimes messages in HTML are sent with a character encoding that looks very weird because the HTML is posted raw from some email clients, we'll also change that.
To do that we use this replacement statements:
 function transformHTML($str) {
   if ((strpos($str,"&lt;HTML") &lt; 0) || (strpos($str,"&lt;html")    &lt; 0)) {
  		$makeHeader = "&lt;html&gt;&lt;head&gt;&lt;meta http-equiv=\"Content-Type\"    content=\"text/html; charset=iso-8859-1\"&gt;&lt;/head&gt;\n";
   	if ((strpos($str,"&lt;BODY") &lt; 0) || (strpos($str,"&lt;body")    &lt; 0)) {
   		$makeBody = "\n&lt;body&gt;\n";
   		$str = $makeHeader . $makeBody . $str ."\n&lt;/body&gt;&lt;/html&gt;";
   	} else {
   		$str = $makeHeader . $str ."\n&lt;/html&gt;";
   	}
   } else {
   	$str = "&lt;meta http-equiv=\"Content-Type\" content=\"text/html;    charset=iso-8859-1\"&gt;\n". $str;
   }
   	return $str;
 }
   
 if ($dataHtml != "") {
	$msgBody = transformHTML($dataHtml);
 } else {
   $msgBody = ereg_replace("\n","&lt;br&gt;",$dataTxt);
   $msgBody = preg_replace("/([^\w\/])(www\.[a-z0-9\-]+\.[a-z0-9\-]+)/i","$1http://$2",    $msgBody);
   $msgBody = preg_replace("/([\w]+:\/\/[\w-?&amp;;#~=\.\/\@]+[\w\/])/i","&lt;A    TARGET=\"_blank\" HREF=\"$1\"&gt;$1&lt;/A&gt;", $msgBody);
   $msgBody = preg_replace("/([\w-?&amp;;#~=\.\/]+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?))/i","&lt;A    HREF=\"mailto:$1\"&gt;$1&lt;/A&gt;",$msgBody);
 }

With this replacement you'll see real hyperlinks in the text-body. And now comes the fuzzy part - attachmenthandling.
Attachment handling
Attachments are parts of a messagebody if the messagebody contains 2 or more parts there should be a file attached to the message. Though Outlook 2000 and Outlook Express have support for "Stationary" - embedded HTML layout with images and so. This is really painful to make visible in the HTML body. I've not made it work YET!

First we'll make a list of the attachments from a message.
In my example it's a FORM SELECT box.

&lt;?php
   $struct = imap_fetchstructure($mbox,$msgno);
   $contentParts = count($struct-&gt;parts);
   
   if ($contentParts &gt;= 2) {
	   for ($i=2;$i&lt;=$contentParts;$i++) {
   	$att[$i-2] = imap_bodystruct($mbox,$msgno,$i);
   	}
   	for ($k=0;$k&lt;sizeof($att);$k++) {
   		if ($att[$k]-&gt;parameters[0]-&gt;value == "us-ascii" || $att[$k]-&gt;parameters[0]-&gt;value    == "US-ASCII") {
   			if ($att[$k]-&gt;parameters[1]-&gt;value != "") {
   				$selectBoxDisplay[$k] = $att[$k]-&gt;parameters[1]-&gt;value;
   			}
   		} elseif ($att[$k]-&gt;parameters[0]-&gt;value != "iso-8859-1" &amp;&amp;    $att[$k]-&gt;parameters[0]-&gt;value != "ISO-8859-1") {
   			$selectBoxDisplay[$k] = $att[$k]-&gt;parameters[0]-&gt;value;
   		}
   	}
   }
   
   if (sizeof($selectBoxDisplay) &gt; 0) {

   	echo "&lt;pre&gt;&lt;selectbox name=\"attachments\" size=\"3\" class=\"tblContent\"    onChange=\"handleFile(this.value)\" style=\"width:170;\"&gt;";
   	for ($j=0;$j&lt;sizeof($selectBoxDisplay);$j++) {
   		echo "\n&lt;option value=\"$j\"&gt;". $selectBoxDisplay[$j]    ."&lt;/option&gt;";
   	}
   	echo "&lt;/selectbox&gt;&lt;/pre&gt;";/   }
?&gt;
Now we've made a selectbox with the attached files listed.
The thing is now - well it's a beautiful list but we want to by able to download the files. To force download of HTML file instead of have it opened in the browser window we need to use a state of the art browser like Microsoft Internet Explorer 5.5 or later. This browser can make use of a Content-Disposition header which can hold an attachment so the browser will prompt with a Save file dialog box. But as I've seen on www.w3c.org this is going to be a standard. So we can only hope Netscape/Mozilla will support it soon. I don't know if Netscape 6 supports it in some way. I haven't made my example work in any other browser than MSIE 5.5 and 6. Now to the download file stuff.

The selectbox has a onChange eventhandler, if you click on a file in the selectbox the handleFile javascript function is triggered.
Here is the javascript:
&lt;pre&gt;
&lt;!-- Javascript --&gt;
   var b;
   browser = navigator.appName;
   if (browser == "Microsoft Internet Explorer") {
   	b = "ie";
   } else {
   	b = "other";
   }   
   function handleFile(nr) {
   	if (b != "ie") {
   		alert("This feature is currently only available for Microsoft Internet Explorer 5.5+ users\n\nWait for an update!");
   	} else {
   		check = confirm("Do you want to download the file ?");
   		if (check) {
   			setTimeout("this.location.reload()",8000);
   			location.href="gotodownload.php?download=1&amp;file="+ nr +"&amp;msgno=&lt;?php= $msgno ?&gt;";
   		} else {
   			location.reload();
   		}   	}   }
&lt;!-- Javascript --&gt;
&lt;/pre&gt;
The script asks you whether you want to download the file. If you click the OK button you'll be redirected to the file gotodownload.php. The redirect has 3 parameters in the querystring: download=1 to force a download, file="+ nr the attached file you clicked (selected) in the selectbox and finally the message number that identifies the message that holds the attached file.
The file gotodownload.php looks like this.
&lt;?php
   if ($download == "1") {
   	$strFileName = $att[$file]-&gt;parameters[0]-&gt;value;
   	$strFileType = strrev(substr(strrev($strFileName),0,4));
   	$fileContent = imap_fetchbody($mbox,$msgno,$file+2);
   	downloadFile($strFileType,$strFileName,$fileContent);
   }   
   function downloadFile($strFileType,$strFileName,$fileContent) {
   	$ContentType = "application/octet-stream";
   
   	if ($strFileType == ".asf") 
   		$ContentType = "video/x-ms-asf";
   	if ($strFileType == ".avi")
   		$ContentType = "video/avi";
   	if ($strFileType == ".doc")
   		$ContentType = "application/msword";
   	if ($strFileType == ".zip")
   		$ContentType = "application/zip";
   	if ($strFileType == ".xls")
   		$ContentType = "application/vnd.ms-excel";
   	if ($strFileType == ".gif")
   		$ContentType = "image/gif";
   	if ($strFileType == ".jpg" || $strFileType == "jpeg")
   		$ContentType = "image/jpeg";
   	if ($strFileType == ".wav")
   		$ContentType = "audio/wav";
   	if ($strFileType == ".mp3")
   		$ContentType = "audio/mpeg3";
   	if ($strFileType == ".mpg" || $strFileType == "mpeg")
   		$ContentType = "video/mpeg";
   	if ($strFileType == ".rtf")
   		$ContentType = "application/rtf";
   	if ($strFileType == ".htm" || $strFileType == "html")
   		$ContentType = "text/html";
   	if ($strFileType == ".xml") 
   		$ContentType = "text/xml";
   	if ($strFileType == ".xsl") 
   		$ContentType = "text/xsl";
   	if ($strFileType == ".css") 
   		$ContentType = "text/css";
   	if ($strFileType == ".php") 
   		$ContentType = "text/php";
   	if ($strFileType == ".asp") 
   		$ContentType = "text/asp";
   	if ($strFileType == ".pdf")
   		$ContentType = "application/pdf";
   
	header ("Content-Type: $ContentType"); 
	header ("Content-Disposition: attachment; filename=$strFileName; size=$fileSize;"); 
	
	// Updated oktober 29. 2005
	if (substr($ContentType,0,4) == "text") {
	echo imap_qprint($fileContent);
	} else {
	echo imap_base64($fileContent);
	}
    }
?&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4866863537995195729?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4866863537995195729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/writing-mail-client-that-handles.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4866863537995195729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4866863537995195729'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/writing-mail-client-that-handles.html' title='Writing a mail client that handles attachments with PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-394879774459606531</id><published>2009-10-30T03:59:00.000-07:00</published><updated>2009-10-30T04:06:08.992-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Php download files from browser without url address</title><content type='html'>&lt;pre&gt;

Use "Content-Type" for diffrent types of files: 

MP3   : audio/x-mp3
Video : video/mpeg
Text  : text/html
PDF   : application/pdf
Jpg   : image/jpeg
Gif   : image/gif

$file = '/path/folder/filename.mp3';

if (file_exists($file)) {
  header("Pragma: public");
  header("Expires: 0");
  header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  header("Cache-Control: private", false);
  header("Content-Type: audio/x-mp3");
  header("Content-Disposition: attachment; filename=" . basename($file));
  header("Content-Transfer-Encoding: binary");
  header("Content-Length: " . filesize($file));
  header("Content-Description: File Transfer");

  readfile($file);

  exit;
}

&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-394879774459606531?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/394879774459606531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/php-download-files-from-browser-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/394879774459606531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/394879774459606531'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/php-download-files-from-browser-without.html' title='Php download files from browser without url address'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5532790878761099394</id><published>2009-10-30T03:56:00.000-07:00</published><updated>2010-01-14T03:33:14.518-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Php script to save email attachments to server on system</title><content type='html'>&lt;div style="border: 1px solid rgb(204, 204, 204); overflow: scroll; width: 440px; height: 500px;"&gt;
&lt;pre&gt;

require_once("attachmentread.class.php");
$host="{my.mailserver.net:110/pop3}"; // pop3host
$login="user1"; //pop3 login
$password="passwd1"; //pop3 password
$savedirpath="" ; // attachement will save in same directory where scripts run othrwise give abs path
$jk=new readattachment(); // Creating instance of class####
$jk-&gt;getdata($host,$login,$password,$savedirpath); // calling member function



-- attachmentread.class.php --



            ######################################
           
            #Coded By Jijo Last Update Date[Jan/19/06]
           
            #####################################

   

           
            ##########################################################            


            ###################### Class readattachment ###############
class readattachment
{
   
        function getdecodevalue($message,$coding)
        {
        if ($coding == 0)
        {
           $message = imap_8bit($message);
        }
        elseif ($coding == 1)
        {
          $message = imap_8bit($message);
        }
        elseif ($coding == 2)
        {
           $message = imap_binary($message);
        }
        elseif ($coding == 3)
        {
       $message=imap_base64($message);
       }
        elseif ($coding == 4)
        {
           $message = imap_qprint($message);
        }
        elseif ($coding == 5)
        {
         $message = imap_base64($message);
        }
        return $message;
        }

            function getdata($host,$login,$password,$savedirpath)
            {
            $mbox = imap_open ($host,  $login, $password) or die("can't connect: " . imap_last_error());
            $message = array();
            $message["attachment"]["type"][0] = "text";
            $message["attachment"]["type"][1] = "multipart";
            $message["attachment"]["type"][2] = "message";
            $message["attachment"]["type"][3] = "application";
            $message["attachment"]["type"][4] = "audio";
            $message["attachment"]["type"][5] = "image";
            $message["attachment"]["type"][6] = "video";
            $message["attachment"]["type"][7] = "other";
           
            for ($jk = 1; $jk &lt;= imap_num_msg($mbox); $jk++)
            {
            $structure = imap_fetchstructure($mbox, $jk , FT_UID);    
            $parts = $structure-&gt;parts;
            $fpos=2;
                    for($i = 1; $i &lt; count($parts); $i++)
                       {
                        $message["pid"][$i] = ($i);
                        $part = $parts[$i];

                        if($part-&gt;disposition == "ATTACHMENT")
                            {
                           
                            $message["type"][$i] = $message["attachment"]["type"][$part-&gt;type] . "/" . strtolower($part-&gt;subtype);
                            $message["subtype"][$i] = strtolower($part-&gt;subtype);
                            $ext=$part-&gt;subtype;
                            $params = $part-&gt;dparameters;
                            $filename=$part-&gt;dparameters[0]-&gt;value;
                                                       
                                    $mege="";
                                    $data="";
                                      $mege = imap_fetchbody($mbox,$jk,$fpos);  
                                    $filename="$filename";
                                    $fp=fopen($filename,w);
                                    $data=$this-&gt;getdecodevalue($mege,$part-&gt;type);    
                                    fputs($fp,$data);
                                    fclose($fp);
                                    $fpos+=1;
                       
                               
               
                            }
           
                    }
//imap_delete tags a message for deletion
            //imap_delete($mbox,$jk);
       
            }
// imap_expunge deletes all tagged messages
            //imap_expunge($mbox);
            imap_close($mbox);
            }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5532790878761099394?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5532790878761099394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/php-script-to-save-email-attachments-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5532790878761099394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5532790878761099394'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/php-script-to-save-email-attachments-to.html' title='Php script to save email attachments to server on system'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-2334765645591703310</id><published>2009-10-27T04:25:00.000-07:00</published><updated>2010-02-18T20:59:42.845-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP: Diffrence Between two Dates in PHP</title><content type='html'>&lt;pre&gt;
function dateDiffrence($date1)
{//current date.
$date2 = date("Y-m-d", time());
//calculate the difference in seconds.
$difference = abs(strtotime($date2) - strtotime($date1));
//calculate the number of days
return $days = round(((($difference/60)/60)/24)/365, 0);
}
echo dateDiffrence('1980-01-01');
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-2334765645591703310?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/2334765645591703310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/php-diffrence-between-two-dates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2334765645591703310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/2334765645591703310'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/php-diffrence-between-two-dates.html' title='PHP: Diffrence Between two Dates in PHP'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-1378030079085802511</id><published>2009-10-21T03:00:00.000-07:00</published><updated>2009-10-21T03:13:24.290-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Mootool Animation Menu</title><content type='html'>Animation effect like flash file. I had used this menu for joomla side menu.
&lt;br/&gt;
&lt;b&gt;Menu Html&lt;/b&gt;
 &lt;pre&gt;
&amp;lt;ul id="menu"&amp;gt;
&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Opcja 1&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Opcja 2&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;

&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Opcja 3&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Opcja 4&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
&amp;lt;li&amp;gt;&amp;lt;a href="#"&amp;gt;Opcja 5&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;

&amp;lt;/ul&amp;gt;
 &lt;/pre&gt;
&lt;b&gt;Javascript&lt;/b&gt;
 &lt;pre&gt;
window.addEvent("domready",function(){
$$("#menu li").each(function(element){
var efekt1=new Fx.Style(element,'background-color',
{duration:600, wait:false});
var efekt2=new Fx.Style($E('a',element),'color',
{duration:600, wait:false});

 element.addEvent('mouseenter', function(){
  efekt1.start('#FFF','#000');
  efekt2.start('#000','#FFF');
 });

 element.addEvent('mouseleave', function(){
  efekt1.start('#000','#FFF');
  efekt2.start('#FFF','#000');
 });
});
});
 &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-1378030079085802511?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/1378030079085802511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/mootool-animation-menu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1378030079085802511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/1378030079085802511'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/mootool-animation-menu.html' title='Mootool Animation Menu'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4457164716608157461</id><published>2009-10-05T22:33:00.000-07:00</published><updated>2009-10-05T23:18:45.518-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Problem with Javascript drop down menu and Flash Movie</title><content type='html'>&lt;span style="font-weight: bold;"&gt;In this problem the menu is hidden by the flash movie&lt;/span&gt;

&lt;h3 xmlns="" id="Issue"&gt;Issue&lt;/h3&gt;&lt;hr xmlns=""&gt;          &lt;p xmlns=""&gt; A Flash movie in a layer on a DHTML page containing several layers may display above all the layers, regardless of the stacking order ("z-index") of those layers. &lt;/p&gt;             &lt;h3 xmlns="" id="Reason"&gt;Reason&lt;/h3&gt;&lt;hr xmlns=""&gt;          &lt;p xmlns=""&gt; By default, browsers place embedded plug-in content, such as a Flash movie or Java applet, on the topmost layer. In older browsers, attempts to place a DHTML layer on top of a Flash layer would fail. Newer browsers add the ability to layer Flash content with DHTML content and in some cases the ability to use transparent backgrounds in the Flash content (see below). &lt;/p&gt;             &lt;h3 xmlns="" id="Solution"&gt;Solution&lt;/h3&gt;&lt;hr xmlns=""&gt;          &lt;p xmlns=""&gt; Use the WMODE parameter to allow layering of Flash content with DHTML layers. The WMODE parameter can be 'window' (default), 'opaque', or 'transparent'. Using a WMODE value of 'opaque' or 'transparent' will prevent a Flash movie from playing in the topmost layer and allow you to adjust the layering of the movie within other layers of the HTML document. &lt;/p&gt;    &lt;p xmlns=""&gt; &lt;strong&gt;Note:&lt;/strong&gt; The WMODE parameter is supported only on some browser/Flash Player version combinations. If the WMODE parameter is not supported, the Flash movie will always display on top. Refer to TechNote 14201 for details. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4457164716608157461?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4457164716608157461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/problem-with-javascript-drop-down-menu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4457164716608157461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4457164716608157461'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/problem-with-javascript-drop-down-menu.html' title='Problem with Javascript drop down menu and Flash Movie'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-239210877296538093</id><published>2009-10-02T01:43:00.000-07:00</published><updated>2010-01-18T05:30:37.440-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Ajax</title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;AJAX &lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;(shorthand for asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side to create interactive web applications or rich Internet applications. With AJAX, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. The use of AJAX techniques has led to an increase in interactive or dynamic interfaces on web pages and better quality of Web services due to the asynchronous mode. Data is usually retrieved using the XMLHttpRequest object. Despite the name, the use of JavaScript and XML is not actually required, nor do the requests need to be asynchronous.&lt;/span&gt;

Simple AJAX JavaScript function. That is the function which is called just like any other JavaScript function, passing in those two required parameters. The only other requirement is to make sure you have a div,span with the ID you are passing in the function call.
&lt;pre&gt;
// JavaScript Document
function ajaxFunction(url,element){
  
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    xmlHttp.onreadystatechange=function()
      {
      if(xmlHttp.readyState==4)
        {
   if (xmlHttp.status == 200) {
    if(element != "")
    { //alert(xmlHttp.responseText);
     //alert(element) 
     if(document.getElementById(element))
     {
      document.getElementById(element).value = "";
     }

     document.getElementById(element).innerHTML=xmlHttp.responseText;
    }

         }
  }
  else
  {
   document.getElementById(element).innerHTML="&lt;b&gt;Loading ....&lt;/b&gt;";
  }
      }
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);
  }
 
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-239210877296538093?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/239210877296538093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/ajax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/239210877296538093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/239210877296538093'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/ajax.html' title='Ajax'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-4696562791955223265</id><published>2009-10-02T01:37:00.000-07:00</published><updated>2009-10-02T01:42:58.585-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>jQuery is a new kind of JavaScript Library.</title><content type='html'>jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.

jQuery is free, open source software Dual-licensed under the MIT License and the GNU General Public License.

Microsoft and Nokia have announced plans to bundle jQuery on their platforms,[1] Microsoft adopting it initially within Visual Studio[2] for use within Microsoft's ASP.NET AJAX framework and ASP.NET MVC Framework whilst Nokia will integrate it into their Web Run-Time platform.

Features

jQuery contains the following features:

  * DOM element selections using the cross-browser open source selector engine Sizzle, a spin-off out of jQuery project[3]
  * DOM traversal and modification (including support for CSS 1-3 and basic XPath)
  * Events
  * CSS manipulation
  * Effects and animations
  * Ajax
  * Extensibility
  * Utilities - such as browser version and the each function.



Download &lt;a href="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" target="_blank"&gt;JQuery&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-4696562791955223265?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/4696562791955223265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/jquery-is-new-kind-of-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4696562791955223265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/4696562791955223265'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/jquery-is-new-kind-of-javascript.html' title='jQuery is a new kind of JavaScript Library.'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-5906184043372792725</id><published>2009-10-01T02:01:00.000-07:00</published><updated>2009-10-01T02:35:12.996-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Javascript Mootool</title><content type='html'>&lt;strong&gt;Javascript Mootool&lt;/strong&gt;
&lt;hr /&gt;MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.

Open Source License

MooTools is released under the Open Source MIT license, which gives you the possibility to use it and modify it in every circumstance.
Browser Compatibility

MooTools is compatible and fully tested with Safari 2+, Internet Explorer 6+, Firefox 2+ (and browsers based on gecko), Opera 9+.
&lt;p&gt;
&lt;a href="http://mootools.net/download" target="_blank"&gt;Download MooTools 1.2.3&lt;/a&gt;

Mootool animation menu Example: &lt;a href="http://dziudek.ovh.org/mootools/fx_style_js/index-5.html" target="_blank"&gt;Click Here&lt;/a&gt;&lt;p&gt;Some Usefull mootool scripts: &lt;a href="http://www.8bitmagazine.com/40-awesome-mootools-sripts/" target="_blank"&gt;Click Here&lt;/a&gt;&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-5906184043372792725?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/5906184043372792725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/javascript-mootool-animation-menu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5906184043372792725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/5906184043372792725'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/10/javascript-mootool-animation-menu.html' title='Javascript Mootool'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-9130730967911692891</id><published>2009-09-21T04:19:00.000-07:00</published><updated>2009-09-21T04:26:20.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP AJAX File Uploader, The AJAX Progress Bar using CGI pearl</title><content type='html'>&lt;a href="http://encodable.com/tech/ajaxupload/"&gt;PHP AJAX File Uploader&lt;/a&gt;, is a script written in CGI perl which aims to simply upload files to server and show a real time progress bar using &lt;acronym title="Asynchronous Javascript And XML"&gt;AJAX&lt;/acronym&gt;.
&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_ZFfm-xNVy1g/SrdhnVBL_RI/AAAAAAAAAAM/ymuxWzCIfNo/s1600-h/ss-v2-step2-03.png"&gt;&lt;img style="cursor: pointer; width: 320px; height: 129px;" src="http://2.bp.blogspot.com/_ZFfm-xNVy1g/SrdhnVBL_RI/AAAAAAAAAAM/ymuxWzCIfNo/s320/ss-v2-step2-03.png" alt="" id="BLOGGER_PHOTO_ID_5383879207829634322" border="0" /&gt;&lt;/a&gt;
The script is very useful to use, could be used to upload resources and inform about the progress specially if its uploading large files. Usually uploading large files like video, large size images take time and you don't have any information if the upload process is still working or stopped. With the help of this uploader bar you can watch the processing&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-9130730967911692891?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/9130730967911692891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/09/php-ajax-file-uploader-ajax-progress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/9130730967911692891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/9130730967911692891'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/09/php-ajax-file-uploader-ajax-progress.html' title='PHP AJAX File Uploader, The AJAX Progress Bar using CGI pearl'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_ZFfm-xNVy1g/SrdhnVBL_RI/AAAAAAAAAAM/ymuxWzCIfNo/s72-c/ss-v2-step2-03.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-6141267437669969522</id><published>2009-09-18T23:48:00.000-07:00</published><updated>2009-10-02T01:57:59.179-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>Some help sites for PHP, Javscript, Ajax</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;PHP&lt;/span&gt;
1. &lt;a href="http://www.php.net/" target="_blank"&gt;www.php.net&lt;/a&gt;
2. &lt;a href="http://www.w3schools.com/PHP" target="_blank"&gt;www.w3schools.com/PHP&lt;/a&gt;
3. &lt;a href="http://www.zend.com/" target="_blank"&gt;www.zend.com&lt;/a&gt;
4. &lt;a href="http://www.wampserver.com/" target="_blank"&gt;www.wampserver.com&lt;/a&gt;
5. &lt;a href="http://www.phpclasses.org/" target="_blank"&gt;www.phpclasses.org&lt;/a&gt;

&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;Javscript&lt;/span&gt;
1. &lt;a href="http://www.dynamicdrive.com/" target="_blank"&gt;Dynamic drive&lt;/a&gt;
2. &lt;a href="http://javascript.internet.com/navigation/" target="_blank"&gt;http://javascript.internet.com/navigation/&lt;/a&gt;
3. &lt;a href="http://www.javascriptfreecode.com/" target="_blank"&gt;http://www.javascriptfreecode.com/&lt;/a&gt;
4. &lt;a href="http://www.javascriptbank.com/" target="_blank"&gt;http://www.javascriptbank.com/&lt;/a&gt;
5. &lt;a href="http://www.javascriptkit.com/" target="_blank"&gt;http://www.javascriptkit.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-6141267437669969522?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/6141267437669969522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/09/php-help-sites.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6141267437669969522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6141267437669969522'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/09/php-help-sites.html' title='Some help sites for PHP, Javscript, Ajax'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7095256286886545300.post-6660883819792433747</id><published>2009-09-18T23:21:00.000-07:00</published><updated>2009-09-18T23:45:33.634-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP Introduction</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(0, 102, 0);"&gt;PHP:  Hypertext Preprocessor&lt;/span&gt;

Server-side HTML embedded scripting language. It provides web developers with a full suite of tools for building dynamic websites. Its originally designed for web development. It can be embedded into HTMLand generally runs on a web server which needs to be configured to process PHP code and create we page content from it. It can be deployed on most web servers and on almost every operating system and  platform free of charge.

&lt;span style="font-weight: bold; font-style: italic;"&gt;PHP Softwares:&lt;/span&gt;
1. &lt;a href="http://www.php.net/downloads.php" target="_blank" title="PHP Source Code"&gt;PHP source code&lt;/a&gt;
2. &lt;a href="http://www.apachefriends.org/en/xampp.html" title="XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start."&gt;XAMPP&lt;/a&gt;
3. &lt;a href="http://www.wampserver.com/" title="Apache Server,MySQL, PHP and Perl."&gt;Wamp Server&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7095256286886545300-6660883819792433747?l=developers-exchange.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://developers-exchange.blogspot.com/feeds/6660883819792433747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://developers-exchange.blogspot.com/2009/09/php-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6660883819792433747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7095256286886545300/posts/default/6660883819792433747'/><link rel='alternate' type='text/html' href='http://developers-exchange.blogspot.com/2009/09/php-introduction.html' title='PHP Introduction'/><author><name>Ranjeet</name><uri>http://www.blogger.com/profile/12355608241557750329</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
