<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>DEVELOPER</title><description></description><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><pubDate>Sun, 6 Oct 2024 22:34:23 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">10</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://krisnamohan.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle/><itunes:category text="TV &amp; Film"/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>PHP Interview Questions</title><link>http://krisnamohan.blogspot.com/2014/03/php-interview-questions.html</link><category>Interview Questions</category><category>top php Interview Questions</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 27 Mar 2014 03:05:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-6201200975062303631</guid><description>&lt;h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-weight: normal; margin: 0px; position: relative;"&gt;
Interview Questions&lt;/h3&gt;
&lt;div class="post-header" style="background-color: white; color: #999999; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; line-height: 1.6; margin: 0px 0px 1.5em;"&gt;
&lt;div class="post-header-line-1"&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="post-body entry-content" id="post-body-3109562233832138591" itemprop="description articleBody" style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 15px; line-height: 1.4; position: relative; width: 718px;"&gt;
&lt;div dir="ltr" trbidi="on"&gt;
&lt;h3 class="romcolor" style="margin: 0px; position: relative;"&gt;
Top 200 PHP interview questions and answers are below&lt;/h3&gt;
&lt;table border="0" cellpadding="3" cellspacing="0" style="font-family: Verdana; font-size: 8pt; width: 525px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;b&gt;Questions : 1&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;Who is the father of PHP ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;&lt;span style="font-size: xx-small;"&gt;Answers : 1&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Rasmus Lerdorf is known as the father of PHP.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 2&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between $name and $$name?&amp;nbsp;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 2&lt;/b&gt;&lt;/td&gt;&lt;td&gt;$name is variable where as $$name is reference variable&lt;br /&gt;like $name=sonia and $$name=singh so $sonia value is singh.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 3&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we submit a form without a submit button?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 3&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Java script submit() function is used for submit form without submit button&lt;br /&gt;on click call document.formname.submit()&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 4&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;In how many ways we can retrieve the data in the result set of&lt;br /&gt;MySQL using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 4&lt;/b&gt;&lt;/td&gt;&lt;td&gt;We can do it by 4 Ways&lt;br /&gt;1. mysql_fetch_row. , 2. mysql_fetch_array , 3. mysql_fetch_object&lt;br /&gt;4. mysql_fetch_assoc&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 5&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between mysql_fetch_object and&lt;br /&gt;mysql_fetch_array?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 5&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;mysql_fetch_object()&lt;/b&gt;&amp;nbsp;is similar to&lt;b&gt;mysql_fetch_array()&lt;/b&gt;, with one difference -&lt;br /&gt;an object is returned, instead of an array. Indirectly, that means that&lt;br /&gt;you can only access the data by the field names, and not by their&lt;br /&gt;offsets (numbers are illegal property names).&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 6&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the differences between Get and post methods.&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 6&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;div align="justify"&gt;
There are some defference between GET and POST method&lt;br /&gt;1. GET Method have some limit like only 2Kb data able to send for request&lt;br /&gt;But in POST method unlimited data can we send&lt;br /&gt;2. when we use GET method requested data show in url but&lt;br /&gt;Not in POST method so POST method is good for send sensetive request&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 7&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we extract string "pcds.co.in " from a string "http://info@pcds.co.in&lt;br /&gt;using regular expression of PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 7&lt;/b&gt;&lt;/td&gt;&lt;td&gt;preg_match("/^http:\/\/.+@(.+)$/","http://info@pcds.co.in",$matches);&lt;br /&gt;echo $matches[1];&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 8&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we create a database using PHP and MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 8&lt;/b&gt;&lt;/td&gt;&lt;td&gt;We can create MySQL database with the use of&lt;br /&gt;mysql_create_db("Database Name")&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 9&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the differences between require and include?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 9&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Both include and require used to include a file but when included file not found&lt;br /&gt;Include send Warning where as Require send Fatal Error .&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 10&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;&amp;nbsp;Can we use include ("xyz.PHP") two times in a PHP page "index.PHP"?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 10&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp; Yes we can use include("xyz.php") more than one time in any page. but it create a prob when xyz.php file contain some funtions declaration then error will come for already declared function in this file else not a prob like if you want to show same content two time in page then must incude it two time not a prob&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 11&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;&amp;nbsp; What are the different tables(Engine) present in MySQL, which one is default?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 11&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;Following tables (Storage Engine) we can create&lt;br /&gt;1.&amp;nbsp;&lt;b&gt;MyISAM&lt;/b&gt;(The default storage engine IN MYSQL Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type. An .frm file stores the table format. The data file has an .MYD (MYData) extension. The index file has an .MYI (MYIndex) extension. )&lt;br /&gt;2.&amp;nbsp;&lt;b&gt;InnoDB&lt;/b&gt;(InnoDB is a transaction-safe (ACID compliant) storage engine for MySQL that has commit, rollback, and crash-recovery capabilities to protect user data.)&lt;br /&gt;3.&amp;nbsp;&lt;b&gt;Merge&lt;/b&gt;&lt;br /&gt;4.&amp;nbsp;&lt;b&gt;Heap (MEMORY)&lt;/b&gt;(The MEMORY storage engine creates tables with contents that are stored in memory. Formerly, these were known as HEAP tables. MEMORY is the preferred term, although HEAP remains supported for backward compatibility. )&lt;br /&gt;5.&amp;nbsp;&lt;b&gt;BDB (BerkeleyDB)&lt;/b&gt;(Sleepycat Software has provided MySQL with the Berkeley DB transactional storage engine. This storage engine typically is called BDB for short. BDB tables may have a greater chance of surviving crashes and are also capable of COMMIT and ROLLBACK operations on transactions)&lt;br /&gt;6.&amp;nbsp;&lt;b&gt;EXAMPLE&amp;nbsp;&lt;/b&gt;&lt;br /&gt;7.&amp;nbsp;&lt;b&gt;FEDERATED&amp;nbsp;&lt;/b&gt;(It is a storage engine that accesses data in tables of remote databases rather than in local tables. )&lt;br /&gt;8.&amp;nbsp;&lt;b&gt;ARCHIVE&amp;nbsp;&lt;/b&gt;(The ARCHIVE storage engine is used for storing large amounts of data without indexes in a very small footprint. )&lt;br /&gt;9.&amp;nbsp;&lt;b&gt;CSV&amp;nbsp;&lt;/b&gt;(The CSV storage engine stores data in text files using comma-separated values format.)&lt;br /&gt;10.&lt;b&gt;&amp;nbsp;BLACKHOLE&lt;/b&gt;&amp;nbsp;(The BLACKHOLE storage engine acts as a "black hole" that accepts data but throws it away and does not store it. Retrievals always return an empty result)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 12&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;&amp;nbsp;What is use of header() function in php ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 12&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The header() function sends a raw HTTP header to a client.We can use herder()&lt;br /&gt;function for redirection of pages. It is important to notice that header() must&lt;br /&gt;be called before any actual output is seen..&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 13&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can I execute a PHP script using command line?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 13&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Just run the PHP CLI (Command Line Interface) program and&lt;br /&gt;provide the PHP script file name as the command line argument.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 14&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;Suppose your Zend engine supports the mode  Then how can u&lt;br /&gt;configure your PHP Zend engine to support  mode ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 14&lt;/b&gt;&lt;/td&gt;&lt;td&gt;In php.ini file:&lt;br /&gt;set&lt;br /&gt;&lt;b&gt;short_open_tag=on&lt;/b&gt;&lt;br /&gt;to make PHP support&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 15&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;Shopping cart online validation i.e. how can we configure Paypal,&lt;br /&gt;etc.?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 15&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Nothing more we have to do only redirect to the payPal url after&lt;br /&gt;submit all information needed by paypal like amount,adresss etc.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 16&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is meant by nl2br()?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 16&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Inserts HTML line breaks (&lt;br /&gt;) before all newlines in a string.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 17&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is htaccess? Why do we use this and Where?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 17&lt;/b&gt;&lt;/td&gt;&lt;td&gt;.htaccess files are configuration files of Apache Server which provide&lt;br /&gt;a way to make configuration changes on a per-directory basis. A file,&lt;br /&gt;containing one or more configuration directives, is placed in a particular&lt;br /&gt;document directory, and the directives apply to that directory, and all&lt;br /&gt;subdirectories thereof.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 18&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How we get IP address of client, previous reference page etc ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 18&lt;/b&gt;&lt;/td&gt;&lt;td&gt;By using $_SERVER['REMOTE_ADDR'],$_SERVER['HTTP_REFERER'] etc.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 19&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the reasons for selecting lamp (Linux, apache, MySQL,&lt;br /&gt;PHP) instead of combination of other software programs, servers and&lt;br /&gt;operating systems?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 19&lt;/b&gt;&lt;/td&gt;&lt;td&gt;All of those are open source resource. Security of Linux is very&lt;br /&gt;very more than windows. Apache is a better server that IIS both in&lt;br /&gt;functionality and security. MySQL is world most popular open source&lt;br /&gt;database. PHP is more faster that asp or any other scripting language.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 20&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we encrypt and decrypt a data present in a MySQL table&lt;br /&gt;using MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 20&lt;/b&gt;&lt;/td&gt;&lt;td&gt;AES_ENCRYPT () and AES_DECRYPT ()&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 21&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we encrypt the username and password using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 21&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The functions in this section perform encryption and decryption, and&lt;br /&gt;compression and uncompression:&lt;br /&gt;&lt;div class="informaltable"&gt;
&lt;/div&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span class="bold"&gt;&lt;b&gt;&lt;span style="font-size: xx-small;"&gt;encryption&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="bold"&gt;&lt;b&gt;&lt;span style="font-size: xx-small;"&gt;decryption&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;AES_ENCRYT()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;AES_DECRYPT()&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;ENCODE()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;DECODE()&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;DES_ENCRYPT()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;DES_DECRYPT()&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;ENCRYPT()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Not available&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;MD5()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Not available&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;OLD_PASSWORD()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Not available&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;PASSWORD()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Not available&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;SHA() or SHA1()&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Not available&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Not available&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;UNCOMPRESSED_LENGTH()&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 22&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the features and advantages of object-oriented&lt;br /&gt;programming?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 22&lt;/b&gt;&lt;/td&gt;&lt;td&gt;One of the main advantages of OO programming is its ease of&lt;br /&gt;modification; objects can easily be modified and added to a system there&lt;br /&gt;by reducing maintenance costs. OO programming is also considered to be&lt;br /&gt;better at modeling the real world than is procedural programming. It&lt;br /&gt;allows for more complicated and flexible interactions. OO systems are&lt;br /&gt;also easier for non-technical personnel to understand and easier for&lt;br /&gt;them to participate in the maintenance and enhancement of a system&lt;br /&gt;because it appeals to natural human cognition patterns.&lt;br /&gt;For some systems, an OO approach can speed development time since many&lt;br /&gt;objects are standard across systems and can be reused. Components that&lt;br /&gt;manage dates, shipping, shopping carts, etc. can be purchased and easily&lt;br /&gt;modified for a specific system&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 23&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the differences between procedure-oriented languages and&lt;br /&gt;object-oriented languages?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 23&lt;/b&gt;&lt;/td&gt;&lt;td&gt;There are lot of difference between procedure language and object oriented like below&lt;br /&gt;1&amp;gt;Procedure language easy for new developer but complex to understand whole software as compare to object oriented model&lt;br /&gt;2&amp;gt;In Procedure language it is difficult to use design pattern mvc , Singleton pattern etc but in OOP you we able to develop design pattern&lt;br /&gt;3&amp;gt;IN OOP language we able to ree use code like Inheritance ,polymorphism etc but this type of thing not available in procedure language on that our Fonda use COPY and PASTE .&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 24&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the use of friend function?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 24&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Sometimes a function is best shared among a number of different&lt;br /&gt;classes. Such functions can be declared either as member functions of&lt;br /&gt;one class or as global functions. In either case they can be set to be&lt;br /&gt;friends of other classes, by using a friend specifier in the class that&lt;br /&gt;is admitting them. Such functions can use all attributes of the class&lt;br /&gt;which names them as a friend, as if they were themselves members of that&lt;br /&gt;class.&lt;br /&gt;A friend declaration is essentially a prototype for a member function,&lt;br /&gt;but instead of requiring an implementation with the name of that class&lt;br /&gt;attached by the double colon syntax, a global function or member&lt;br /&gt;function of another class provides the match.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 25&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the differences between public, private, protected,&lt;br /&gt;static, transient, final and volatile?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 25&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Public:&lt;/b&gt;&amp;nbsp;Public declared items can be accessed everywhere.&lt;br /&gt;&lt;b&gt;Protected:&lt;/b&gt;&amp;nbsp;Protected limits access to inherited and parent&lt;br /&gt;classes (and to the class that defines the item).&lt;br /&gt;&lt;b&gt;Private:&lt;/b&gt;&amp;nbsp;Private limits visibility only to the class that defines&lt;br /&gt;the item.&lt;br /&gt;&lt;b&gt;Static:&lt;/b&gt;&amp;nbsp;A static variable exists only in a local function scope,&lt;br /&gt;but it does not lose its value when program execution leaves this scope.&lt;br /&gt;&lt;b&gt;Final:&lt;/b&gt;&amp;nbsp;Final keyword prevents child classes from overriding a&lt;br /&gt;method by prefixing the definition with final. If the class itself is&lt;br /&gt;being defined final then it cannot be extended.&lt;br /&gt;&lt;b&gt;transient:&amp;nbsp;&lt;/b&gt;A transient variable is a variable that may not&lt;br /&gt;be serialized.&amp;nbsp;&lt;b&gt;&lt;br /&gt;volatile:&lt;/b&gt;&amp;nbsp;a variable that might be concurrently modified by multiple&lt;br /&gt;threads should be declared volatile. Variables declared to be volatile&lt;br /&gt;will not be optimized by the compiler because their value can change at&lt;br /&gt;any time.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 26&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the different types of errors in PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 26&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Three are three types of errors:1. Notices: These are trivial,&lt;br /&gt;non-critical errors that PHP encounters while executing a script â€“ for&lt;br /&gt;example, accessing a variable that has not yet been defined. By default,&lt;br /&gt;such errors are not displayed to the user at all â€“ although, as you will&lt;br /&gt;see, you can change this default behavior.2. Warnings: These are more serious errors â€“ for example, attempting&lt;br /&gt;to include() a file which does not exist. By default, these errors are&lt;br /&gt;displayed to the user, but they do not result in script termination.3. Fatal errors: These are critical errors â€“ for example,&lt;br /&gt;instantiating an object of a non-existent class, or calling a&lt;br /&gt;non-existent function. These errors cause the immediate termination of&lt;br /&gt;the script, and PHP's default behavior is to display them to the user&lt;br /&gt;when they take place.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 27&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the functionality of the function strstr and stristr?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 27&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;strstr&lt;/b&gt;&amp;nbsp;Returns part of string from the first occurrence of needle(sub string that we finding out ) to the end of string.&lt;br /&gt;$email= 'sonialouder@gmail.com';&lt;br /&gt;$domain = strstr($email, '@');&lt;br /&gt;echo $domain; // prints @gmail.com&lt;br /&gt;here @ is the needle&lt;br /&gt;&lt;b&gt;stristr&lt;/b&gt;&amp;nbsp;is case-insensitive means able not able to diffrenciate between a and A&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 28&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the differences between PHP 3 and PHP 4 and PHP 5?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 28&lt;/b&gt;&lt;/td&gt;&lt;td&gt;There are lot of difference among these three version of php&lt;br /&gt;1&amp;gt;Php3 is oldest version after that php4 came and current version is php5 (php5.3) where php6 have to come&lt;br /&gt;2&amp;gt;Difference mean oldest version have less functionality as compare to new one like php5 have all OOPs concept now where as php3 was pure procedural language constructive like C&lt;br /&gt;&lt;b&gt;In PHP5&amp;nbsp;&lt;/b&gt;1. Implementation of exceptions and exception handling&lt;br /&gt;2. Type hinting which allows you to force the type of a specific argument&lt;br /&gt;3. Overloading of methods through the __call function&lt;br /&gt;4. Full constructors and destructors etc through a __constuctor and __destructor function&lt;br /&gt;5. __autoload function for dynamically including certain include files depending on the class you are trying to create.&lt;br /&gt;6 Finality : can now use the final keyword to indicate that a method cannot be overridden by a child. You can also declare an entire class as final which prevents it from having any children at all.&lt;br /&gt;7 Interfaces &amp;amp; Abstract Classes&lt;br /&gt;8 Passed by Reference :&lt;br /&gt;9 An __clone method if you really want to duplicate an object&lt;br /&gt;10 Numbers of Functions Deprecated in php 5.x like ereg,ereg_replace,magic_quotes_runtime, session_register,register_globals, split(), call_user_method() etc&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 29&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we convert asp pages to PHP pages?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 29&lt;/b&gt;&lt;/td&gt;&lt;td&gt;there are lots of tools available for asp to PHP conversion. you can&lt;br /&gt;search Google for that. the best one is available at&lt;a href="http://asp2php.naken.cc./" style="color: #771100; text-decoration: none;"&gt;http://asp2php.naken.cc./&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 30&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the functionality of the function htmlentities?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 30&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Convert all applicable characters to HTML entities&lt;br /&gt;This function is identical to htmlspecialchars() in all ways, except&lt;br /&gt;with htmlentities(), all characters which have HTML character entity&lt;br /&gt;equivalents are translated into these entities.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 31&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we get second of the current time using date function?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 31&lt;/b&gt;&lt;/td&gt;&lt;td&gt;$second = date("s");&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 32&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we convert the time zones using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 32&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;tt&gt;By using date_default_timezone_get&lt;/tt&gt;&amp;nbsp;and&amp;nbsp;&lt;tt&gt;&lt;br /&gt;date_default_timezone_set function on PHP 5.1.0&lt;/tt&gt;&lt;br /&gt;&lt;pre&gt;', date(DATE_RFC1123, $stamp) ,'&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
';?&amp;gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 33&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is meant by urlencode and urldocode?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 33&lt;/b&gt;&lt;/td&gt;&lt;td&gt;URLencode returns a string in which all non-alphanumeric characters&lt;br /&gt;except&amp;nbsp;&lt;tt&gt;-_.&lt;/tt&gt;&amp;nbsp;have been replaced with a percent (&lt;tt&gt;%&lt;/tt&gt;)&lt;br /&gt;sign followed by two hex digits and spaces encoded as plus (&lt;tt&gt;+&lt;/tt&gt;)&lt;br /&gt;signs. It is encoded the same way that the posted data from a WWW form&lt;br /&gt;is encoded, that is the same way as in&amp;nbsp;&lt;tt&gt;&lt;br /&gt;application/x-www-form-urlencoded&lt;/tt&gt;&amp;nbsp;media type.&lt;br /&gt;&lt;div class="refsect1"&gt;
urldecode decodes any&amp;nbsp;&lt;tt&gt;%&lt;i&gt;&lt;tt&gt;##&lt;/tt&gt;&lt;/i&gt;&lt;/tt&gt;&lt;br /&gt;encoding in the given string.&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 34&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between the functions unlink and unset?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 34&lt;/b&gt;&lt;/td&gt;&lt;td&gt;unlink() deletes the given file from the file system.&lt;br /&gt;unset() makes a variable undefined.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 35&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we register the variables into a session?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 35&lt;/b&gt;&lt;/td&gt;&lt;td&gt;$_SESSION['name'] = "sonia";&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 36&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we get the properties (size, type, width, height) of an&lt;br /&gt;image using PHP image functions?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 36&lt;/b&gt;&lt;/td&gt;&lt;td&gt;To know the Image type use exif_imagetype () function&lt;br /&gt;To know the Image size use getimagesize () function&lt;br /&gt;To know the image width use imagesx () function&lt;br /&gt;To know the image height use imagesy() function t&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 37&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we get the browser properties using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 37&lt;/b&gt;&lt;/td&gt;&lt;td&gt;By using&amp;nbsp;&lt;code&gt;&lt;br /&gt;$_SERVER['HTTP_USER_AGENT']&lt;span style="color: #007700;"&gt;&lt;br /&gt;&lt;/span&gt;variable&lt;span style="color: #007700;"&gt;.&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" height="23" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 38&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5" height="23"&gt;&lt;b&gt;What is the maximum size of a file that can be uploaded using PHP&lt;br /&gt;and how can we change this?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 38&lt;/b&gt;&lt;/td&gt;&lt;td&gt;By default the maximum size is 2MB. and we can change the following&lt;br /&gt;setup at php.iniupload_max_filesize = 2M&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 39&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we increase the execution time of a PHP script?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 39&lt;/b&gt;&lt;/td&gt;&lt;td&gt;by changing the following setup at php.inimax_execution_time = 30&lt;br /&gt;; Maximum execution time of each script, in seconds&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 40&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we take a backup of a MySQL table and how can we restore&lt;br /&gt;it. ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 40&lt;/b&gt;&lt;/td&gt;&lt;td&gt;To backup: BACKUP TABLE tbl_name[,tbl_nameâ€¦] TO&lt;br /&gt;'/path/to/backup/directory'&lt;br /&gt;RESTORE TABLE tbl_name[,tbl_nameâ€¦] FROM '/path/to/backup/directory'mysqldump: Dumping Table Structure and DataUtility to dump a database or a collection of database for backup or&lt;br /&gt;for transferring the data to another SQL server (not necessarily a MySQL&lt;br /&gt;server). The dump will contain SQL statements to create the table and/or&lt;br /&gt;populate the table.&lt;br /&gt;-t, â€“no-create-info&lt;br /&gt;Don't write table creation information (the CREATE TABLE statement).&lt;br /&gt;-d, â€“no-data&lt;br /&gt;Don't write any row information for the table. This is very useful if&lt;br /&gt;you just want to get a dump of the structure for a table!&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 41&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we optimize or increase the speed of a MySQL select&lt;br /&gt;query?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 41&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;ul style="line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;"&gt;
&lt;li style="border: none; margin: 0px 0px 0.25em; padding: 0px;"&gt;first of all instead of using select * from table1, use select&lt;br /&gt;column1, column2, column3.. from table1&lt;/li&gt;
&lt;li style="border: none; margin: 0px 0px 0.25em; padding: 0px;"&gt;Look for the opportunity to introduce index in the table you are&lt;br /&gt;querying.&lt;/li&gt;
&lt;li style="border: none; margin: 0px 0px 0.25em; padding: 0px;"&gt;use limit keyword if you are looking for any specific number of&lt;br /&gt;rows from the result set.&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 42&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How many ways can we get the value of current session id?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 42&lt;/b&gt;&lt;/td&gt;&lt;td&gt;session_id() returns the session id for the current session.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 43&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we destroy the session, how can we unset the variable of&lt;br /&gt;a session?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 43&lt;/b&gt;&lt;/td&gt;&lt;td&gt;session_unregister â€” Unregister a global variable from the current&lt;br /&gt;session&lt;br /&gt;session_unset â€” Free all session variables&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 44&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we set and destroy the cookie n php?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 44&lt;/b&gt;&lt;/td&gt;&lt;td&gt;By using setcookie(name, value, expire, path, domain); function we can set the cookie in php ;&lt;br /&gt;Set the cookies in past for destroy. like&lt;br /&gt;setcookie("user", "sonia", time()+3600); for set the cookie&lt;br /&gt;setcookie("user", "", time()-3600); for destroy or delete the cookies;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 45&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How many ways we can pass the variable through the navigation&lt;br /&gt;between the pages?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 45&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;ul style="line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;"&gt;
&lt;li style="border: none; margin: 0px 0px 0.25em; padding: 0px;"&gt;GET/QueryString&lt;/li&gt;
&lt;li style="border: none; margin: 0px 0px 0.25em; padding: 0px;"&gt;POST&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 46&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between ereg_replace() and eregi_replace()?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 46&lt;/b&gt;&lt;/td&gt;&lt;td&gt;eregi_replace() function is identical to ereg_replace() except that&lt;br /&gt;this ignores case distinction when matching alphabetic&lt;br /&gt;characters.eregi_replace() function is identical to ereg_replace()&lt;br /&gt;except that this ignores case distinction when matching alphabetic&lt;br /&gt;characters.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 47&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the different functions in sorting an array?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 47&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Sort(), arsort(),&lt;br /&gt;asort(), ksort(),&lt;br /&gt;natsort(), natcasesort(),&lt;br /&gt;rsort(), usort(),&lt;br /&gt;array_multisort(), and&lt;br /&gt;uksort().&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 48&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we know the count/number of elements of an array?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 48&lt;/b&gt;&lt;/td&gt;&lt;td&gt;2 ways&lt;br /&gt;a) sizeof($urarray) This function is an alias of count()&lt;br /&gt;b) count($urarray)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 49&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is session_set_save_handler in PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 49&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;session_set_save_handler()&amp;nbsp;&lt;/b&gt;sets the user-level session storage functions which are used for storing and retrieving data associated with a session. This is most useful when a storage method other than those supplied by PHP sessions is preferred. i.e. Storing the session data in a local database.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 50&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can I know that a variable is a number or not using a&lt;br /&gt;JavaScript?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 50&lt;/b&gt;&lt;/td&gt;&lt;td&gt;bool is_numeric ( mixed var)&lt;br /&gt;Returns TRUE if var is a number or a numeric string, FALSE otherwise.or use isNaN(mixed var)The isNaN() function is used to check if a value is not a number.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 51&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;List out some tools through which we can draw E-R diagrams for&lt;br /&gt;mysql.&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 51&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Case Studio&lt;br /&gt;Smart Draw&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 52&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can I retrieve values from one database server and store them&lt;br /&gt;in other database server using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 52&lt;/b&gt;&lt;/td&gt;&lt;td&gt;we can always fetch from one database and rewrite to another. here&lt;br /&gt;is a nice solution of it.$db1 = mysql_connect("host","user","pwd")&lt;br /&gt;mysql_select_db("db1", $db1);&lt;br /&gt;$res1 = mysql_query("query",$db1);$db2 = mysql_connect("host","user","pwd")&lt;br /&gt;mysql_select_db("db2", $db2);&lt;br /&gt;$res2 = mysql_query("query",$db2);At this point you can only fetch records from you previous ResultSet,&lt;br /&gt;i.e $res1 â€“ But you cannot execute new query in $db1, even if you&lt;br /&gt;supply the link as because the link was overwritten by the new db.so at this point the following script will fail&lt;br /&gt;$res3 = mysql_query("query",$db1); //this will failSo how to solve that? take a look below.&lt;br /&gt;$db1 = mysql_connect("host","user","pwd")&lt;br /&gt;mysql_select_db("db1", $db1);&lt;br /&gt;$res1 = mysql_query("query",$db1);&lt;br /&gt;$db2 = mysql_connect("host","user","pwd", true)&lt;br /&gt;mysql_select_db("db2", $db2);&lt;br /&gt;$res2 = mysql_query("query",$db2);&lt;br /&gt;So mysql_connect has another optional boolean parameter which&lt;br /&gt;indicates whether a link will be created or not. as we connect to the&lt;br /&gt;$db2 with this optional parameter set to 'true', so both link will&lt;br /&gt;remain live.&lt;br /&gt;now the following query will execute successfully.&lt;br /&gt;$res3 = mysql_query("query",$db1);&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 53&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;List out the predefined classes in PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 53&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Directory&lt;br /&gt;stdClass&lt;br /&gt;__PHP_Incomplete_Class&lt;br /&gt;exception&lt;br /&gt;php_user_filter&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 54&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can I make a script that can be bi-language (supports&lt;br /&gt;English, German)?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 54&lt;/b&gt;&lt;/td&gt;&lt;td&gt;You can maintain two separate language file for each of the&lt;br /&gt;language. all the labels are putted in both language files as variables&lt;br /&gt;and assign those variables in the PHP source. on runtime choose the&lt;br /&gt;required language option.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 55&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the difference between abstract class and interface?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 55&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Abstract class: abstract classes are the class where one or more&lt;br /&gt;methods are abstract but not necessarily all method has to be abstract.&lt;br /&gt;Abstract methods are the methods, which are declare in its class but not&lt;br /&gt;define. The definition of those methods must be in its extending class.Interface: Interfaces are one type of class where all the methods are&lt;br /&gt;abstract. That means all the methods only declared but not defined. All&lt;br /&gt;the methods must be define by its implemented class.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 56&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we send mail using JavaScript?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 56&lt;/b&gt;&lt;/td&gt;&lt;td&gt;JavaScript does not have any networking capabilities as it is&lt;br /&gt;designed to work on client site. As a result we can not send mails using&lt;br /&gt;JavaScript. But we can call the client side mail protocol&amp;nbsp;&lt;b&gt;mailto&lt;/b&gt;&lt;br /&gt;via JavaScript to prompt for an email to send. this requires the client&lt;br /&gt;to approve it.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 57&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we repair a MySQL table?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 57&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The syntex for repairing a MySQL table is&lt;br /&gt;REPAIR TABLENAME, [TABLENAME, ], [Quick],[Extended]&lt;br /&gt;This command will repair the table specified if the quick is given the&lt;br /&gt;MySQL will do a repair of only the index tree if the extended is given&lt;br /&gt;it will create index row by row&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 58&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the advantages of stored procedures, triggers, indexes?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 58&lt;/b&gt;&lt;/td&gt;&lt;td&gt;A stored procedure is a set of SQL commands that can be compiled and&lt;br /&gt;stored in the server. Once this has been done, clients don't need to&lt;br /&gt;keep re-issuing the entire query but can refer to the stored procedure.&lt;br /&gt;This provides better overall performance because the query has to be&lt;br /&gt;parsed only once, and less information needs to be sent between the&lt;br /&gt;server and the client. You can also raise the conceptual level by having&lt;br /&gt;libraries of functions in the server. However, stored procedures of&lt;br /&gt;course do increase the load on the database server system, as more of&lt;br /&gt;the work is done on the server side and less on the client (application)&lt;br /&gt;side.Triggers will also be implemented. A trigger is effectively a type of&lt;br /&gt;stored procedure, one that is invoked when a particular event occurs.&lt;br /&gt;For example, you can install a stored procedure that is triggered each&lt;br /&gt;time a record is deleted from a transaction table and that stored&lt;br /&gt;procedure automatically deletes the corresponding customer from a&lt;br /&gt;customer table when all his transactions are deleted.Indexes are used to find rows with specific column values quickly.&lt;br /&gt;Without an index, MySQL must begin with the first row and then read&lt;br /&gt;through the entire table to find the relevant rows. The larger the&lt;br /&gt;table, the more this costs. If the table has an index for the columns in&lt;br /&gt;question, MySQL can quickly determine the position to seek to in the&lt;br /&gt;middle of the data file without having to look at all the data. If a&lt;br /&gt;table has 1,000 rows, this is at least 100 times faster than reading&lt;br /&gt;sequentially. If you need to access most of the rows, it is faster to&lt;br /&gt;read sequentially, because this minimizes disk seeks.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 59&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the maximum length of a table name, database name, and&lt;br /&gt;fieldname in MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 59&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The following table describes the maximum length for each type of&lt;br /&gt;identifier.&lt;br /&gt;&lt;div class="informaltable"&gt;
&lt;/div&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span class="bold"&gt;&lt;b&gt;&lt;span style="font-size: xx-small;"&gt;Identifier&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span class="bold"&gt;&lt;b&gt;&lt;span style="font-size: xx-small;"&gt;Maximum Length&lt;br /&gt;(bytes)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Database&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;64&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Table&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;64&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Column&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;64&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Index&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;64&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;Alias&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;span style="font-size: xx-small;"&gt;255&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
There are some restrictions on the characters that may appear in&lt;br /&gt;identifiers:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 60&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How many values can the SET function of MySQL take?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 60&lt;/b&gt;&lt;/td&gt;&lt;td&gt;MySQL set can take zero or more values but at the maximum it can&lt;br /&gt;take 64 values&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 61&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the other commands to know the structure of table using&lt;br /&gt;MySQL commands except explain command?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 61&lt;/b&gt;&lt;/td&gt;&lt;td&gt;describe Table-Name;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 62&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How many tables will create when we create table, what are they?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 62&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The '.frm' file stores the table definition.&lt;br /&gt;The data file has a '.MYD' (MYData) extension.&lt;br /&gt;The index file has a '.MYI' (MYIndex) extension,&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 63&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the purpose of the following files having extensions 1) .frm&lt;br /&gt;2) .myd 3) .myi? What do these files contain?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 63&lt;/b&gt;&lt;/td&gt;&lt;td&gt;In MySql, the default table type is MyISAM.&lt;br /&gt;Each MyISAM table is stored on disk in three files. The files have names&lt;br /&gt;that begin with the table name and have an extension to indicate the&lt;br /&gt;file type.&lt;br /&gt;The '.frm' file stores the table definition.&lt;br /&gt;The data file has a '.MYD' (MYData) extension.&lt;br /&gt;The index file has a '.MYI' (MYIndex) extension,&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 64&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is maximum size of a database in MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 64&lt;/b&gt;&lt;/td&gt;&lt;td&gt;If the operating system or filesystem places a limit on the number&lt;br /&gt;of files in a directory, MySQL is bound by that constraint.The efficiency of the operating system in handling large numbers of&lt;br /&gt;files in a directory can place a practical limit on the number of tables&lt;br /&gt;in a database. If the time required to open a file in the directory&lt;br /&gt;increases significantly as the number of files increases, database&lt;br /&gt;performance can be adversely affected.&lt;br /&gt;The amount of available disk space limits the number of tables.&lt;br /&gt;MySQL 3.22 had a 4GB (4 gigabyte) limit on table size. With the MyISAM&lt;br /&gt;storage engine in MySQL 3.23, the maximum table size was increased to&lt;br /&gt;65536 terabytes (2567 â€“ 1 bytes). With this larger allowed table size,&lt;br /&gt;the maximum effective table size for MySQL databases is usually&lt;br /&gt;determined by operating system constraints on file sizes, not by MySQL&lt;br /&gt;internal limits.The InnoDB storage engine maintains InnoDB tables within a tablespace&lt;br /&gt;that can be created from several files. This allows a table to exceed&lt;br /&gt;the maximum individual file size. The tablespace can include raw disk&lt;br /&gt;partitions, which allows extremely large tables. The maximum tablespace&lt;br /&gt;size is 64TB.&lt;br /&gt;The following table lists some examples of operating system file-size&lt;br /&gt;limits. This is only a rough guide and is not intended to be definitive.&lt;br /&gt;For the most up-to-date information, be sure to check the documentation&lt;br /&gt;specific to your operating system.&lt;br /&gt;Operating System File-size LimitLinux 2.2-Intel 32-bit 2GB (LFS: 4GB)&lt;br /&gt;Linux 2.4+ (using ext3 filesystem) 4TB&lt;br /&gt;Solaris 9/10 16TB&lt;br /&gt;NetWare w/NSS filesystem 8TB&lt;br /&gt;Win32 w/ FAT/FAT32 2GB/4GB&lt;br /&gt;Win32 w/ NTFS 2TB (possibly larger)&lt;br /&gt;MacOS X w/ HFS+ 2TB&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 65&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;Give the syntax of Grant and Revoke commands?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 65&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The generic syntax for grant is as following&lt;br /&gt;&amp;gt; GRANT [rights] on [database/s] TO [username@hostname] IDENTIFIED BY&lt;br /&gt;[password]&lt;br /&gt;now rights can be&lt;br /&gt;a) All privileges&lt;br /&gt;b) combination of create, drop, select, insert, update and delete etc.We can grant rights on all databse by using *.* or some specific&lt;br /&gt;database by database.* or a specific table by database.table_name&lt;br /&gt;username@hotsname can be either username@localhost, username@hostname&lt;br /&gt;and username@%&lt;br /&gt;where hostname is any valid hostname and % represents any name, the *.*&lt;br /&gt;any condition&lt;br /&gt;password is simply the password of userThe generic syntax for revoke is as following&lt;br /&gt;&amp;gt; REVOKE [rights] on [database/s] FROM [username@hostname]&lt;br /&gt;now rights can be as explained above&lt;br /&gt;a) All privileges&lt;br /&gt;b) combination of create, drop, select, insert, update and delete etc.&lt;br /&gt;username@hotsname can be either username@localhost, username@hostname&lt;br /&gt;and username@%&lt;br /&gt;where hostname is any valid hostname and % represents any name, the *.*&lt;br /&gt;any condition&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 66&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;Explain Normalization concept?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 66&lt;/b&gt;&lt;/td&gt;&lt;td&gt;The normalization process involves getting our data to conform to&lt;br /&gt;three progressive normal forms, and a higher level of normalization&lt;br /&gt;cannot be achieved until the previous levels have been achieved (there&lt;br /&gt;are actually five normal forms, but the last two are mainly academic and&lt;br /&gt;will not be discussed).First Normal FormThe First Normal Form (or 1NF) involves removal of redundant data&lt;br /&gt;from horizontal rows. We want to ensure that there is no duplication of&lt;br /&gt;data in a given row, and that every column stores the least amount of&lt;br /&gt;information possible (making the field atomic).Second Normal FormWhere the First Normal Form deals with redundancy of data across a&lt;br /&gt;horizontal row, Second Normal Form (or 2NF) deals with redundancy of&lt;br /&gt;data in vertical columns. As stated earlier, the normal forms are&lt;br /&gt;progressive, so to achieve Second Normal Form, your tables must already&lt;br /&gt;be in First Normal Form.Third Normal Form I have a confession to make; I do not often use Third Normal Form. In&lt;br /&gt;Third Normal Form we are looking for data in our tables that is not&lt;br /&gt;fully dependant on the primary key, but dependant on another value in&lt;br /&gt;the table&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 67&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we find the number of rows in a table using MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 67&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Use this for mysql&lt;br /&gt;&amp;gt;SELECT COUNT(*) FROM table_name;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 68&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we find the number of rows in a result set using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 68&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;code&gt;$result = mysql_query($sql, $db_link);&lt;br /&gt;$num_rows = mysql_num_rows($result);&lt;br /&gt;echo "$num_rows rows found";&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 69&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How many ways we can we find the current date using MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 69&lt;/b&gt;&lt;/td&gt;&lt;td&gt;SELECT CURDATE();&lt;br /&gt;CURRENT_DATE() = CURDATE()&lt;br /&gt;for time use&lt;br /&gt;SELECT CURTIME();&lt;br /&gt;CURRENT_TIME() = CURTIME()&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 70&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the advantages and disadvantages of Cascading Style&lt;br /&gt;Sheets?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 70&lt;/b&gt;&lt;/td&gt;&lt;td&gt;External Style SheetsAdvantagesCan control styles for multiple documents at once. Classes can be&lt;br /&gt;created for use on multiple HTML element types in many documents.&lt;br /&gt;Selector and grouping methods can be used to apply styles under complex&lt;br /&gt;contextsDisadvantagesAn extra download is required to import style information for each&lt;br /&gt;document The rendering of the document may be delayed until the external&lt;br /&gt;style sheet is loaded Becomes slightly unwieldy for small quantities of&lt;br /&gt;style definitionsEmbedded Style Sheets Advantages&lt;br /&gt;Classes can be created for use on multiple tag types in the document.&lt;br /&gt;Selector and grouping methods can be used to apply styles under complex&lt;br /&gt;contexts. No additional downloads necessary to receive style information&lt;br /&gt;Disadvantages&lt;br /&gt;This method can not control styles for multiple documents at once&lt;br /&gt;Inline Styles&lt;br /&gt;Advantages&lt;br /&gt;Useful for small quantities of style definitions. Can override other&lt;br /&gt;style specification methods at the local level so only exceptions need&lt;br /&gt;to be listed in conjunction with other style methods&lt;br /&gt;Disadvantages&lt;br /&gt;Does not distance style information from content (a main goal of&lt;br /&gt;SGML/HTML). Can not control styles for multiple documents at once.&lt;br /&gt;Author can not create or control classes of elements to control multiple&lt;br /&gt;element types within the document. Selector grouping methods can not be&lt;br /&gt;used to create complex element addressing scenarios&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 71&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What type of inheritance that PHP supports?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 71&lt;/b&gt;&lt;/td&gt;&lt;td&gt;In PHP an extended class is always dependent on a single base class,&lt;br /&gt;that is, multiple inheritance is not supported. Classes are extended&lt;br /&gt;using the keyword 'extends'.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 72&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between Primary Key and&lt;br /&gt;Unique key?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 72&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Primary Key: A column in a table whose values uniquely identify the&lt;br /&gt;rows in the table. A primary key value cannot be NULL. Unique Key: Unique Keys are used to uniquely identify each row in the&lt;br /&gt;table. There can be one and only one row for each unique key value. So&lt;br /&gt;NULL can be a unique key.There can be only one primary key for a table but there can be more&lt;br /&gt;than one unique for a table.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;&lt;br /&gt;Question : 73&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is garbage collection? default time ? refresh time?&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 73&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Garbage Collection is an automated part of PHP , If the Garbage Collection process runs, it then analyzes any files in the /tmp for any session files that have not been accessed in a certain amount of time and physically deletes them. Garbage Collection process only runs in the default session save directory, which is /tmp. If you opt to save your sessions in a different directory, the Garbage Collection process will ignore it. the Garbage Collection process does not differentiate between which sessions belong to whom when run. This is especially important note on shared web servers. If the process is run, it deletes ALL files that have not been accessed in the directory. There are 3 PHP.ini variables, which deal with the garbage collector: PHP ini value name default session.gc_maxlifetime 1440 seconds or 24 minutes session.gc_probability 1 session.gc_divisor 100&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 74&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are the advantages/disadvantages of MySQL and PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 74&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Both of them are open source software (so free of cost), support&lt;br /&gt;cross platform. php is faster then ASP and JSP.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 75&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between GROUP BY and ORDER BY in Sql?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 75&lt;/b&gt;&lt;/td&gt;&lt;td&gt;ORDER BY [col1],[col2],â€¦,[coln]; Tels DBMS according to what columns&lt;br /&gt;it should sort the result. If two rows will hawe the same value in col1&lt;br /&gt;it will try to sort them according to col2 and so on.GROUP BY&lt;br /&gt;[col1],[col2],â€¦,[coln]; Tels DBMS to group results with same value of&lt;br /&gt;column col1. You can use COUNT(col1), SUM(col1), AVG(col1) with it, if&lt;br /&gt;you want to count all items in group, sum all values or view average&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 76&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the difference between char and varchar data types?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 76&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Set char to occupy n bytes and it will take n bytes even if u r&lt;br /&gt;storing a value of n-m bytes&lt;br /&gt;Set varchar to occupy n bytes and it will take only the required space&lt;br /&gt;and will not use the n bytes&lt;br /&gt;eg. name char(15) will waste 10 bytes if we store 'romharshan', if each char&lt;br /&gt;takes a byte&lt;br /&gt;eg. name varchar(15) will just use 5 bytes if we store 'romharshan', if each&lt;br /&gt;char takes a byte. rest 10 bytes will be free.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 77&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is the functionality of md5 function in PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 77&lt;/b&gt;&lt;/td&gt;&lt;td&gt;Calculate the md5 hash of a string. The hash is a 32-character&lt;br /&gt;hexadecimal number. I use it to generate keys which I use to identify&lt;br /&gt;users etc. If I add random no techniques to it the md5 generated now&lt;br /&gt;will be totally different for the same string I am using.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 78&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can I load data from a text file into a table?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 78&lt;/b&gt;&lt;/td&gt;&lt;td&gt;you can use LOAD DATA INFILE file_name; syntax to load data&lt;br /&gt;from a text file. but you have to make sure thata) data is delimited&lt;br /&gt;b) columns and data matched correctly&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 79&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we know the number of days between two given dates using&lt;br /&gt;MySQL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 79&lt;/b&gt;&lt;/td&gt;&lt;td&gt;SELECT DATEDIFF("2007-03-07","2005-01-01");&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 80&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How can we know the number of days between two given dates using PHP?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 80&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;$date1 = date("Y-m-d");&lt;br /&gt;$date2 = "2006-08-15";&lt;br /&gt;$days = (strtotime($date1) - strtotime($date2)) / (60 * 60 * 24);&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 81&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How we load all classes that placed in different directory in one PHP File , means how to do auto load classes&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 81&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;&lt;br /&gt;&lt;br /&gt;by using spl_autoload_register('autoloader::funtion');&lt;br /&gt;&lt;br /&gt;Like below&lt;br /&gt;&lt;br /&gt;class autoloader&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;public static function moduleautoloader($class)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;$path = $_SERVER['DOCUMENT_ROOT'] . "/modules/{$class}.php";&lt;br /&gt;&lt;br /&gt;if (is_readable($path)) require $path;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static function daoautoloader($class)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;$path = $_SERVER['DOCUMENT_ROOT'] . "/dataobjects/{$class}.php";&lt;br /&gt;&lt;br /&gt;if (is_readable($path)) require $path;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static function includesautoloader($class)&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;$path = $_SERVER['DOCUMENT_ROOT'] . "/includes/{$class}.php";&lt;br /&gt;&lt;br /&gt;if (is_readable($path)) require $path;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;spl_autoload_register('autoloader::includesautoloader');&lt;br /&gt;&lt;br /&gt;spl_autoload_register('autoloader::daoautoloader');&lt;br /&gt;&lt;br /&gt;spl_autoload_register('autoloader::moduleautoloader');&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 82&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;How many types of Inheritances used in PHP and how we achieve it&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answer : 82&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;As far PHP concern it only support single Inheritance in scripting.&lt;br /&gt;we can also use interface to achieve multiple inheritance.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 83&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;PHP how to know user has read the email?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 83&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;Using Disposition-Notification-To: in mailheader we can get read receipt.&lt;br /&gt;Add the possibility to define a read receipt when sending an email.&lt;br /&gt;Itâ€™s quite straightforward, just edit email.php, and add this at vars definitions:&lt;br /&gt;var $readReceipt = null;&lt;br /&gt;And then, at â€˜createHeaderâ€™ function add:&lt;br /&gt;if (!empty($this-&amp;gt;readReceipt)) {&lt;br /&gt;$this-&amp;gt;__header .= â€˜Disposition-Notification-To: â€˜ . $this-&amp;gt;__formatAddress($this-&amp;gt;readReceipt) . $this-&amp;gt;_newLine;&lt;br /&gt;}&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 84&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What are default session time and path?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 84&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;default session time in PHP is 1440 seconds or 24 minutes&lt;br /&gt;Default session save path id temporary folder /tmp&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 85&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;how to track user logged out or not? when user is idle ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 85&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;By checking the session variable exist or not while loading th page. As the session will exist longer as till browser closes. The default behaviour for sessions is to keep a session open indefinitely and only to expire a session when the browser is closed. This behaviour can be changed in the php.ini file by altering the line session.cookie_lifetime = 0 to a value in seconds. If you wanted the session to finish in 5 minutes you would set this to session.cookie_lifetime = 300 and restart your httpd server.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 86&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;how to track no of user logged in ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 86&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;whenever a user logs in track the IP, userID etc..and store it in a DB with a active flag while log out or sesion expire make it inactive. At any time by counting the no: of active records we can get the no: of visitors.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 87&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;in PHP for pdf which library used?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 87&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;The PDF functions in PHP can create PDF files using the PDFlib library With version 6, PDFlib offers an object-oriented API for PHP 5 in addition to the function-oriented API for PHP 4. There is also the Â» Panda module. FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs. FPDF requires no extension (except zlib to activate compression and GD for GIF support) and works with PHP4 and PHP5.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 88&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;for image work which library?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 88&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;we will need to compile PHP with the GD library of image functions for this to work. GD and PHP may also require other libraries, depending on which image formats you want to work with.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 89&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is design pattern? singleton pattern?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 89&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;A design pattern is a general reusable solution to a commonly occurring problem in software design.&lt;br /&gt;The Singleton design pattern allows many parts of a program to share a single resource without having to work out the details of the sharing themselves.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 90&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what are magic methods?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 90&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;Magic methods are the members functions that is available to all the instance of class Magic methods always starts with "__". Eg. __construct All magic methods needs to be declared as public To use magic method they should be defined within the class or program scope Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone()&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 91&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is magic quotes?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 91&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;Magic Quotes is a process that automagically escapes ncoming data to the PHP script. Itâ€™s preferred to code with magic quotes off and to instead escape the data at runtime, as needed. This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 92&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is cross site scripting? SQL injection?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 92&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which allow code injection by malicious web users into the web pages viewed by other users. Examples of such code include HTML code and client-side scripts. SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 93&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is URL rewriting?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 93&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;Using URL rewriting we can convert dynamic URl to static URL Static URLs are known to be better than Dynamic URLs because of a number of reasons 1. Static URLs typically Rank better in Search Engines. 2. Search Engines are known to index the content of dynamic pages a lot slower compared to static pages. 3. Static URLs are always more friendlier looking to the End Users. along with this we can use URL rewriting in adding variables [cookies] to the URL to handle the sessions.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 94&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is the major php security hole? how to avoid?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 94&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;1. Never include, require, or otherwise open a file with a filename based on user input, without thoroughly checking it first.&lt;br /&gt;2. Be careful with eval() Placing user-inputted values into the eval() function can be extremely dangerous. You essentially give the malicious user the ability to execute any command he or she wishes!&lt;br /&gt;3. Be careful when using register_globals = ON It was originally designed to make programming in PHP easier (and that it did), but misuse of it often led to security holes&lt;br /&gt;4. Never run unescaped queries&lt;br /&gt;5. For protected areas, use sessions or validate the login every time.&lt;br /&gt;6. If you donâ€™t want the file contents to be seen, give the file a .php extension.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 95&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;whether PHP supports Microsoft SQL server ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 95&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;The SQL Server Driver for PHP v1.0 is designed to enable reliable, scalable integration with SQL Server for PHP applications deployed on the Windows platform. The Driver for PHP is a PHP 5 extension that allows the reading and writing of SQL Server data from within PHP scripts. using MSSQL or ODBC modules we can access Microsoft SQL server.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 96&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is MVC? why its been used?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 96&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;Model-view-controller (MVC) is an architectural pattern used in software engineering. Successful use of the pattern isolates business logic from user interface considerations, resulting in an application where it is easier to modify either the visual appearance of the application or the underlying business rules without affecting the other. In MVC, the model represents the information (the data) of the application; the view corresponds to elements of the user interface such as text, checkbox items, and so forth; and the controller manages the communication of data and the business rules used to manipulate the data to and from the model. WHY ITS NEEDED IS 1 Modular separation of function 2 Easier to maintain 3 View-Controller separation means:&lt;br /&gt;A â€” Tweaking design (HTML) without altering code B â€” Web design staff can modify UI without understanding code&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 97&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is framework? how it works? what is advantage?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 97&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;In general, a framework is a real or conceptual structure intended to serve as a support or guide for the building of something that expands the structure into something useful. Advantages : Consistent Programming Model Direct Support for Security Simplified Development Efforts Easy Application Deployment and Maintenance&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 98&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is CURL?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 98&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;CURL means Client URL Library&lt;br /&gt;curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberosâ€¦), file transfer resume, proxy tunneling and a busload of other useful tricks.&lt;br /&gt;CURL allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHPâ€™s ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 99&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;what is PDO ?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 99&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;The PDO ( PHP Data Objects ) extension defines a lightweight, consistent interface for accessing databases in PHP. if you are using the PDO API, you could switch the database server you used, from say PgSQL to MySQL, and only need to make minor changes to your PHP code.&lt;br /&gt;While PDO has its advantages, such as a clean, simple, portable API but its main&lt;b&gt;disadvantage&lt;/b&gt;&amp;nbsp;is that it doesn't allow you to use all of the advanced features that are available in the latest versions of MySQL server. For example, PDO does not allow you to use MySQL's support for Multiple Statements.&lt;br /&gt;Just need to use below code for connect mysql using PDO&lt;br /&gt;try {&lt;br /&gt;$dbh = new PDO("mysql:host=$hostname;dbname=databasename", $username, $password);&lt;br /&gt;$sql = "SELECT * FROM employee";&lt;br /&gt;foreach ($dbh-&amp;gt;query($sql) as $row)&lt;br /&gt;{&lt;br /&gt;print $row['employee_name'] .' - '. $row['employee_age'] ;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;catch(PDOException $e)&lt;br /&gt;{&lt;br /&gt;echo $e-&amp;gt;getMessage();&lt;br /&gt;}&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top" width="65"&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" bgcolor="#6388E5" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Questions : 100&lt;/b&gt;&lt;/td&gt;&lt;td bgcolor="#6388E5"&gt;&lt;b&gt;What is PHP's mysqli Extension?&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td align="left" height="24" nowrap="nowrap" valign="top" width="65"&gt;&lt;b&gt;Answers : 100&lt;/b&gt;&lt;/td&gt;&lt;td height="24"&gt;The mysqli extension, or as it is sometimes known, the MySQL improved extension, was developed to take advantage of new features found in MySQL systems versions 4.1.3 and newer. The mysqli extension is included with PHP versions 5 and later.&lt;br /&gt;The mysqli extension has a number of benefits, the key enhancements over the mysql extension being:&lt;br /&gt;=&amp;gt;Object-oriented interface&lt;br /&gt;=&amp;gt;Support for Prepared Statements&lt;br /&gt;=&amp;gt;Support for Multiple Statements&lt;br /&gt;=&amp;gt;Support for Transactions&lt;br /&gt;=&amp;gt;Enhanced debugging capabilities&lt;br /&gt;=&amp;gt;Embedded server support&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;Versions&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;-------------&lt;/b&gt;&lt;/div&gt;
Web developer suite 2.0&lt;br /&gt;Apache server 2.2.6&lt;br /&gt;Php 5.2.5&lt;br /&gt;Mysql 5.0.45&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;Web application&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;-----------------&lt;/b&gt;&lt;/div&gt;
Joomla 1.0.13&lt;br /&gt;Drupal 5.3.0&lt;br /&gt;WordPress 2.3.1&lt;br /&gt;phpBB2 2.0.22&lt;br /&gt;&lt;br /&gt;&lt;b style="color: red;"&gt;101.&lt;/b&gt;&lt;span style="color: red;"&gt;&amp;nbsp;&lt;/span&gt;&lt;b style="color: red;"&gt;what is difference between (short tag) and (full tag).&lt;/b&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;102. What does a special set of tags  do in PHP?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- The output is displayed directly to the browser.It works like echo or print function.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;103. what is difference between echo and print?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- print returns the value in true or false, where as echo doesnot return anything.&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;10&lt;/b&gt;&lt;b&gt;4. what is difference between explode implode?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-explode function:-it breaks a string into array.&lt;br /&gt;$str="hello world.it's a beautiful day.":&lt;br /&gt;print_r(explode(" ",$str):// space between two double quotes should be there otherwise it shows Warning: explode() [function.explode]: Empty delimiter in D:\www\vhosts\localhost\test\setupTest.php on line 29&lt;br /&gt;?&amp;gt;&lt;br /&gt;ans-ARRAY&lt;br /&gt;[0]=&amp;gt;hello&lt;br /&gt;[1]=&amp;gt;world.&lt;br /&gt;[2]=&amp;gt;it's&lt;br /&gt;[3]=&amp;gt;a&lt;br /&gt;[4]=&amp;gt;beautiful&lt;br /&gt;[5]=&amp;gt;day.&lt;br /&gt;&lt;br /&gt;implode:-returns a string from elements of an array.&lt;br /&gt;$arr=array('hello','world!',beautiful,'day!');&lt;br /&gt;echo implode(" ",$arr);&lt;br /&gt;?&amp;gt;&lt;br /&gt;ans-hello world! beautiful day!&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;10&lt;/b&gt;&lt;b&gt;5.Will comparison of string "10" and integer 11 work in PHP?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;10&lt;/b&gt;&lt;b&gt;6. how many types array are there in php?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- There are two types of array- a) numerical or index array b) associative array&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In numerical or index array the indexer,which is used to determine the position of a stored data (also known as key) is an integer.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where as in case of associative array the indexer or key which is used to reffered the data element is a string.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;10&lt;/b&gt;&lt;b&gt;7. what is terinary opertion in php?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- It is called the ternary operator because it takes three operands - a condition, a result for true, and a result for false.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;OR&lt;br /&gt;&lt;br /&gt;Expression preceding the ? is evaluated, if it’s true, then the expression preceding&amp;nbsp;&amp;nbsp; &amp;nbsp;the : is executed, otherwise, the expression following : is executed.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$agestr = ($age &amp;lt; 18) ? 'child' : 'adult';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;10&lt;/b&gt;&lt;b&gt;8. explain two types of arraay sort.&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-sort()-&amp;gt;sort the array value alphabetically, but not maintaining the index.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; asort()-&amp;gt;sort the array value alphabetically, and also maintaining the index.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arsort()-&amp;gt;sort the array value alphabetically in reverse order and also maintaining the index.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ksort()-&amp;gt;sort the array according to key.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; krsort()-&amp;gt;sort the array according to key in the reverse order.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;10&lt;/b&gt;&lt;b&gt;9. what is difference between strstr and stristr?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;strstr-finds the first occurence of a string inside another&lt;br /&gt;string (case-sensitive)&lt;br /&gt;examle: $email = 'arvindpippal@gmail.com';&lt;br /&gt;$domain = strstr($email, '@');&lt;br /&gt;echo $domain;&lt;br /&gt;?&amp;gt;&lt;br /&gt;output: @gmail.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;stristr-finds the first occurence of a string inside&lt;br /&gt;another string (case-insensitive)&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;110.what is substr()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-substr() returns the portion of string specified by the start and length parameters.&lt;br /&gt;syntax:- string substr ( string string, int start [, int length] )&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;11.Can u change localhost name in ur localsystem?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- yes, inside&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Windows\System32\drivers\etc\hosts&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;12.how can u know size of array?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-The sizeof() function counts the elements of an array, or the properties of an object.&lt;br /&gt;&lt;br /&gt;This function is an alias of the count() function.&lt;br /&gt;$a = array(1,2,2,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(1,1));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo sizeof($a);// 4&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo sizeof($a[1]);// 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo sizeof($a[3]);// 2&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;13.Number of argument in a function,How can u know?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-func_num_args() function returns the number of parameters passed in.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;14.what is a session and how can u destroy it?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-A PHP session allowing you to store user information on the server for later use (i.e. username, shopping items, etc). However, session information is temporary and will be deleted after the user has left the website. If you need a permanent storage you may want to store the data in a database.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; we are using session_unset()(deprecated) or session_destroy() to destroy the session. session_unset() free the all session variables,but session continues whereas session_destroy() destroys the session.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;15.what is a cookies and how can u destroy it?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The setcookie() function is used to set a cookie.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $expire=time()+60*60*24*30;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie("user", "Alex Porter", $expire);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;The PHP $_COOKIE variable is used to retrieve a cookie value.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Print a cookie&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $_COOKIE["user"];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // A way to view all cookies&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print_r($_COOKIE);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;When deleting a cookie you should assure that the expiration date is in the past.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // set the expiration date to one hour ago&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie("user", "", time()-3600);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;16. how can u get current date and time?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- date('r');&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;17. how can u upload a image?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- we can upload a file by using the function move_uploaded_method() function.&lt;br /&gt;18. what is difference between get and post?&lt;br /&gt;&lt;br /&gt;ans-GET:- get method is default method.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; un secure way as data send through the url.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; we can send limited amount of data as url supports 255 characters.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POST:- not a default method, we have to mention it explicitly.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; its a secure way as data send through the body part.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; we can send unlimited amount of data.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;19. How can u et ip address of asystem?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- $_SERVER['SERVER_ADDR'];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $_SERVER['REMOTE_ADDR'];&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;20. What is magic function and what are they?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;21. What is Isset()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-isset() determines whether a certain variable has already been declared by PHP. It returns a boolean value true if the variable has already been set, and false otherwise, or if the variable is set to the value NULL.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;22. How can you submit a form without using submit buttom?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-Using javascript we can submit a form without using submmit button.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;OR&lt;br /&gt;&lt;br /&gt;If you don’t want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the URL of the link. For example:&lt;br /&gt;&lt;br /&gt;&lt;a document.myform.submit="" href="https://www.blogger.com/%E2%80%9Djavascript:"&gt;Submit Me&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;1&lt;/b&gt;&lt;b&gt;23. what is difference between require() and require_once()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-require() includes and evaluates a specific file while require_once() does that only if it has not been included before (on the same page).&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;124. what is difference between include() and include_once()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-include() includes and evaluates a specific file while include_once() does that only if it has not been included before (on the same page).&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;125. what is difference between include() and require()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- It’s how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;126. What is the difference between ereg_replace() and eregi_replace()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;127. what is oops?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-One of the main advantages of OO programming is its ease of modification; objects can easily be modified and added to a system there by reducing maintenance costs. OO programming is also considered to be better at modeling the real world than is procedural programming. It allows for more complicated and flexible interactions. OO systems are also easier for non-technical personnel to understand and easier for them to participate in the maintenance and enhancement of a system because it appeals to natural human cognition patterns. For some systems, an OO approach can speed development time since many objects are standard across systems and can be reused. Components that manage dates, shipping, shopping carts, etc. can be purchased and easily modified for a specific system.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;128. What in inheritance and how many types of inheritance are there in php?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;129. What in methodoverloading and polymerphism?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;130. What is methodoverriding?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;131. What is method overloading and over riding?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;132. What is Php encapsulation?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;133. What is abstarct method and abstarct class?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;134. What is final method and final class?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;135. What is Super concepts?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;136. What is constructor and destructor?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;137. what are the access specifier?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-The visibility of a property or method can be defined by prefixing the declaration with the keywords public, protected or private. Class members declared public can be accessed everywhere. Members declared protected can be accessed only within the class itself and by inherited and parent classes. Members declared as private may only be accessed by the class that defines the member.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;138. What is 'This' key word?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;139. what is coersion?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;140. What is interface?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;141. What is Exception handling?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;142. waht is wrapper calss?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;143. Give an example of Foreach;&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;144. what is split();?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- split is a function used for split the string by regular expression.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(":",$string);&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;145. What is abstraction in php?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;146. function to display money separator by comma?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;147. How can we send mail using JavaScript?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-No. There is no way to send emails directly using JavaScript.&lt;br /&gt;&lt;br /&gt;But you can use JavaScript to execute a client side email program send the email using the “mailto” code. Here is an example:&lt;br /&gt;&lt;br /&gt;{xtypo_code}&lt;br /&gt;function myfunction(form)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; tdata=document.myform.tbox1.value;&lt;br /&gt;&amp;nbsp;&amp;nbsp; location=”mailto: mailid@domain.com?subject=…”;&lt;br /&gt;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;}&lt;br /&gt;{/xtypo_code}&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;148.What is the difference between the functions unlink and unset?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-unlink() is a function for file system handling. It will simply delete the file in context.&lt;br /&gt;&lt;br /&gt;unset() is a function for variable management. It will make a variable undefined.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;149. what is difference between split() and explode()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- split()-split the string by regular expression.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; split(":",$string);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; explode()-split the string by string.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; explode("",$string);&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;150. How can you get browser informaion in php?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;151. what is difference between sinle qoute and double qoute?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;152. what is role of == and === ,when we compare array?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;153. what is CURL and its functionality?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;154. what is MIME?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-MIME is Multipurpose Internet Mail Extensions is an Internet standard for the format of e-mail. However browsers also uses MIME standard to transmit files. MIME has a header which is added to a beginning of the data. When browser sees such header it shows the data as it would be a file (for example image)&lt;br /&gt;&lt;br /&gt;Some examples of MIME types:&lt;br /&gt;&lt;br /&gt;audio/x-ms-wmp&lt;br /&gt;image/png&lt;br /&gt;aplication/x-shockwave-flash&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;OR&lt;br /&gt;&lt;br /&gt;Multipurpose Internet Mail Extensions.&lt;br /&gt;WWW’s ability to recognize and handle files of different types is largely dependent on the use of the MIME (Multipurpose Internet Mail Extensions) standard. The standard provides for a system of registration of file types with information about the applications needed to process them. This information is incorporated into Web server and browser software, and enables the automatic recognition and display of registered file types. …&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;155. what is difference between drop table and truncate table?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-DROP TABLE table_name – This will delete the table and its data.&lt;br /&gt;&lt;br /&gt;TRUNCATE TABLE table_name – This will delete the data of the table, but not the table definition.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;156. what is difference between unset and unlink?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;157. what is difference between __sleep and __wakeup()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-- __sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;158. what is difference between htmlenties and htmlspecialcharacter()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- htmlspecialchars only takes care of &amp;lt;, &amp;gt;, single quote ‘, double quote ” and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;159. Whar are the errors in php?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-Here are three basic types of runtime errors in PHP:&lt;br /&gt;&lt;br /&gt;1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script – for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all – although you can change this default behavior.&lt;br /&gt;&lt;br /&gt;2. Warnings: These are more serious errors – for example, attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.&lt;br /&gt;&lt;br /&gt;3. Fatal errors: These are critical errors – for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP’s default behavior is to display them to the user when they take place.&lt;br /&gt;&lt;br /&gt;Internally, these variations are represented by twelve different error types&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;160. Is object of a class pass by a refference?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- Everything is passed by value.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;161. What are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-mysql_fetch_array – Fetch a result row as an associative array and a numeric array.&lt;br /&gt;&lt;br /&gt;mysql_fetch_object – Returns an object with properties that correspond to the fetched row and moves the internal data pointer ahead. Returns an object with properties that correspond to the fetched row, or FALSE if there are no more rows&lt;br /&gt;&lt;br /&gt;mysql_fetch_row() – Fetches one row of data from the result associated with the specified result identifier. The row is returned as an array. Each result column is stored in an array offset, starting at offset 0.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;162. How can you know value of a current session id?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-session_id();&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;163. How can you find difference between two dates?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;164. how can u encrypt user name or passwors in php?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-using md5() we can encrypt username or password field in php.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;165. How many way you can get a date from mysql?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-SELECT CURDATE();&lt;br /&gt;SELECT CURRENT_DATE();&lt;br /&gt;SELECT CURTIME();&lt;br /&gt;SELECT CURRENT_TIME();&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;166. what is mysql engines and what are they?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;167. what is difference between myisam and innodb?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;168. what are the joins in mysql and what are they?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-Different types of joins are ----&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.JOIN(Inner Join): Return rows when there is at least one match in both tables&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.LEFT JOIN: Return all rows from the left table, even if there are no matches in the right table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.RIGHT JOIN: Return all rows from the right table, even if there are no matches in the left table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.FULL JOIN: Return rows when there is a match in one of the tables&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;169. what is normalisation ?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-The normalization process involves getting our data to conform to three progressive normal forms, and a higher level of normalization cannot be achieved until the previous levels have been achieved (there are actually five normal forms, but the last two are mainly academic and will not be discussed).&lt;br /&gt;&lt;br /&gt;First Normal Form&lt;br /&gt;The First Normal Form (or 1NF) involves removal of redundant data from horizontal rows. We want to ensure that there is no duplication of data in a given row, and that every column stores the least amount of information possible (making the field atomic).&lt;br /&gt;&lt;br /&gt;Second Normal Form&lt;br /&gt;Where the First Normal Form deals with redundancy of data across a horizontal row, Second Normal Form (or 2NF) deals with redundancy of data in vertical columns. As stated earlier, the normal forms are progressive, so to achieve Second Normal Form, your tables must already be in First Normal Form.&lt;br /&gt;&lt;br /&gt;Third Normal Form&lt;br /&gt;&lt;br /&gt;I have a confession to make; I do not often use Third Normal Form. In Third Normal Form we are looking for data in our tables that is not fully dependant on the primary key, but dependant on another value in the table&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;170. What is the maximum length of a table name, a database name, or a field name in MySQL?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- Database name: 64 characters&lt;br /&gt;Table name: 64 characters&lt;br /&gt;Column name: 64 characters&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;171. list of php CMS?&lt;/b&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;ans - Drupal, Joomla, PhpBB, Wordpress.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;172. list of frameworks in php ?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- Zend,CodeIgniter and CackePHP framework.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;173. Difference between CMS and Framework.&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-An application framework is something which we use to build our web application on, I mean we use the framework provided classes, events, methods and create an application.&lt;br /&gt;&lt;br /&gt;A CMS is already a developed application with a set of features, however most of them are coded in such a way that users can tweak them around and modify the code to fit their own needs.&lt;br /&gt;&lt;br /&gt;So a framework does not come with a working application, but a CMS comes with one.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;174. Http default port no.?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- 80&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;175. Http is stateless or stateful?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- stateless.&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;176. How to unset coockie?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- by setting the set cookie method in back date.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie(name,value,expire,path,domain,secure)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie("TestCookie",$value, time()+3600*24);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie ("TestCookie", "", time() - 3600);&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;177. what is the output ?&lt;/b&gt;&lt;/div&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$param = "value";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;$value = 10;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;print ${$param};// 10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;print $$param;// 10&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;print '$$param';// $$param&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&amp;gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;178. What is the function to upload a file?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans - move_uploaded_file();&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;179. Max execution time?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- 30sec.&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;180. Max uploading size?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- 2Mb&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;181. How session starts?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- session_start()&lt;br /&gt;82.What is ob_start()?&lt;br /&gt;&lt;br /&gt;ans-ob_start() function turn on the output buffering, while output buffering is active no output is sent from the script, other than header.&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;183. how to run php file from command prompt?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;184. Difference between session and cookie?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;185. What is stored procedure?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;186. What is the use of === ?&lt;/b&gt;&lt;/div&gt;
&lt;div style="color: red;"&gt;
&lt;b&gt;187. Use of static keyword?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-Declaring class properties or methods as static makes them accessible without needing an instantiation of the class.&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;188. Types of file format under mysql5-&amp;gt;data folder?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- There are three types of file format&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.frm&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.MYD&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.MYI&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;189. What are the new features added in PHP5 ?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- Addition features of PHP5-----&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.Visibility&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.Abstract&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.Final&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.Methods&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.Class&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.Magic methods or functions&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.Interface&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8.Cloning&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.Typehinting&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;190. What is AJAX ?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans-AJAX = Asynchronous JavaScript and XML.&lt;br /&gt;&lt;br /&gt;AJAX is a technique for creating fast and dynamic web pages.&lt;br /&gt;&lt;br /&gt;AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.&lt;br /&gt;&lt;br /&gt;AJAX applications are browser- and platform-independent!&lt;br /&gt;&lt;br /&gt;All modern browsers support the XMLHttpRequest object (IE5 and IE6 uses an ActiveXObject).&lt;br /&gt;&lt;br /&gt;The XMLHttpRequest object is used to exchange data with a server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.&lt;br /&gt;&lt;br /&gt;var xmlhttp;&lt;br /&gt;if (window.XMLHttpRequest)&lt;br /&gt;&amp;nbsp; {// code for IE7+, Firefox, Chrome, Opera, Safari&lt;br /&gt;&amp;nbsp; xmlhttp=new XMLHttpRequest();&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {// code for IE6, IE5&lt;br /&gt;&amp;nbsp; xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;To handle all modern browsers, including IE5 and IE6, check if the browser supports the XMLHttpRequest object. If it does, create an XMLHttpRequest object, if not, create an ActiveXObject&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To send a request to a server, we use the open() and send() methods of the XMLHttpRequest object:&lt;br /&gt;&lt;br /&gt;xmlhttp.open("GET","ajax_info.txt",true);&lt;br /&gt;xmlhttp.send();&lt;br /&gt;&lt;br /&gt;GET is simpler and faster than POST, and can be used in most cases.&lt;br /&gt;&lt;br /&gt;However, always use POST requests when:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * A cached file is not an option (update a file or database on the server)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Sending a large amount of data to the server (POST has no size limitations)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Sending user input (which can contain unknown characters), POST is more robust and secure than GET&lt;br /&gt;&lt;br /&gt;If you want to send information with the GET method, add the information to the URL:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;xmlhttp.open("GET","demo_get2.asp?fname=Henry&amp;amp;lname=Ford",true);&lt;br /&gt;xmlhttp.send();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To POST data like an HTML form, add an HTTP header with setRequestHeader(). Specify the data you want to send in the send() method:&lt;br /&gt;&lt;br /&gt;xmlhttp.open("POST","ajax_test.asp",true);&lt;br /&gt;xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");&lt;br /&gt;xmlhttp.send("fname=Henry&amp;amp;lname=Ford");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;setRequestHeader(header,value) -&amp;gt;Adds HTTP headers to the request.&lt;br /&gt;&lt;br /&gt;header: specifies the header name&lt;br /&gt;value: specifies the header value&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AJAX stands for Asynchronous JavaScript and XML, and for the XMLHttpRequest object to behave as AJAX, the async parameter of the open() method has to be set to true:&lt;br /&gt;&lt;br /&gt;xmlhttp.open("GET","ajax_test.asp",true);&lt;br /&gt;&lt;br /&gt;Sending asynchronously requests is a huge improvement for web developers. Many of the tasks performed on the server are very time consuming. Before AJAX, this operation could cause the application to hang or stop.&lt;br /&gt;&lt;br /&gt;With AJAX, the JavaScript does not have to wait for the server response, but can instead:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * execute other scripts while waiting for server response&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * deal with the response when the response ready&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Async=true&lt;br /&gt;&lt;br /&gt;When using async=true, specify a function to execute when the response is ready in the onreadystatechange event:&lt;br /&gt;&lt;br /&gt;xmlhttp.onreadystatechange=function()&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; if (xmlhttp.readyState==4 &amp;amp;&amp;amp; xmlhttp.status==200)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("myDiv").innerHTML=xmlhttp.responseText;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;xmlhttp.open("GET","ajax_info.txt",true);&lt;br /&gt;xmlhttp.send();&lt;br /&gt;&lt;br /&gt;Async=false&lt;br /&gt;&lt;br /&gt;To use async=false, change the third parameter in the open() method to false:&lt;br /&gt;&lt;br /&gt;Using async=false is not recommended, but for a few small requests this can be ok.&lt;br /&gt;&lt;br /&gt;Remember that the JavaScript will NOT continue to execute, until the server response is ready. If the server is busy or slow, the application will hang or stop.&lt;br /&gt;&lt;br /&gt;Note: When you use async=false, do NOT write an onreadystatechange function - just put the code after the send() statement:&lt;br /&gt;&lt;br /&gt;xmlhttp.open("GET","ajax_info.txt",false);&lt;br /&gt;xmlhttp.send();&lt;br /&gt;document.getElementById("myDiv").innerHTML=xmlhttp.responseText;&lt;br /&gt;&lt;br /&gt;The onreadystatechange event&lt;br /&gt;-------------------------------&lt;br /&gt;&lt;br /&gt;When a request to a server is sent, we want to perform some actions based on the response.&lt;br /&gt;&lt;br /&gt;The onreadystatechange event is triggered every time the readyState changes.&lt;br /&gt;&lt;br /&gt;The readyState property holds the status of the XMLHttpRequest.&lt;br /&gt;&lt;br /&gt;Three important properties of the XMLHttpRequest object:&lt;br /&gt;&lt;br /&gt;In the onreadystatechange event, we specify what will happen when the server response is ready to be processed.&lt;br /&gt;&lt;br /&gt;When readyState is 4 and status is 200, the response is ready:&lt;br /&gt;&lt;br /&gt;xmlhttp.onreadystatechange=function()&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; if (xmlhttp.readyState==4 &amp;amp;&amp;amp; xmlhttp.status==200)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("myDiv").innerHTML=xmlhttp.responseText;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if (window.XMLHttpRequest)&lt;br /&gt;&amp;nbsp; {// code for IE7+, Firefox, Chrome, Opera, Safari&lt;br /&gt;&amp;nbsp; xmlhttp=new XMLHttpRequest();&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {// code for IE6, IE5&lt;br /&gt;&amp;nbsp; xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;xmlhttp.onreadystatechange=function()&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; if (xmlhttp.readyState==4 &amp;amp;&amp;amp; xmlhttp.status==200)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("txtHint").innerHTML=xmlhttp.responseText;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;xmlhttp.open("GET","gethint.php?q="+str,true);&lt;br /&gt;xmlhttp.send();&lt;br /&gt;&lt;br /&gt;91. What is main strength of Ajax ?&lt;br /&gt;&lt;br /&gt;ans- AJAX does not refresh or reload the whole page as because Ajax uses asynchronous technology.&lt;br /&gt;In a word, a program does not wait for response after requesting an asynchronous call whereas synchronous does so.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;192. How session works?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- Nearly every PHP application uses sessions. This article takes a detailed look at implementing a secure session management mechanism with PHP. Following a fundamental introduction to HTTP, the challenge of maintaining state, and the basic operation of cookies, I will step through simple and effective methods that can be used to increase the security and reliability of your stateful PHP applications.&lt;br /&gt;&lt;br /&gt;It is a common misconception that PHP provides a certain level of security with its native session management features. On the contrary, PHP simply provides a convenient mechanism. It is up to the developer to provide the complete solution, and as you will see, there is no one solution that is best for everyone.&lt;br /&gt;&lt;br /&gt;Statelessness&lt;br /&gt;HTTP is a stateless protocol. This is because there is nothing within the protocol that requires the browser to identify itself during each request, and there is also no established connection between the browser and the web server that persists from one page to the next. When a user visits a web site, the user's browser sends an HTTP request to the web server, which in turn sends an HTTP response in reply. This is the extent of the communication, and it represents a complete HTTP transaction.&lt;br /&gt;&lt;br /&gt;Because the web relies on HTTP for communication, maintaining state in a web application can be particularly challenging for developers. Cookies are an extension of HTTP that were introduced to help provide stateful HTTP transactions, but privacy concerns have prompted many users to disable support for cookies. State information can be passed in the URL, but accidental disclosure of this information poses serious security risks. In fact, the very nature of maintaining state requires that the client identify itself, yet the security-conscious among us know that we should never trust information sent by the client.&lt;br /&gt;&lt;br /&gt;Despite all of this, there are elegant solutions to the problem of maintaining state. There is no perfect solution, of course, nor is there one solution that can satisfy everyone's needs. This article introduces some techniques that can reliably provide statefulness as well as defend against session-based attacks such as session hijacking. Along the way, you will learn how cookies really work, what PHP sessions do, and what is required to hijack a session.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;193.What is interface?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- PHP does not support multiple inheritance directly, to implement this we need Interface. It is much similar to Interface of Java.&lt;br /&gt;&lt;br /&gt;In PHP, signature of the method are declared in the Interface body, and the body part of the method is implemented in derived class. Variables are declared as constant and it can not be changed in the child classes.&lt;br /&gt;&lt;br /&gt;We use implement keyword to extend this kind of class, at the same time we can implement more than one interface and one interface can be implemented by another interface.&lt;br /&gt;&lt;br /&gt;All methods declared in an interface must be public and the variables should be constant.&lt;br /&gt;&lt;br /&gt;This is mandatory that we must declare the body part of the method in the derived class otherwise an error message will be generated.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;interface Inter{&lt;br /&gt;&lt;br /&gt;const a="This is constant value";&lt;br /&gt;&lt;br /&gt;public function disp(); }&lt;br /&gt;&lt;br /&gt;class A implements Inter{&lt;br /&gt;&lt;br /&gt;function show(){&lt;br /&gt;&lt;br /&gt;echo self::a."&lt;br /&gt;";}&lt;br /&gt;&lt;br /&gt;public function disp(){&lt;br /&gt;&lt;br /&gt;echo "Inside the disp function";}}&lt;br /&gt;&lt;br /&gt;$a=new A();&lt;br /&gt;&lt;br /&gt;$a-&amp;gt;show();&lt;br /&gt;&lt;br /&gt;$a-&amp;gt;disp();&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;This is constant value&lt;br /&gt;Inside the disp function&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;
&lt;b&gt;194. Difference between Http and Ftp ?&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;ans- 1&lt;br /&gt;FTP stands for File Transfer Protocol.&lt;br /&gt;HTTP stands for Hyper Text Transfer Protocol&lt;br /&gt;2&lt;br /&gt;FTP, is a protocol used to upload files from a workstation to a FTP server or download files from a FTP server to a workstation.&lt;br /&gt;HTTP, is a protocol used to transfer files from a Web server onto a browser in order to view a Web page that is on the Internet.&lt;br /&gt;3&lt;br /&gt;When ftp appears in a URL it means that the user is connecting to a file server and not a Web server and that some form of file transfer is going to take place.&lt;br /&gt;When http appears in a URL it means that the user is connecting to a Web server and not a file server. The files are transferred but not downloaded, therefore not copied into the memory of the receiving device.&lt;br /&gt;4&lt;br /&gt;FTP is a two-way system as files are transferred back and forth between server and workstation.&lt;br /&gt;HTTP is a one-way system as files are transported only from the server onto the workstation's browser.&lt;br /&gt;5&lt;br /&gt;FTP, where entire files are transferred from one device to another and copied into memory,&lt;br /&gt;HTTP only transfers the contents of a web page into a browser for viewing.&lt;br /&gt;6&lt;br /&gt;FTP file uploaded is used in cases when the file size is more than 70 MB&lt;br /&gt;HTTP upload is used for smaller files.&lt;br /&gt;7&lt;br /&gt;FTP uses an FTP client server and an FTP client.&lt;br /&gt;HTTP is used for all web [ages i.e. it is the standard protocol to transmit hyperlinked documents and files. It is often used in conjunction with HTML.&lt;br /&gt;8&lt;br /&gt;FTP was the original non-GUI file transfer program and could be run from a command line interface like MS-DOS.&lt;br /&gt;HTTP is associated with a browser file transfer program like Internet Explorer.&lt;/td&gt;&lt;/tr&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Amulyam site review</title><link>http://krisnamohan.blogspot.com/2013/08/amulyam-site-review.html</link><category>amulyam</category><category>free recharge</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 14 Aug 2013 05:34:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-7798133515470392928</guid><description>
Good website to try and have fun too but it is having bad reputation of spamming. Amulyam is the best free mobile recharge site,It gives Rs. 1 per friend,now see its so easy to get a free recharge of Rs50 within an hour,if you have friends on Facebook then just post your referral link and if just 25 friends join you can get Rs.50 recharge!

check the link for sign up: &lt;a href="http://www.amulyam.in/signup.do?id=3b35c7f0-715d-4cfa-90ad-b5ea2cb89d35" target="_blank"&gt;http://www.amulyam.in/signup.do?id=3b35c7f0-715d-4cfa-90ad-b5ea2cb89d35&lt;/a&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Eva  Free Phone Calling</title><link>http://krisnamohan.blogspot.com/2010/09/eva-free-phone-calling.html</link><category>eva</category><category>eva phone</category><category>free calling</category><category>free calls</category><category>free calls to india</category><category>free phone</category><category>india</category><category>UK</category><category>Us</category><category>world calling</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 28 Sep 2010 07:44:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-1457538255878900571</guid><description>&lt;object type="application/x-shockwave-flash" data="http://evaphone.com/FreeCall-en_US.swf" wmode="opaque" scale="noscale" width="670" height="360"&gt;
&lt;param name="flashvars" value="memberMode=false&amp;amp;enableFreeCalls=true&amp;amp;bgcolor=0xFFFFFF"&gt;
&lt;param name="wmode" value="opaque"&gt;
&lt;param name="scale" value="noscale"&gt;
&lt;param name="bgcolor" value="#ffffff"&gt;
&lt;param name="allowScriptAccess" value="always"&gt;
&lt;!--&lt;![endif]--&gt;
&lt;p&gt;Alternative content&lt;/p&gt;

&lt;!--[if !IE]&gt;--&gt;
&lt;/object&gt;&lt;br /&gt;
&lt;br /&gt;
EvaPhone provides Internet telephone calls for free. Our site offers free VoIP call solutions: free VoIP service lets you make PC-to-phone free international calls. All you need is a computer to start making free VoIP calls using Internet to phone. Start enjoying the benefits of Internet telephony right now!</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Perl Regular Expressions</title><link>http://krisnamohan.blogspot.com/2010/09/expressions.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 27 Sep 2010 03:19:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-7078453016871156541</guid><description>Regular expression to match only for any type of symbols.
&lt;br /&gt;
&lt;br /&gt;I'm going to write a simple regex that will validate whether the provided string contains only symbols or not. No alphabet or numbers or spaces are allowed. Giving the expression using Perl, but it will work with any programming language as long as it PCRE.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;my $str = "^%^";
&lt;br /&gt;if( $str =~ /^[!-\/:-@\[-`\{-~]+$/ ){
&lt;br /&gt;    print "String contains only symbols.\n";
&lt;br /&gt;}
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;So the actual regex is ^[!-\/:-@\[-`\{-~]+$
&lt;br /&gt;Posted by Demon at 1:07 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl, php
&lt;br /&gt;Thursday, December 3, 2009
&lt;br /&gt;Regular expression to validate clock time
&lt;br /&gt;
&lt;br /&gt;To validate time from 00:00 to 11:59 you can use a simple regex.
&lt;br /&gt;
&lt;br /&gt;The regex is (?:0[0-9]|1[0-1]):[0-5][0-9]
&lt;br /&gt;It means if the first digit of hour is 0, then second digit can be any one from 0-9.
&lt;br /&gt;Otherwise if the first digit is 1, that case second digit can only be 1 or 2.
&lt;br /&gt;
&lt;br /&gt;For minute section, first digit can be only from 0-5, and second digit can be from 0-9.
&lt;br /&gt;
&lt;br /&gt;I'm giving you the example using a perl code, but the regex will work with any PCRE compatible engine.
&lt;br /&gt;
&lt;br /&gt;Using Perl
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;my $time = "01:19";
&lt;br /&gt;if($time =~ /(?:0[0-9]|1[0-1]):[0-5][0-9]/){
&lt;br /&gt;    print "the time is valid\n";
&lt;br /&gt;}
&lt;br /&gt;else{
&lt;br /&gt;    print "the time is not valid\n";
&lt;br /&gt;}
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Simple task, but yet too hard if you don't this :-)
&lt;br /&gt;Posted by Demon at 11:25 AM 1 comments Links to this post
&lt;br /&gt;Labels: perl, php
&lt;br /&gt;Friday, November 13, 2009
&lt;br /&gt;Perl: What is the equivalent of Ceil()
&lt;br /&gt;
&lt;br /&gt;Question: At Perl, what is the equivalent function of Ceil? Or how can I perform Ceil on a number like other languages.
&lt;br /&gt;
&lt;br /&gt;Answer: So far, I don't know any function to serve this issue. But if I need, I use sprintf() combined with floating. Below example will show you what exactly I mean for.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;my $number = 10.51;
&lt;br /&gt;$number = sprintf("%.0f", $number);
&lt;br /&gt;print $number;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The above code will output 11, which is the exact ceiling of 10.51.
&lt;br /&gt;Posted by Demon at 7:23 AM 2 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Perl: What is the equivalent to floor()
&lt;br /&gt;
&lt;br /&gt;Question: What is the equivalent of function floor() at Perl?
&lt;br /&gt;
&lt;br /&gt;Answer: Simple answer is to use int() function. This will just remove the decimal portion from the provided number. Example code using int() to serve like floor is,
&lt;br /&gt;
&lt;br /&gt;print int(10.9);
&lt;br /&gt;
&lt;br /&gt;Posted by Demon at 7:18 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Wednesday, August 5, 2009
&lt;br /&gt;Sql Injection and how to prevent this.
&lt;br /&gt;
&lt;br /&gt;Its one of the dangerous hole to your site which will allow any unwanted guest access your database or control panel. Last few weeks I was working with SQL injecting, and found lots of websites from the worldwide which are welcoming the hackers to use their unknown hole of website.
&lt;br /&gt;
&lt;br /&gt;I'm not that much expert on website coding. You can say I don't work with database. So I don't know much about this stuff. But one thing I learned is, just validate every singe GET or POST parameter from your website script.
&lt;br /&gt;
&lt;br /&gt;Don't trust anyone. Just validate, and check whether its having the format you need or not. If you don't know how to validate your GET/POST parameters, not to worry. Just replace any single quote(') with anything. Don't let this shit to pass.
&lt;br /&gt;
&lt;br /&gt;Or you can use adding slashes types of function depending upon language, to get rid of it. At least it will save your ass for few. But there might be many other ways to find hole. I only know single quoting.
&lt;br /&gt;
&lt;br /&gt;Once again, try to go for validation, even for numbers.
&lt;br /&gt;Posted by Demon at 12:23 PM 0 comments Links to this post
&lt;br /&gt;Labels: C/C++, java, javascript, perl, php, python, ruby
&lt;br /&gt;Perl: Swap string value using s///
&lt;br /&gt;
&lt;br /&gt;This a funny way to swap two values from a string using perl's s///. This will only work if the two words contain exactly one times inside string. I was just wondering about it, and think to add here for all.
&lt;br /&gt;
&lt;br /&gt;Let say you have a string, and you want to swap the words "demo" and "test" with each other. So the simple code will be as below.
&lt;br /&gt;
&lt;br /&gt;## initial string to swap
&lt;br /&gt;my $string = "test string and demo string";
&lt;br /&gt;## swaping test with demo
&lt;br /&gt;$string =~ s/(test)(.*?)(demo)/$3$2$1/;
&lt;br /&gt;print "$string\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Inside the regex you'll need to change the position of test and demo depending upon the position from original string. And remember this will work only if both string exist only once. For multiple I didn't check, So don't know.
&lt;br /&gt;
&lt;br /&gt;Once again, its a funny stuff, but may come helpful for somebody. Don't forget to add a comment if anyone find such.
&lt;br /&gt;Posted by Demon at 11:10 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Sunday, August 2, 2009
&lt;br /&gt;Perl: Various ways to read a file
&lt;br /&gt;
&lt;br /&gt;There is only one way to open or close a file usine open() close() function. You'll find lots of cpan modules which will help you to read file, but internally all the modules are using these to functions to open and close files. I'm showing you how can you read a file into array, or string, or anything else. Just few coding helps regarding file operation.
&lt;br /&gt;
&lt;br /&gt;1) Read the whole file content into an array directly.
&lt;br /&gt;
&lt;br /&gt;open(INFILE, "&lt;input.txt"); ## open file handler
&lt;br /&gt;my @lines = &lt;INFILE&gt;;       ## read into array
&lt;br /&gt;close(INFILE);              ## close handler
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This code will read all the contents from input.txt, and will load into array @lines directly. Later on, you can do whatever operation you need. You have the file on your hand.
&lt;br /&gt;
&lt;br /&gt;2) Read a single line from your input file.
&lt;br /&gt;
&lt;br /&gt;open(INFILE, "&lt;input.txt"); ## open file handler
&lt;br /&gt;my $line = &lt;INFILE&gt;;        ## read a single line
&lt;br /&gt;close(INFILE);              ## close handler
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Perl interpreter is intelligent enough to understand your need. Since you provided a scalar to file handler, it will return you the current line that the file handler pointing. This case it will return you only the first line.
&lt;br /&gt;
&lt;br /&gt;3) Using a loop, say while(), process each line while reading without using any array.
&lt;br /&gt;
&lt;br /&gt;open(INFILE, "&lt;input.txt"); ## open file handler
&lt;br /&gt;while(&lt;INFILE&gt;){
&lt;br /&gt;    # current line at the variable $_
&lt;br /&gt;    ## process here
&lt;br /&gt;}
&lt;br /&gt;close(INFILE);              ## close handler
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;If you don't want to use the default $_ variable, that case you can use this loop.
&lt;br /&gt;
&lt;br /&gt;while (my $line = &lt;INFILE&gt;){
&lt;br /&gt;    print $line;
&lt;br /&gt;}
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;4) Read the whole file content into a string instead of array. I used to use join() function to do this.
&lt;br /&gt;
&lt;br /&gt;open(INFILE, "&lt;input.txt"); ## open file handler
&lt;br /&gt;my $file_content = join('', &lt;INFILE&gt;);
&lt;br /&gt;close(INFILE);              ## close handler
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This join function just take the whole file as array, and join each line from the array. A bit tricky, but nothing else.
&lt;br /&gt;
&lt;br /&gt;I think this will cover what you need when you'll do some file operation at perl scripting.
&lt;br /&gt;Posted by Demon at 12:35 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Friday, July 24, 2009
&lt;br /&gt;Perl: Explanation of your regular expression
&lt;br /&gt;
&lt;br /&gt;Perl CPAN has a module called "YAPE::Regex::Explain" which will help you to understand what is a perl regular expression doing.
&lt;br /&gt;
&lt;br /&gt;Lets say you have a Regex [Za-z0-9]+ Here is the sample code if you want to get the explanation of your regex.
&lt;br /&gt;
&lt;br /&gt;use YAPE::Regex::Explain;
&lt;br /&gt;print YAPE::Regex::Explain-&gt;new('[A-Za-z0-9]+')-&gt;explain;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This simple code will output as below on your screen, and which is easily understandable to get what is going on.
&lt;br /&gt;
&lt;br /&gt;The regular expression:
&lt;br /&gt;
&lt;br /&gt;(?-imsx:[A-Za-z0-9]+)
&lt;br /&gt;
&lt;br /&gt;matches as follows:
&lt;br /&gt;  
&lt;br /&gt;NODE                     EXPLANATION
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;(?-imsx:                 group, but do not capture (case-sensitive)
&lt;br /&gt;                         (with ^ and $ matching normally) (with . not
&lt;br /&gt;                         matching \n) (matching whitespace and #
&lt;br /&gt;                         normally):
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;  [A-Za-z0-9]+             any character of: 'A' to 'Z', 'a' to 'z',
&lt;br /&gt;                           '0' to '9' (1 or more times (matching the
&lt;br /&gt;                           most amount possible))
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;)                        end of grouping
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Lets try with a bit complex regular expression ST[^;]*(?:[A-Za-z0-9]+|[\.,\s]+)ET
&lt;br /&gt;
&lt;br /&gt;The code for explaining for REGEX will be,
&lt;br /&gt;
&lt;br /&gt;use YAPE::Regex::Explain;
&lt;br /&gt;print YAPE::Regex::Explain-&gt;new('ST[^;]*(?:[A-Za-z0-9]+|[\.,\s]+)ET')-&gt;explain;
&lt;br /&gt;
&lt;br /&gt;Output is as below, and which is damn understandable.
&lt;br /&gt;
&lt;br /&gt;The regular expression:
&lt;br /&gt;
&lt;br /&gt;(?-imsx:ST[^;]*(?:[A-Za-z0-9]+|[\.,\s]+)ET)
&lt;br /&gt;
&lt;br /&gt;matches as follows:
&lt;br /&gt;  
&lt;br /&gt;NODE                     EXPLANATION
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;(?-imsx:                 group, but do not capture (case-sensitive)
&lt;br /&gt;                         (with ^ and $ matching normally) (with . not
&lt;br /&gt;                         matching \n) (matching whitespace and #
&lt;br /&gt;                         normally):
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;  ST                       'ST'
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;  [^;]*                    any character except: ';' (0 or more times
&lt;br /&gt;                           (matching the most amount possible))
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;  (?:                      group, but do not capture:
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;    [A-Za-z0-9]+             any character of: 'A' to 'Z', 'a' to
&lt;br /&gt;                             'z', '0' to '9' (1 or more times
&lt;br /&gt;                             (matching the most amount possible))
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;   |                        OR
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;    [\.,\s]+                 any character of: '\.', ',', whitespace
&lt;br /&gt;                             (\n, \r, \t, \f, and " ") (1 or more
&lt;br /&gt;                             times (matching the most amount
&lt;br /&gt;                             possible))
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;  )                        end of grouping
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;  ET                       'ET'
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;)                        end of grouping
&lt;br /&gt;----------------------------------------------------------------------
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Running the code from Command Line:
&lt;br /&gt;
&lt;br /&gt;If you don't like to write a code for this, you can do it from your command line. Just one liner perl script. For above expression the code will be as below.
&lt;br /&gt;
&lt;br /&gt;perl -MYAPE::Regex::Explain -e "print YAPE::Regex::Explain-&gt;new('ST[^;]*(?:[A-Za-z0-9]+|[\.,\s]+)ET')-&gt;explain;"
&lt;br /&gt;
&lt;br /&gt;How to install the module:
&lt;br /&gt;
&lt;br /&gt;To install the module from your command prompt,
&lt;br /&gt;ppm install YAPE::Regex::Explain
&lt;br /&gt;
&lt;br /&gt;And then type
&lt;br /&gt;ppm install YAPE::Regex
&lt;br /&gt;
&lt;br /&gt;This installation can be done using cpan too.
&lt;br /&gt;Posted by Demon at 6:39 AM 2 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Friday, July 10, 2009
&lt;br /&gt;Perl: Http::Cookies not saving cookie correctly
&lt;br /&gt;
&lt;br /&gt;The below code for saving the http cookie after requesting some data over http is not working!!! Did you face this kind of problem anyway?
&lt;br /&gt;
&lt;br /&gt;$cookie_jar-&gt;save()
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;For example the server sent you 4 cookies. But your cookie_jar is only saving the 2 of them, and rest of the two are ignored. Do you know the reason behind this?
&lt;br /&gt;
&lt;br /&gt;It's not a bug of http cookies of perl, or lwp. Just lack of knowing the issue. Initially I thought it was a bug. The rest of the two cookies are session cookie. And it will die when you'll close your browser( this case your LWP ). That's why Http::Cookies is not saving the cookie on your file. Here is what it was said on the docs of HTTP::Cookies,
&lt;br /&gt;
&lt;br /&gt;    $cookie_jar-&gt;save
&lt;br /&gt;    $cookie_jar-&gt;save( $file )
&lt;br /&gt;
&lt;br /&gt;    This method file saves the state of the $cookie_jar to a file. The state can then be restored later using the load() method. If a filename is not specified we will use the name specified during construction. If the attribute ignore_discard is set, then we will even save cookies that are marked to be discarded.
&lt;br /&gt;
&lt;br /&gt;    The default is to save a sequence of "Set-Cookie3" lines. "Set-Cookie3" is a proprietary LWP format, not known to be compatible with any browser. The HTTP::Cookies::Netscape sub-class can be used to save in a format compatible with Netscape.
&lt;br /&gt;
&lt;br /&gt;HTTP::Cookies
&lt;br /&gt;
&lt;br /&gt;So, this means you have to notify the cookie_jar to save your session cookie too. To do this you have to do as below.
&lt;br /&gt;
&lt;br /&gt;$cookie_jar = HTTP::Cookies-&gt;new(
&lt;br /&gt;    file =&gt; "cookie.txt",
&lt;br /&gt;    ignore_discard =&gt; 1,
&lt;br /&gt;  );
&lt;br /&gt;  
&lt;br /&gt;$cookie_jar = HTTP::Cookies-&gt;new(
&lt;br /&gt;    ignore_discard =&gt; 1,
&lt;br /&gt;  );
&lt;br /&gt;
&lt;br /&gt;Posted by Demon at 11:38 PM 2 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Saturday, June 27, 2009
&lt;br /&gt;Perl: Left padding an integer using sprintf
&lt;br /&gt;
&lt;br /&gt;Using the function sprintf() of Perl, you can easily left pad any given integer number easily. The sprintf() function is similar to use like other programming languages. I'm giving an example of showing a given integer number with 5 field, where left sides will filled with zeros if any.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;my $integer = 10;
&lt;br /&gt;$integer = sprintf("%05d", $integer);
&lt;br /&gt;print "$integer\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Just a simple left padding.
&lt;br /&gt;Posted by Demon at 10:05 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Thursday, June 18, 2009
&lt;br /&gt;Perl: how to get position of a certain character in a string
&lt;br /&gt;
&lt;br /&gt;There is a function called strpos() at php for this, and if you are looking for the similar function support at perl, then you have index() at Perl.
&lt;br /&gt;
&lt;br /&gt;The index() function takes string and search string as parameter. Here is the example code.
&lt;br /&gt;
&lt;br /&gt;$string = "tester of the world";
&lt;br /&gt;$search_string = "r";
&lt;br /&gt;print index($string, $search_string);
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This will output 5, as 5 is the first occurrence or search string from the provided string. You can use character, or string as search. And remember the index starts from 0. At above example r is at the 5th index.
&lt;br /&gt;Posted by Demon at 12:00 PM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Tuesday, June 9, 2009
&lt;br /&gt;Perl Number formating using Regexp
&lt;br /&gt;
&lt;br /&gt;Using a single regex you can easily convert a number like 1234567890 into 1,234,567,890. I don't what this call, that's why I was put the title is number formatting. Here goes the regular expression with example.
&lt;br /&gt;
&lt;br /&gt;my $number = 1234567890;
&lt;br /&gt;$number =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g;
&lt;br /&gt;print $number;
&lt;br /&gt;
&lt;br /&gt;Output : 1,234,567,890
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The above regex just takes the digits from last, or three digits just before the comma, and if another extra digit exist without those three, it just push a comma inside. This will make one digit goes to left side, and other three digits goes to right side.
&lt;br /&gt;
&lt;br /&gt;Just a simple regexp made your life easier to do such kind of conversion.
&lt;br /&gt;Posted by Demon at 10:59 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Sunday, May 31, 2009
&lt;br /&gt;Remove the words having special characters from a string
&lt;br /&gt;
&lt;br /&gt;Lets learn how to remove the words from a string which contains the special characters. I mean the word having non-English characters. Consider the below example.
&lt;br /&gt;asdasd óadsa, xxxÂr 123, asda koskso øppp iø1 asdakjd*ads8
&lt;br /&gt;
&lt;br /&gt;You can see several words from the above contains special/non-english character on them. I'll write a regex that will remove those kind of words from the sentence above.
&lt;br /&gt;
&lt;br /&gt;A PHP code:
&lt;br /&gt;
&lt;br /&gt;$string = "asdasd óadsa, xxxÂr 123, asda koskso øppp iø1 asdakjd*ads8";
&lt;br /&gt;$string = preg_replace('/\S*[^a-z0-9A-Z\s,\.]+\S*/', '', $string);
&lt;br /&gt;print "$string\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Output: asdasd 123, asda koskso
&lt;br /&gt;
&lt;br /&gt;A Perl code:
&lt;br /&gt;
&lt;br /&gt;$string = "asdasd óadsa, xxxÂr 123, asda koskso øppp iø1 asdakjd*ads8";
&lt;br /&gt;$string =~ s/\S*[^a-z0-9A-Z\s,\.]+\S*//g;
&lt;br /&gt;print "$string\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Output: asdasd 123, asda koskso
&lt;br /&gt;
&lt;br /&gt;You can use trim on the string, or replace multiple spaces with single one after that. Also you can add other characters like dot, comma inside the regex to distinguish the word.
&lt;br /&gt;
&lt;br /&gt;Cheers!!!
&lt;br /&gt;Posted by Demon at 9:24 AM 1 comments Links to this post
&lt;br /&gt;Labels: perl, php
&lt;br /&gt;Saturday, May 30, 2009
&lt;br /&gt;Conditional Log filtering for your apache
&lt;br /&gt;
&lt;br /&gt;At my website I found that there were lots of log entry at my access_log for GIF images. I wanted to find a way so that there will be no entry at my access_log for GIF images. I found the way, and here is how you need to filter your log entry for GIF images.
&lt;br /&gt;
&lt;br /&gt;SetEnvIf Request_URI \.GIF$ no-log
&lt;br /&gt;CustomLog log/access.log combined env =! no-log
&lt;br /&gt;
&lt;br /&gt;This will help you to prevent writing any entry at your log file. If you want to add more file types at your filtering condition, you can use them using pipe(|). For example below.
&lt;br /&gt;
&lt;br /&gt;SetEnvIf Request_URI "\.(PNG|png|gif|GIF)$" no-log
&lt;br /&gt;CustomLog log/access.log combined env =! no-log
&lt;br /&gt;
&lt;br /&gt;But for anything, make sure that you have setenvif module is loaded. To check this you can use either httpd -M or apache2 -M depending upon your system.
&lt;br /&gt;
&lt;br /&gt;Hope this little information will help you to setup custom logging for your apache.
&lt;br /&gt;Posted by Demon at 7:26 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl, php
&lt;br /&gt;Thursday, May 28, 2009
&lt;br /&gt;Perl : Get Number of elements from hash
&lt;br /&gt;
&lt;br /&gt;How to get the number of elements a Perl hash holding?
&lt;br /&gt;
&lt;br /&gt;Using the keys() function of Perl, you can easily get the count. The function used to return all the keys from the hash as array. But if you use a SCALAR variable, that case it will return you the element count from the hash.
&lt;br /&gt;
&lt;br /&gt;my %hash = (red =&gt; 1, blue =&gt; 2, green =&gt; 3);
&lt;br /&gt;my $count = keys(%hash); ## Scalar requested.
&lt;br /&gt;print $count;
&lt;br /&gt;
&lt;br /&gt;Is there any other method to get the elements count from a Perl hash? I mean not using a loop.
&lt;br /&gt;Posted by Demon at 7:43 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Wednesday, May 20, 2009
&lt;br /&gt;perl: get IP address of your website user
&lt;br /&gt;
&lt;br /&gt;From your Perl/CGI script, you can easily get the remote IP address of the user who is browsing your website. I'm providing a tiny code that will simply print out the IP address of the user.
&lt;br /&gt;
&lt;br /&gt;use CGI; ## load the cgi module
&lt;br /&gt;
&lt;br /&gt;print "Content-type: text/plain; charset=iso-8859-1\n\n";
&lt;br /&gt;my $q = new CGI; ## create a CGI object
&lt;br /&gt;print $q-&gt;remote_host(); ## print the user ip address
&lt;br /&gt;
&lt;br /&gt;The output will be the simply the IP address of the user who will browse the page. You'll find more about the CGI module of Perl at http://perldoc.perl.org/CGI.html
&lt;br /&gt;Posted by Demon at 10:22 AM 1 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Tuesday, May 5, 2009
&lt;br /&gt;Perl: print last element from array
&lt;br /&gt;
&lt;br /&gt;We know an array needs to access with positive integer. But scripting language like Perl, you can access it using Negative number. A negative number means from last. If you use -5, it will give you the 5th element from the array from last. Remember, for negative index, the index start from 1. Means -1 = last index, -2 = second last, and so on.
&lt;br /&gt;
&lt;br /&gt;This example will help you to understand much more clearly.
&lt;br /&gt;
&lt;br /&gt;## initial array
&lt;br /&gt;my @array = qw(1 2 3 4 5 6 7 8 9 10);
&lt;br /&gt;
&lt;br /&gt;## print last element from array
&lt;br /&gt;print $array[-1] , "\n";
&lt;br /&gt;
&lt;br /&gt;## print second last element from array
&lt;br /&gt;print $array[-2] , "\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;At above example, there are 10 elements. if you provide a negative number which is greater than the total number of elements, you'll get error Use of uninitialized value in print at temp.pl line 2., for example the below code will generate such error.
&lt;br /&gt;
&lt;br /&gt;print $array[-11] , "\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The reason is the array doesn't have 11 elements in total.
&lt;br /&gt;Posted by Demon at 8:14 AM 0 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Perl: Convert HEX string into character string
&lt;br /&gt;
&lt;br /&gt;At my last post http://icfun.blogspot.com/2009/05/perl-convert-character-string-into-hex.html I've mentioned about character string conversion into HEX string.
&lt;br /&gt;
&lt;br /&gt;Now, its time to do the reverse task. You'll be given a Hex string, and you'll need to convert it into character string. The idea will be similar as last one. Just need to pick-up two hex digit each time, and convert them into character code. Below is the code.
&lt;br /&gt;
&lt;br /&gt;## Initial hex
&lt;br /&gt;$string = "6162636465666a68696a6b6c6d6e6f707172737475767778";
&lt;br /&gt;## upper/lower case won't be a problem
&lt;br /&gt;# $string = "6162636465666A68696A6B6C6D6E6F707172737475767778";
&lt;br /&gt;
&lt;br /&gt;## convert each two digit into char code
&lt;br /&gt;$string =~ s/([a-fA-F0-9][a-fA-F0-9])/chr(hex($1))/eg;
&lt;br /&gt;
&lt;br /&gt;print "$string\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;This time using hex() function I have converted the hex code into integer number, and then using chr() function, I have converted the ascii number into it's character code.
&lt;br /&gt;Posted by Demon at 7:46 AM 3 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Perl: Convert character string into HEX string
&lt;br /&gt;
&lt;br /&gt;Lets learn about converting a character string into a HEX string. For example you have a string "abcd", it will convert it into HEX string as "61626364". Means just take each character from the string, and get its ascii code, and convert it into HEX.
&lt;br /&gt;
&lt;br /&gt;I'm using regular expression (REGEX) to do this conversion. Below is the code.
&lt;br /&gt;
&lt;br /&gt;## Initial string
&lt;br /&gt;$string = "abcdefjhijklmnopqrstuvwx";
&lt;br /&gt;
&lt;br /&gt;## convert each character from the string into HEX code
&lt;br /&gt;$string =~ s/(.)/sprintf("%x",ord($1))/eg;
&lt;br /&gt;
&lt;br /&gt;print "$string\n";
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The above code will convert the provided string string into it's corresponding HEX code. Using regex i'm picking up the each character from the string, and get the ascii code using ord() function. Then using sprintf() I've just printed as HEX code.
&lt;br /&gt;
&lt;br /&gt;If you want the output as UPPERCASE, you'll just need to make %x into %X inside your sprintf() function.
&lt;br /&gt;
&lt;br /&gt;$string =~ s/(.)/sprintf("%X",ord($1))/eg;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The output will be as below for Lowercase, and Upper case:
&lt;br /&gt;
&lt;br /&gt;6162636465666a68696a6b6c6d6e6f707172737475767778
&lt;br /&gt;6162636465666A68696A6B6C6D6E6F707172737475767778
&lt;br /&gt;
&lt;br /&gt;The reverse one is at http://icfun.blogspot.com/2009/05/perl-convert-hex-string-into-character.html
&lt;br /&gt;Posted by Demon at 7:38 AM 3 comments Links to this post
&lt;br /&gt;Labels: perl
&lt;br /&gt;Thursday, April 30, 2009
&lt;br /&gt;Get the N-th Bit value of any Integer number
&lt;br /&gt;
&lt;br /&gt;Once again bitwise operations guys. This time we'll know about finding the nth bit value of any 31 bit positive integer number. For example you have a number 120, and you want to get the 7th bit of the number. Here is a function in C/C++ code. But you can convert the code into Perl/Python/Java/PHP/Ruby or whatever you want. The basic is the same.
&lt;br /&gt;
&lt;br /&gt;The bit position are start from left to right.
&lt;br /&gt;
&lt;br /&gt;/**
&lt;br /&gt; * Function takes the decimal number
&lt;br /&gt; * Function takes the Nth bit (1 to 31)
&lt;br /&gt; * Return the value of Nth bit from decimal
&lt;br /&gt; */
&lt;br /&gt;int get_bit(int decimal, int N){
&lt;br /&gt; 
&lt;br /&gt; // Shifting the 1 for N-1 bits
&lt;br /&gt; int constant = 1 &lt;&lt; (N-1);
&lt;br /&gt; 
&lt;br /&gt; // if the bit is set, return 1
&lt;br /&gt; if( decimal &amp; constant ){
&lt;br /&gt;  return 1;
&lt;br /&gt; }
&lt;br /&gt; 
&lt;br /&gt; // If the bit is not set, return 0
&lt;br /&gt; return 0;
&lt;br /&gt;}
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The above function will take a 31 bit integer number, and the second parameter is the N(1 to 31), means which position you are interested. Here is few example code to use the function
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;printf("%d\n", get_bit(3,1));
&lt;br /&gt;printf("%d\n", get_bit(12100,7));
&lt;br /&gt;printf("%d\n", get_bit(12731273,29));
&lt;br /&gt;printf("%d\n", get_bit(2111823716,18));
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;The output will be:
&lt;br /&gt;1
&lt;br /&gt;1
&lt;br /&gt;0
&lt;br /&gt;1
&lt;br /&gt;
&lt;br /&gt;1st bit value of 3 is = 1
&lt;br /&gt;7th bit value of 12100 is = 1
&lt;br /&gt;29th bit value of 12731273 is = 0
&lt;br /&gt;18th bit value of 2111823716 is = 1
&lt;br /&gt;
&lt;br /&gt;Bit-wise operations are fun to use, and faster too. The example is I've given is very basic, and the syntax will work for almost every programming languages. So you can convert the tiny C/C++ code into others. I'll appreciate if anyone convert that into other language, and post as a comment here.
&lt;br /&gt;Posted by Demon at 8:37 AM 0 comments Links to this post
&lt;br /&gt;Labels: C/C++, java, perl, php, python, ruby </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Log in Script Using PHP</title><link>http://krisnamohan.blogspot.com/2009/03/log-in-script-using-php.html</link><category>Login Scripts</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 23 Mar 2009 19:33:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-8862746655480803623</guid><description>Overview&lt;br /&gt;&lt;br /&gt;In this tutorial create 3 files&lt;br /&gt;1. main_login.php&lt;br /&gt;2. checklogin.php&lt;br /&gt;3. login_success.php&lt;br /&gt;&lt;br /&gt;Step&lt;br /&gt;1. Create table "members" in database "test".&lt;br /&gt;2. Create file main_login.php.&lt;br /&gt;3. Create file checklogin.php.&lt;br /&gt;4. Create file login_success.php.&lt;br /&gt;5. Create file logout.php&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Create table "members"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE `members` (&lt;br /&gt;`id` int(4) NOT NULL auto_increment,&lt;br /&gt;`username` varchar(65) NOT NULL default '',&lt;br /&gt;`password` varchar(65) NOT NULL default '',&lt;br /&gt;PRIMARY KEY (`id`)&lt;br /&gt;) TYPE=MyISAM AUTO_INCREMENT=2 ;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Create file main_login.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;table align="center" bgcolor="#cccccc" border="0" cellpadding="0" cellspacing="1" width="300"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;form name="form1" method="post" action="checklogin.php"&gt;&lt;br /&gt;&lt;td&gt;&lt;br /&gt;&lt;table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="1" width="100%"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr&gt;&lt;br /&gt;&lt;td colspan="3"&gt;&lt;strong&gt;Member Login &lt;/strong&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td width="78"&gt;Username&lt;/td&gt;&lt;br /&gt;&lt;td width="6"&gt;:&lt;/td&gt;&lt;br /&gt;&lt;td width="294"&gt;&lt;input name="myusername" id="myusername" type="text"&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt;Password&lt;/td&gt;&lt;br /&gt;&lt;td&gt;:&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;input name="mypassword" id="mypassword" type="text"&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;&lt;td&gt; &lt;/td&gt;&lt;br /&gt;&lt;td&gt; &lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;input name="Submit" value="Login" type="submit"&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Create file checklogin.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Create file login_success.php &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;// Check if session is not registered , redirect back to main page.&lt;br /&gt;// Put this code in first line of web page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Login Successful&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Logout.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;// Put this code in first line of web page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;For PHP5 User - checklogin.php &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="Comment"&gt;&lt;span class="Blue"&gt; // Host name&lt;br /&gt; &lt;span class="Blue"&gt;$username="";&lt;/span&gt; // Mysql username&lt;br /&gt; &lt;span class="Blue"&gt;$password="";&lt;/span&gt; // Mysql password&lt;br /&gt; &lt;span class="Blue"&gt;$db_name="test";&lt;/span&gt; // Database name&lt;br /&gt; &lt;span class="Blue"&gt;$tbl_name="members";&lt;/span&gt; // Table name &lt;/span&gt;&lt;/p&gt;                                                     &lt;p class="Blue"&gt;&lt;span class="Comment"&gt;// Connect to server and select databse.&lt;/span&gt;&lt;br /&gt;                                                     mysql_connect("$host", "$username", "$password")or die("cannot connect");&lt;br /&gt;                                                     mysql_select_db("$db_name")or die("cannot select DB");&lt;/p&gt;                                                     &lt;p class="Blue"&gt; &lt;span class="Comment"&gt;// Define $myusername and $mypassword &lt;/span&gt;&lt;br /&gt;                                                     $myusername=$_POST['myusername'];&lt;br /&gt;$mypassword=$_POST['mypassword']; &lt;/p&gt;                                                     &lt;p class="Blue"&gt;&lt;span class="Comment"&gt;// To protect MySQL injection&lt;/span&gt; (&lt;a href="http://us.php.net/mysql_real_escape_string"&gt;more detail about MySQL injection&lt;/a&gt;)&lt;br /&gt;$myusername = stripslashes($myusername);&lt;br /&gt;$mypassword = stripslashes($mypassword);&lt;br /&gt;$myusername = mysql_real_escape_string($myusername);&lt;br /&gt;$mypassword = mysql_real_escape_string($mypassword);&lt;/p&gt;                                                     &lt;p class="Blue"&gt;$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";&lt;br /&gt;                                                     $result=mysql_query($sql);&lt;/p&gt;                                                     &lt;p class="Blue"&gt;&lt;span class="Comment"&gt;// Mysql_num_row is counting table row&lt;/span&gt;&lt;br /&gt;                                                     $count=mysql_num_rows($result);&lt;br /&gt; &lt;span class="Comment"&gt;// If result matched  $myusername  and $mypassword,  table row must be 1 row&lt;/span&gt;&lt;/p&gt;                                                     &lt;p&gt;&lt;span class="Blue"&gt;if($count==1){&lt;br /&gt;                                                     &lt;/span&gt;&lt;span class="Comment"&gt;// Register $myusername, $mypassword and&lt;/span&gt;&lt;span class="Blue"&gt; &lt;span class="Comment"&gt;redirect to file "login_success.php"&lt;/span&gt;&lt;br /&gt;session_register("myusername");&lt;br /&gt;session_register("mypassword"); &lt;/span&gt;&lt;span class="Blue"&gt;&lt;/span&gt;&lt;span class="Blue"&gt;&lt;br /&gt;                                       header("location:login_success.php");&lt;br /&gt;                                       }&lt;br /&gt;                                       else {&lt;br /&gt;                                       echo "Wrong Username or Password";&lt;br /&gt;                                       }&lt;/span&gt;&lt;/p&gt;                                                     &lt;p&gt;&lt;span class="Blue"&gt;ob_end_flush();&lt;br /&gt;                                                     ?&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span class="Blue"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="Blue"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Log In script Using Perl</title><link>http://krisnamohan.blogspot.com/2009/03/log-in-script-using-perl.html</link><category>Login Scripts</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 23 Mar 2009 19:10:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-3940876439106134350</guid><description>&lt;span style="font-weight:bold;"&gt;Log In script Using Perl&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Login.pl&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;#!/www/perl/bin/perl.exe
&lt;br /&gt;print "Content-type: text/html\n\n"; 
&lt;br /&gt; use CGI;
&lt;br /&gt; use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;
&lt;br /&gt; use CGI::Session ( '-ip_match' );
&lt;br /&gt;
&lt;br /&gt; $q = new CGI;
&lt;br /&gt;
&lt;br /&gt; $usr = $q-&gt;param('usr');
&lt;br /&gt; $pwd = $q-&gt;param('pwd');
&lt;br /&gt;
&lt;br /&gt; if($usr ne '')
&lt;br /&gt; {
&lt;br /&gt;     # process the form
&lt;br /&gt;     if($usr eq "demo" and $pwd eq "demo")
&lt;br /&gt;     {
&lt;br /&gt;         $session = new CGI::Session();
&lt;br /&gt;         print $session-&gt;header(-location=&gt;'index.pl');
&lt;br /&gt;		
&lt;br /&gt;     }
&lt;br /&gt;     else
&lt;br /&gt;     {
&lt;br /&gt;         print $q-&gt;header(-type=&gt;"text/html",-location=&gt;"login.pl");
&lt;br /&gt;     }
&lt;br /&gt; }
&lt;br /&gt; elsif($q-&gt;param('action') eq 'logout')
&lt;br /&gt; {
&lt;br /&gt;     $session = CGI::Session-&gt;load() or die CGI::Session-&gt;errstr;
&lt;br /&gt;     $session-&gt;delete();
&lt;br /&gt;     print $session-&gt;header(-location=&gt;'login.pl');
&lt;br /&gt; }
&lt;br /&gt; else
&lt;br /&gt; {
&lt;br /&gt;     print $q-&gt;header;
&lt;br /&gt;       print &lt;&lt;HTML  
&lt;br /&gt;          &lt;form method="post"&gt;
&lt;br /&gt;          Username: &lt;input type="text" name="usr"&gt;
&lt;br /&gt; 
&lt;br /&gt;          Password: &lt;input type="password" name="pwd"&gt;
&lt;br /&gt; 
&lt;br /&gt; 
&lt;br /&gt;          &lt;input type="submit"&gt;
&lt;br /&gt;          &lt;/form&gt;
&lt;br /&gt;HTML
&lt;br /&gt; }
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Index.pl&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;#!/www/perl/bin/perl.exe
&lt;br /&gt;print "Content-type: text/html\n\n";
&lt;br /&gt; # index.pl
&lt;br /&gt; use CGI;
&lt;br /&gt; use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;
&lt;br /&gt; use CGI::Session ( '-ip_match' );
&lt;br /&gt;
&lt;br /&gt; $session = CGI::Session-&gt;load();
&lt;br /&gt; $q = new CGI;
&lt;br /&gt;
&lt;br /&gt; if($session-&gt;is_expired)
&lt;br /&gt; {
&lt;br /&gt;     print $q-&gt;header(-cache_control=&gt;"no-cache, no-store, must-revalidate");
&lt;br /&gt;     print "Your has session expired. Please login again.";
&lt;br /&gt;print "
&lt;br /&gt;&lt;a href="" action="login'"&gt;login";
&lt;br /&gt; }
&lt;br /&gt; else
&lt;br /&gt; {
&lt;br /&gt;     print $q-&gt;header(-cache_control=&gt;"no-cache, no-store, must-revalidate");
&lt;br /&gt;     print "&lt;/a&gt;&lt;h2&gt;&lt;a href="http://www.blogger.com/login.pl%3ELogin%3C/a%3E%22;%3Cbr%3E%20%20%7D%3Cbr%3E%20%20elsif%28$session-%3Eis_empty%29%3Cbr%3E%20%20%7B%3Cbr%3E%20%20%20%20%20%20print%20$q-%3Eheader%28-cache_control=%3E%22no-cache,%20no-store,%20must-revalidate%22%29;%3Cbr%3E%20%20%20%20%20%20print%20%22You%20have%20not%20logged%20in%22;%3Cbr%3E%09%20%20print%20%22%3Cbr%20/%3E%3Ca%20href=" action="login'"&gt;Welcome";
&lt;br /&gt;     print "&lt;/a&gt;&lt;a href="http://www.blogger.com/login.pl?action=logout"&gt;Logout";
&lt;br /&gt; }
&lt;br /&gt;&lt;/a&gt;&lt;/h2&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>My Favorite Tutorial for Perl</title><link>http://krisnamohan.blogspot.com/2009/03/my-favorite-tutorial-for-perl.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 19 Mar 2009 03:41:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-4598036965796128520</guid><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhIkqRNUdfD7DpJ05Tb8qjlGgP7OWyEW5b56LPbo0MzpYCfEl2MObSzsTPRiP8-ReRv2WXT_QF-8O6Kkj5KXscPVphkxHU3iWMyl086qzkVFGzkqo2xtE3Qr36CWF-nmqwyyIrw7pcBK_X/s1600-h/tp-logo.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 142px; height: 159px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhIkqRNUdfD7DpJ05Tb8qjlGgP7OWyEW5b56LPbo0MzpYCfEl2MObSzsTPRiP8-ReRv2WXT_QF-8O6Kkj5KXscPVphkxHU3iWMyl086qzkVFGzkqo2xtE3Qr36CWF-nmqwyyIrw7pcBK_X/s320/tp-logo.gif" border="0" target=_blank alt=""id="BLOGGER_PHOTO_ID_5314847746489418722" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tutorialspoint.com/" target=_blank/&gt;My Favorite Tutorial for Perl&lt;/a&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhIkqRNUdfD7DpJ05Tb8qjlGgP7OWyEW5b56LPbo0MzpYCfEl2MObSzsTPRiP8-ReRv2WXT_QF-8O6Kkj5KXscPVphkxHU3iWMyl086qzkVFGzkqo2xtE3Qr36CWF-nmqwyyIrw7pcBK_X/s72-c/tp-logo.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Part Time Jobs</title><link>http://krisnamohan.blogspot.com/2009/03/part-time-jobs.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 19 Mar 2009 03:33:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-6401154364994207463</guid><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd6_w3kwC4Un_fMoMF_FTWJiwDwcjJiRHYAqmxz1XyAtxvNvBnr85e1cJ5r_cj8T8HUBTRyTcCbJLT4k19MZYqb_V-8S-D1dm1BQx3NNTsOkR29yOWvNRNjgbfDZ4DD2FC7RPblhpsueYp/s1600-h/swirls.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 164px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd6_w3kwC4Un_fMoMF_FTWJiwDwcjJiRHYAqmxz1XyAtxvNvBnr85e1cJ5r_cj8T8HUBTRyTcCbJLT4k19MZYqb_V-8S-D1dm1BQx3NNTsOkR29yOWvNRNjgbfDZ4DD2FC7RPblhpsueYp/s320/swirls.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5314848325028772354" /&gt;&lt;/a&gt;&lt;br /&gt;Earn Rs.2000 daily. No Investment.&lt;br /&gt;&lt;br /&gt;Wanted Online Internet job workers. Job is only through Internet. Work part time. You can earn Rs.750-2000/- daily. These are genuine Internet jobs. No Investment required. Only serious enquires please. For more details visit &lt;a href="http://earnparttimejobs.com/index.php?id=349564" target=_blank&gt;http://www.earnparttimejobs.com/index.php?id=349564&lt;/a&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd6_w3kwC4Un_fMoMF_FTWJiwDwcjJiRHYAqmxz1XyAtxvNvBnr85e1cJ5r_cj8T8HUBTRyTcCbJLT4k19MZYqb_V-8S-D1dm1BQx3NNTsOkR29yOWvNRNjgbfDZ4DD2FC7RPblhpsueYp/s72-c/swirls.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Interview Question And Answers</title><link>http://krisnamohan.blogspot.com/2008/09/interview-question-and.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 5 Sep 2008 09:11:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-1480462026659621534</guid><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi8fmfh3j6-gK-Wk4Q1ZVXpJez-3rbdKfupZC2X0G4tIo9IBA-FxdKpTXfuZqNBNIu-82pTQY7U2SYfCpVilzU_etSwIMxBCAq3Cy910Mnw8-fYfCOuY8qspHlMUlhuKpvNUromByqD847/s1600-h/M1.GIF"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi8fmfh3j6-gK-Wk4Q1ZVXpJez-3rbdKfupZC2X0G4tIo9IBA-FxdKpTXfuZqNBNIu-82pTQY7U2SYfCpVilzU_etSwIMxBCAq3Cy910Mnw8-fYfCOuY8qspHlMUlhuKpvNUromByqD847/s320/M1.GIF" border="0" alt=""id="BLOGGER_PHOTO_ID_5242572016906743682" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://myitcareer.org/" target =_blank&gt;http://myitcareer.org/&gt;&lt;/a&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhi8fmfh3j6-gK-Wk4Q1ZVXpJez-3rbdKfupZC2X0G4tIo9IBA-FxdKpTXfuZqNBNIu-82pTQY7U2SYfCpVilzU_etSwIMxBCAq3Cy910Mnw8-fYfCOuY8qspHlMUlhuKpvNUromByqD847/s72-c/M1.GIF" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Technical Books</title><link>http://krisnamohan.blogspot.com/2008/09/blog-post.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 5 Sep 2008 08:56:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-5452075420390653573.post-8635883158954734140</guid><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik67vcjD4lImkzTIlOeLJyw6XhboBlhsATpM6r3h3S_pchKGFo6VIqgSw4j9N3kRD2lW1JMNN1SaYw_wSFaxSPulSMrT22js_qhvynaKXoDEgP-V4D15tGrECupRh0Lx5EsEU7eSKMzNqZ/s1600-h/Kompass+und+Karte.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik67vcjD4lImkzTIlOeLJyw6XhboBlhsATpM6r3h3S_pchKGFo6VIqgSw4j9N3kRD2lW1JMNN1SaYw_wSFaxSPulSMrT22js_qhvynaKXoDEgP-V4D15tGrECupRh0Lx5EsEU7eSKMzNqZ/s320/Kompass+und+Karte.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5242568802577125218" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href=" http://www.btebook.com/0-01a8edbf9d27cebe.htm" target="_blank" &gt;http://www.btebook.com/0-01a8edbf9d27cebe.htm&lt;/a&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik67vcjD4lImkzTIlOeLJyw6XhboBlhsATpM6r3h3S_pchKGFo6VIqgSw4j9N3kRD2lW1JMNN1SaYw_wSFaxSPulSMrT22js_qhvynaKXoDEgP-V4D15tGrECupRh0Lx5EsEU7eSKMzNqZ/s72-c/Kompass+und+Karte.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>