Thursday, 18 April 2013

Imp Link for Magento & Zend


http://www.lotusseedsdesign.com/blog/magento-static-callout-block

http://hkpatel201.blogspot.in/2013/02/simple-image-slider-magento.html

http://www.stoimen.com/blog/2009/06/19/zend-framework-quick-tutorial-part-3-front-controller-plugins/

http://www.blog.magepsycho.com/category/magento/

http://samsonasik.wordpress.com/2012/09/27/zend-framework-2-using-zendcache-and-hydratingresultset-to-save-database-resultset/

http://www.tutorial-portal.com/tutorial/48/set-default-controller-action-and-module

http://www.pierrefay.com/magento-developper-guide-howto-tutorial-5

http://codeutopia.net/blog/articles/

http://www.amazium.com/blog/content-driven-access-control-with-zend-acl

http://blog.ricky-stevens.com/zend-framework-doctrine-apc/

Monday, 15 April 2013

Html Entities and Html special chars

You want to convert the HTML character into their corresponding HTML entities.
FOr that you can Use Functions 
  1. htmlentities ()
  2. htmlspecialchars()
For example ===
Form Having Text area
<form action="" method="POST">
<textarea name="address"></textarea>
<input type="submit" >


PHP part

<?php
$a htmlentities($_POST['address']);
echo $a;

//or 
$b = htmlspecialchars($_POST['address']);
echo $b;

//If you want to convert those entities back into HTML character

echo html_entity_decode($a);

echo "</br>";

echo html_entity_decode($b);


Now if you ask which one will be best then ..

htmlentities() can translate anything as listed in Manual

while htmlspecialchars() translate only specialcharacter

For DEtails Refer These Links

Sunday, 14 April 2013

How to install zend framework - 2

Follow the instructions of below given link

http://samminds.com/2012/07/zend-framework-2-installation-on-xampp-for-windows/

Saturday, 6 April 2013

best zend reference link

http://files.zend.com/help/Zend-Framework/index.html

http://perevodik.net/en/posts/10/

http://zendcoding.com/

http://forums.eukhost.com/f15/install-zend-framework-under-linux-cpanel-shared-account-10753/#.UWzeWEpj8Tg

Thursday, 4 April 2013

how to generate random number between given two number

$max = 1.0;
    $min = 0.0;
    for($i=0;$i<100;$i++)
    {
        print ("<br>");
        $range = $max-$min;
        $num = $min + $range * mt_rand(0, 32767)/32767;    
        $num = round($num, 2);    
        print ((float) $num);
    }

Wednesday, 3 April 2013

Link of PHP Help

http://www.plus2net.com/

http://www.phpeasystep.com/index.php