<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pareta`s</title>
	<atom:link href="http://www.manojpareta.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.manojpareta.info</link>
	<description>MaNoJpArEtA.iNfO</description>
	<lastBuildDate>Thu, 18 Feb 2010 23:18:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP MySQL Interview Questions and Answers</title>
		<link>http://www.manojpareta.info/php/php-mysql-interview-questions-and-answers/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-mysql-interview-questions-and-answers</link>
		<comments>http://www.manojpareta.info/php/php-mysql-interview-questions-and-answers/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 10:38:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Interview Question]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=295</guid>
		<description><![CDATA[What’s PHP 
The PHP Hypertext Preprocessor is a programming language that allows  web developers to create dynamic content that interacts with databases.  PHP is basically used for developing web based software applications.
What Is a Session? 
A session is a logical object created by the PHP engine to allow you  to preserve data [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What’s PHP </strong></p>
<p>The PHP Hypertext Preprocessor is a programming language that allows  web developers to create dynamic content that interacts with databases.  PHP is basically used for developing web based software applications.</p>
<p><strong>What Is a Session? </strong></p>
<p>A session is a logical object created by the PHP engine to allow you  to preserve data across subsequent HTTP requests.</p>
<p>There is only one session object available to your PHP scripts at any  time. Data saved to the session by a script can be retrieved by the  same script or another script when requested from the same visitor.</p>
<p>Sessions are commonly used to store temporary data to allow multiple  PHP pages to offer a complete functional transaction for the same  visitor.</p>
<p><strong>What is meant by PEAR in php? </strong></p>
<p>Answer1:<br />
PEAR is the next revolution in PHP. This repository is bringing higher  level programming to PHP. PEAR is a framework and distribution system  for reusable PHP components. It eases installation by bringing an  automated wizard, and packing the strength and experience of PHP users  into a nicely organised OOP library. PEAR also provides a command-line  interface that can be used to automatically install “packages”</p>
<p>Answer2:<br />
PEAR is short for “PHP Extension and Application Repository” and is  pronounced just like the fruit. The purpose of PEAR is to provide:<br />
A structured library of open-sourced code for PHP users<br />
A system for code distribution and package maintenance<br />
A standard style for code written in PHP<br />
The PHP Foundation Classes (PFC),<br />
The PHP Extension Community Library (PECL),<br />
A web site, mailing lists and download mirrors to support the PHP/PEAR  community<br />
PEAR is a community-driven project with the PEAR Group as the governing  body. The project has been founded by Stig S. Bakken in 1999 and quite a  lot of people have joined the project since then.</p>
<p><strong>How can we know the number of days between two given dates  using PHP? </strong></p>
<p>Simple arithmetic:</p>
<p>$date1 = date(‘Y-m-d’);<br />
$date2 = ‘2006-07-01′;<br />
$days = (strtotime() – strtotime()) / (60 * 60 * 24);<br />
echo “Number of days since ‘2006-07-01′: $days”;</p>
<p><strong>How can we repair a MySQL table? </strong></p>
<p>The syntex for repairing a mysql table is:</p>
<p>REPAIR TABLE tablename<br />
REPAIR TABLE tablename QUICK<br />
REPAIR TABLE tablename EXTENDED</p>
<p>This command will repair the table specified.<br />
If QUICK is given, MySQL will do a repair of only the index tree.<br />
If EXTENDED is given, it will create index row by row.</p>
<p><strong>What is the difference between $message and $$message? </strong></p>
<p>Anwser 1:<br />
$message is a simple variable whereas $$message is a reference variable.  Example:<br />
$user = ‘bob’</p>
<p>is equivalent to</p>
<p>$holder = ‘user’;<br />
$$holder = ‘bob’;</p>
<p>Anwser 2:<br />
They are both variables. But $message is a variable with a fixed name.  $$message is a variable who’s name is stored in $message. For example,  if $message contains “var”, $$message is the same as $var.</p>
<p><strong>What Is a Persistent Cookie? </strong></p>
<p>A persistent cookie is a cookie which is stored in a cookie file  permanently on the browser’s computer. By default, cookies are created  as temporary cookies which stored only in the browser’s memory. When the  browser is closed, temporary cookies will be erased. You should decide  when to use temporary cookies and when to use persistent cookies based  on their differences:</p>
<ul>
<li>Temporary cookies can not be      used for  tracking long-term information.</li>
<li>Persistent cookies can be used      for tracking  long-term information.</li>
<li>Temporary cookies are safer      because no  programs other than the browser can access them.</li>
<li></li>
<li>Persistent cookies are less      secure because  users can open cookie files see the cookie values.</li>
</ul>
<p><strong>What does a special set of tags do in PHP? </strong></p>
<p>What does a special set of tags &lt;?= and ?&gt; do in PHP?<br />
The output is displayed directly to the browser.</p>
<p><strong>How do you define a constant? </strong></p>
<p>Via define() directive, like define (“MYCONSTANT”, 100);</p>
<p><strong>What are the differences between require and include,  include_once? </strong></p>
<p>Anwser 1:<br />
require_once() and include_once() are both the functions to include and  evaluate the specified file only once. If the specified file is included  previous to the present call occurrence, it will not be done again.</p>
<p>But require() and include() will do it as many times they are asked  to do.</p>
<p>Anwser 2:<br />
The include_once() statement includes and evaluates the specified file  during the execution of the script. This is a behavior similar to the  include() statement, with the only difference being that if the code  from a file has already been included, it will not be included again.  The major difference between include() and require() is that in failure  include() produces a warning message whereas require() produces a fatal  errors.</p>
<p>Anwser 3:<br />
All three are used to an include file into the current page.<br />
If the file is not present, require(), calls a fatal error, while in  include() does not.<br />
The include_once() statement includes and evaluates the specified file  during the execution of the script. This is a behavior similar to the  include() statement, with the only difference being that if the code  from a file has already been included, it will not be included again. It  des not call a fatal error if file not exists. require_once() does the  same as include_once(), but it calls a fatal error if file not exists.</p>
<p>Anwser 4:<br />
File will not be included more than once. If we want to include a file  once only and further calling of the file will be ignored then we have  to use the PHP function include_once(). This will prevent problems with  function redefinitions, variable value reassignments, etc.</p>
<p><strong>What is meant by urlencode and urldecode? </strong></p>
<p>Anwser 1:<br />
urlencode() returns the URL encoded version of the given string. URL  coding converts special characters into % signs followed by two hex  digits. For example: urlencode(“10.00%”) will return “10%2E00%25″. URL  encoded strings are safe to be used as part of URLs.<br />
urldecode() returns the URL decoded version of the given string.</p>
<p>Anwser 2:<br />
string urlencode(str) – Returns the URL encoded version of the input  string. String values to be used in URL query string need to be URL  encoded. In the URL encoded version:</p>
<p>Alphanumeric characters are maintained as is.<br />
Space characters are converted to “+” characters.<br />
Other non-alphanumeric characters are converted “%” followed by two hex  digits representing the converted character.</p>
<p>string urldecode(str) – Returns the original string of the input URL  encoded string.</p>
<p>For example:</p>
<p>$discount =”10.00%”;<br />
$url = “http://domain.com/submit.php?disc=”.urlencode($discount);<br />
echo $url;</p>
<p>You will get “http://domain.com/submit.php?disc=10%2E00%25″.</p>
<p><strong>How To Get the Uploaded File Information in the Receiving  Script? </strong></p>
<p>Once the Web server received the uploaded file, it will call the PHP  script specified in the form action attribute to process them. This  receiving PHP script can get the uploaded file information through the  predefined array called $_FILES. Uploaded file information is organized  in $_FILES as a two-dimensional array as:</p>
<ul>
<li>$_FILES[$fieldName]['name'] –      The Original  file name on the browser system.</li>
<li>$_FILES[$fieldName]['type'] –      The file type  determined by the browser.</li>
<li>$_FILES[$fieldName]['size'] –      The Number of  bytes of the file content.</li>
<li>$_FILES[$fieldName]['tmp_name']      – The  temporary filename of the file in which the uploaded file was stored       on the server.</li>
<li>$_FILES[$fieldName]['error']      – The error code  associated with this file upload.</li>
</ul>
<p>The $fieldName is the name used in the &lt;INPUT,  NAME=fieldName&gt;.</p>
<p><strong>What is the difference between mysql_fetch_object and  mysql_fetch_array? </strong></p>
<p>MySQL fetch object will collect first single matching record where  mysql_fetch_array will collect all matching records from the table in an  array</p>
<p><strong>How can I execute a PHP script using command line? </strong></p>
<p>Just run the PHP CLI (Command Line Interface) program and provide the  PHP script file name as the command line argument. For example, “php  myScript.php”, assuming “php” is the command to invoke the CLI program.<br />
Be aware that if your PHP script was written for the Web CGI interface,  it may not execute properly in command line environment.</p>
<p><strong>I am trying to assign a variable the value of 0123, but it  keeps coming up with a different number, what’s the problem? </strong></p>
<p>PHP Interpreter treats numbers beginning with 0 as octal. Look at the  similar PHP interview questions for more numeric problems.</p>
<p><strong>Would I use print “$a dollars” or “{$a} dollars” to print out  the amount of dollars in this example? </strong></p>
<p>In this example it wouldn’t matter, since the variable is all by  itself, but if you were to print something like “{$a},000,000 mln  dollars”, then you definitely need to use the braces.</p>
<p><strong>What are the different tables present in MySQL? Which type of  table is generated when we are creating a table in the following  syntax: create table employee(eno int(2),ename varchar(10))? </strong></p>
<p>Total 5 types of tables we can create<br />
1. MyISAM<br />
2. Heap<br />
3. Merge<br />
4. INNO DB<br />
5. ISAM<br />
MyISAM is the default storage engine as of MySQL 3.23. When you fire the  above create query MySQL will create a MyISAM table.</p>
<p><strong>How To Create a Table? </strong></p>
<p>If you want to create a table, you can run the CREATE TABLE statement  as shown in the following sample script:</p>
<p>&lt;?php<br />
include “mysql_connection.php”;</p>
<p>$sql = “CREATE TABLE fyi_links (“<br />
. ” id INTEGER NOT NULL”<br />
. “, url VARCHAR(80) NOT NULL”<br />
. “, notes VARCHAR(1024)”<br />
. “, counts INTEGER”<br />
. “, time TIMESTAMP DEFAULT sysdate()”<br />
. “)”;<br />
if (mysql_query($sql, $con)) {<br />
print(“Table fyi_links created.\n”);<br />
} else {<br />
print(“Table creation failed.\n”);<br />
}</p>
<p>mysql_close($con);<br />
?&gt;</p>
<p>Remember that mysql_query() returns TRUE/FALSE on CREATE statements.  If you run this script, you will get something like this:<br />
Table fyi_links created.</p>
<p><strong>How can we encrypt the username and password using PHP? </strong></p>
<p>Answer1<br />
You can encrypt a password with the following Mysql&gt;SET  PASSWORD=PASSWORD(“Password”);</p>
<p>Answer2<br />
You can use the MySQL PASSWORD() function to encrypt username and  password. For example,<br />
INSERT into user (password, …) VALUES (PASSWORD($password”)), …);</p>
<p><strong>How do you pass a variable by value? </strong></p>
<p>Just like in C++, put an ampersand in front of it, like $a = &amp;$b</p>
<p><strong>WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND  STRISTR()? </strong></p>
<p>string strstr ( string haystack, string needle ) returns part of  haystack string from the first occurrence of needle to the end of  haystack. This function is case-sensitive.</p>
<p>stristr() is idential to strstr() except that it is case insensitive.</p>
<p><strong>When are you supposed to use endif to end the conditional  statement? </strong></p>
<p>When the original if was followed by : and then the code block  without braces.</p>
<p><strong>How can we send mail using JavaScript? </strong></p>
<p>No. There is no way to send emails directly using JavaScript.</p>
<p>But you can use JavaScript to execute a client side email program  send the email using the “mailto” code. Here is an example:</p>
<p>function myfunction(form)<br />
{<br />
tdata=document.myform.tbox1.value;<br />
location=”mailto:mailid@domain.com?subject=…”;<br />
return true;<br />
}</p>
<p><strong>What is the functionality of the function  strstr and stristr? </strong></p>
<p>strstr() returns part of a given string from the first occurrence of a  given substring to the end of the string. For example:  strstr(“user@example.com”,”@”) will return “@example.com”.<br />
stristr() is idential to strstr() except that it is case insensitive.</p>
<p><strong>What is the difference between ereg_replace() and  eregi_replace()? </strong></p>
<p>eregi_replace() function is identical to ereg_replace() except that  it ignores case distinction when matching alphabetic characters.</p>
<p><strong>How do I find out the number of parameters passed into  function9. ? </strong></p>
<p>func_num_args() function returns the number of parameters passed in.</p>
<p><strong>What is the purpose of the following files having extensions:  frm, myd, and myi? What these files contain? </strong></p>
<p>In MySQL, the default table type is MyISAM.<br />
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.</p>
<p>The ‘.frm’ file stores the table definition.<br />
The data file has a ‘.MYD’ (MYData) extension.<br />
The index file has a ‘.MYI’ (MYIndex) extension,</p>
<p><strong>If the variable $a is equal to 5 and variable $b is equal to  character a, what’s the value of $$b? </strong></p>
<p>5, it’s a reference to existing variable.</p>
<p><strong>Write a query for the following question</strong></p>
<p>The table tbl_sites contains the following data:</p>
<p>—————————————<br />
Userid sitename country<br />
—————————————<br />
1 sureshbabu indian<br />
2 PHPprogrammer andhra<br />
3 PHP.net usa<br />
4 PHPtalk.com germany<br />
5 MySQL.com usa<br />
6 sureshbabu canada<br />
7 PHPbuddy.com pakistan<br />
8. PHPtalk.com austria<br />
9. PHPfreaks.com sourthafrica<br />
10. PHPsupport.net russia<br />
11. sureshbabu australia<br />
12. sureshbabu nepal<br />
13. PHPtalk.com italy</p>
<p><strong>Write a select query that will be displayed the duplicated  site name and how many times it is duplicated? …</strong></p>
<p>SELECT sitename, COUNT(*) AS NumOccurrences<br />
FROM tbl_sites<br />
GROUP BY sitename HAVING COUNT(*) &gt; 1</p>
<p><strong>How To Protect Special Characters in Query String? </strong></p>
<p>If you want to include special characters like spaces in the query  string, you need to protect them by applying the urlencode() translation  function. The script below shows how to use urlencode():</p>
<p>&lt;?php<br />
print(“&lt;html&gt;”);<br />
print(“&lt;p&gt;Please click the links below”<br />
.” to submit comments about FYICenter.com:&lt;/p&gt;”);<br />
$comment = ‘I want to say: “It\’s a good site! :-&gt;”‘;<br />
$comment = urlencode($comment);<br />
print(“&lt;p&gt;”<br />
.”&lt;a  href=\”processing_forms.php?name=Guest&amp;comment=$comment\”&gt;”<br />
.”It’s an excellent site!&lt;/a&gt;&lt;/p&gt;”);<br />
$comment = ‘This visitor said: “It\’s an average site! <img src='http://www.manojpareta.info/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> “‘;<br />
$comment = urlencode($comment);<br />
print(“&lt;p&gt;”<br />
.’&lt;a href=”processing_forms.php?’.$comment.’”&gt;’<br />
.”It’s an average site.&lt;/a&gt;&lt;/p&gt;”);<br />
print(“&lt;/html&gt;”);<br />
?&gt;</p>
<p><strong>Are objects passed by value or by reference? </strong></p>
<p>Everything is passed by value.</p>
<p><strong>What are the differences between DROP a table and TRUNCATE a  table? </strong></p>
<p>DROP TABLE table_name – This will delete the table and its data.</p>
<p>TRUNCATE TABLE table_name – This will delete the data of the table,  but not the table definition.</p>
<p><strong>What are the differences between GET and POST methods in form  submitting, give the case where we can use GET and we can use POST  methods? </strong></p>
<p>Anwser 1:</p>
<p>When we submit a form, which has the GET method it displays pair of  name/value used in the form at the address bar of the browser preceded  by url. Post method doesn’t display these values.</p>
<p>Anwser 2:</p>
<p>When you want to send short or small data, not containing ASCII  characters, then you can use GET” Method. But for long data sending, say  more then 100 character you can use POST method.</p>
<p>Once most important difference is when you are sending the form with  GET method. You can see the output which you are sending in the address  bar. Whereas if you send the form with POST” method then user can not  see that information.</p>
<p>Anwser 3:</p>
<p>What are “GET” and “POST”?</p>
<p>GET and POST are methods used to send data to the server: With the  GET method, the browser appends the data onto the URL. With the Post  method, the data is sent as “standard input.”</p>
<p>Major Difference</p>
<p>In simple words, in POST method data is sent by standard input  (nothing shown in URL when posting while in GET method data is sent  through query string.</p>
<p>Ex: Assume we are logging in with username and password.</p>
<p>GET: we are submitting a form to login.php, when we do submit or  similar action, values are sent through visible query string (notice  ./login.php?username=…&amp;password=… as URL when executing the script  login.php) and is retrieved by login.php by $_GET['username'] and  $_GET['password'].</p>
<p>POST: we are submitting a form to login.php, when we do submit or  similar action, values are sent through invisible standard input (notice  ./login.php) and is retrieved by login.php by $_POST['username'] and  $_POST['password'].</p>
<p>POST is assumed more secure and we can send lot more data than that  of GET method is limited (they say Internet Explorer can take care of  maximum 2083 character as a query string).</p>
<p>Anwser 4:</p>
<p>In the get method the data made available to the action page ( where  data is received ) by the URL so data can be seen in the address bar.  Not advisable if you are sending login info like password etc. In the  post method the data will be available as data blocks and not as query  string in case of get method.</p>
<p>Anwser 5:</p>
<p>When we submit a form, which has the GET method it pass value in the  form of query string (set of name/value pair) and display along with  URL. With GET we can a small data submit from the form (a set of 255  character) whereas Post method doesn’t display value with URL. It passes  value in the form of Object and we can submit large data from the form.</p>
<p>Anwser 6:</p>
<p>On the server side, the main difference between GET and POST is where  the submitted is stored. The $_GET array stores data submitted by the  GET method. The $_POST array stores data submitted by the POST method.<br />
On the browser side, the difference is that data submitted by the GET  method will be displayed in the browser’s address field. Data submitted  by the POST method will not be displayed anywhere on the browser.<br />
GET method is mostly used for submitting a small amount and less  sensitive data. POST method is mostly used for submitting a large amount  or sensitive data.</p>
<p><strong>How do you call a constructor for a parent class? </strong></p>
<p>parent::constructor($value)</p>
<p><strong>WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP? </strong></p>
<p>Here are three basic types of runtime errors in PHP:</p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<p>Internally, these variations are represented by twelve different  error types</p>
<p><strong>What’s the special meaning of __sleep and __wakeup? </strong></p>
<p>__sleep returns the array of all the variables than need to be saved,  while __wakeup retrieves them.</p>
<p><strong>How can we submit a form without a submit button? </strong></p>
<p>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:</p>
<p>&lt;a href=”javascript: document.myform.submit();”&gt;Submit  Me&lt;/a&gt;</p>
<p><strong>Why doesn’t the following code print the newline properly?  &lt;?php $str = ‘Hello, there.\nHow are you?\nThanks for visiting  fyicenter’; print $str; ?&gt; </strong></p>
<p>Because inside the single quotes the \n character is not interpreted  as newline, just as a sequence of two characters – \ and n.</p>
<p><strong>Would you initialize your strings with single quotes or  double quotes? </strong></p>
<p>Since the data inside the single-quoted string is not parsed for  variable substitution, it’s always a better idea speed-wise to  initialize a string with single quotes, unless you specifically need  variable substitution.</p>
<p><strong>How can we extract string ‘abc.com ‘ from a string  http://info@abc.com using regular expression of php? </strong></p>
<pre>We can use the preg_match() function with "/.*@(.*)$/" as
the regular expression pattern. For example:
preg_match("/.*@(.*)$/","http://info@abc.com",$data);
echo $data[1];</pre>
<p><strong>What is the difference between the functions unlink and  unset? </strong></p>
<p>unlink() is a function for file system handling. It will simply  delete the file in context.</p>
<p>unset() is a function for variable management. It will make a  variable undefined.</p>
<p><strong>How come the code works, but doesn’t for two-dimensional  array of mine? </strong></p>
<p>Any time you have an array with more than one dimension, complex  parsing syntax is required. print “Contents: {$arr[1][2]}” would’ve  worked.</p>
<p><strong>How can we register the variables into a session? </strong></p>
<p>session_register($session_var);</p>
<p>$_SESSION['var'] = ‘value’;</p>
<p><strong>What is the difference between characters 23 and \x23? </strong></p>
<p>The first one is octal 23, the second is hex 23.</p>
<p><strong>How can we submit form without a submit button? </strong></p>
<p>We can use a simple JavaScript code linked to an event trigger of any  form field. In the JavaScript code, we can call the  document.form.submit() function to submit the form. For example:  &lt;input value=”Save” onClick=”document.form.submit()”&gt;</p>
<p><strong>How can we create a database using PHP and mysql? </strong></p>
<p>We can create MySQL database with the use of  mysql_create_db($databaseName) to create a database.</p>
<p><strong>How many ways we can retrieve the date in result set of mysql  using php? </strong></p>
<p>As individual objects so single record or as a set or arrays.</p>
<p><strong>Can we use include (“abc.php”) two times in a php page  “makeit.php”? </strong></p>
<p>Yes.</p>
<p><strong>For printing out strings, there are echo, print and printf.  Explain the differences. </strong></p>
<p>echo is the most primitive of them, and just outputs the contents  following the construct to the screen. print is also a construct (so  parentheses are optional when calling it), but it returns TRUE on  successful output and FALSE if it was unable to print out the string.  However, you can pass multiple parameters to echo, like:</p>
<p>&lt;?php echo ‘Welcome ‘, ‘to’, ‘ ‘, ‘fyicenter!’; ?&gt;</p>
<p>and it will output the string “Welcome to fyicenter!” print does not  take multiple parameters. It is also generally argued that echo is  faster, but usually the speed advantage is negligible, and might not be  there for future versions of PHP. printf is a function, not a construct,  and allows such advantages as formatted output, but it’s the slowest  way to print out data out of echo, print and printf.</p>
<p><strong>I am writing an application in PHP that outputs a printable  version of driving directions. It contains some long sentences, and I am  a neat freak, and would like to make sure that no line exceeds 50  characters. How do I accomplish that with PHP? </strong></p>
<p>On large strings that need to be formatted according to some length  specifications, use wordwrap() or chunk_split().</p>
<p><strong>What’s the output of the ucwords function in this example? </strong></p>
<p>$formatted = ucwords(“FYICENTER IS COLLECTION OF INTERVIEW  QUESTIONS”);<br />
print $formatted;<br />
What will be printed is FYICENTER IS COLLECTION OF INTERVIEW QUESTIONS.<br />
ucwords() makes every first letter of every word capital, but it does  not lower-case anything else. To avoid this, and get a properly  formatted string, it’s worth using strtolower() first.</p>
<p><strong>What’s the difference between htmlentities() and  htmlspecialchars()? </strong></p>
<p>htmlspecialchars only takes care of &lt;, &gt;, single quote ‘,  double quote ” and ampersand. htmlentities translates all occurrences of  character sequences that have different meaning in HTML.</p>
<p><strong>How can we extract string “abc.com” from a string  “mailto:info@abc.com?subject=Feedback” using regular expression of PHP? </strong></p>
<p>$text = “mailto:info@abc.com?subject=Feedback”;<br />
preg_match(‘|.*@([^?]*)|’, $text, $output);<br />
echo $output[1];</p>
<p>Note that the second index of $output, $output[1], gives the match,  not the first one, $output[0].</p>
<p><strong>So if md5() generates the most secure hash, why would you  ever use the less secure crc32() and sha1()? </strong></p>
<p>Crypto usage in PHP is simple, but that doesn’t mean it’s free. First  off, depending on the data that you’re encrypting, you might have  reasons to store a 32-bit value in the database instead of the 160-bit  value to save on space. Second, the more secure the crypto is, the  longer is the computation time to deliver the hash value. A high volume  site might be significantly slowed down, if frequent md5() generation is  required.</p>
<p><strong>How can we destroy the session, how can we unset the variable  of a session? </strong></p>
<p>session_unregister() – Unregister a global variable from the current  session<br />
session_unset() – Free all session variables</p>
<p><strong>What are the different functions in sorting an array? </strong></p>
<p>Sorting functions in PHP:<br />
asort()<br />
arsort()<br />
ksort()<br />
krsort()<br />
uksort()<br />
sort()<br />
natsort()<br />
rsort()</p>
<p><strong>How can we know the count/number of elements of an array? </strong></p>
<p>2 ways:<br />
a) sizeof($array) – This function is an alias of count()<br />
b) count($urarray) – This function returns the number of elements in an  array.<br />
Interestingly if you just pass a simple var instead of an array, count()  will return 1.</p>
<p><strong>How many ways we can pass the variable through the navigation  between the pages? </strong></p>
<p>At least 3 ways:</p>
<p>1. Put the variable into session in the first page, and get it back  from session in the next page.<br />
2. Put the variable into cookie in the first page, and get it back from  the cookie in the next page.<br />
3. Put the variable into a hidden form field, and get it back from the  form in the next page.</p>
<p><strong>What is the maximum length of a table name, a database name,  or a field name in MySQL? </strong></p>
<p>Database name: 64 characters<br />
Table name: 64 characters<br />
Column name: 64 characters</p>
<p><strong>How many values can the SET function of MySQL take? </strong></p>
<p>MySQL SET function can take zero or more values, but at the maximum  it can take 64 values.</p>
<p><strong>What are the other commands to know the structure of a table  using MySQL commands except EXPLAIN command? </strong></p>
<p>DESCRIBE table_name;</p>
<p><strong>How can we find the number of rows in a table using MySQL?</strong></p>
<p>Use this for MySQL</p>
<p>SELECT COUNT(*) FROM table_name;</p>
<p><strong>What’s the difference between md5(), crc32() and sha1()  crypto on PHP? </strong></p>
<p>The major difference is the length of the hash generated. CRC32 is,  evidently, 32 bits, while sha1() returns a 128 bit value, and md5()  returns a 160 bit value. This is important when avoiding collisions.</p>
<p><strong>How can we find the number of rows in a result set using PHP? </strong></p>
<p>Here is how can you find the number of rows in a result set in PHP:</p>
<p>$result = mysql_query($any_valid_sql, $database_link);<br />
$num_rows = mysql_num_rows($result);<br />
echo “$num_rows rows found”;</p>
<p><strong>How many ways we can we find the current date using MySQL? </strong></p>
<p>SELECT CURDATE();<br />
SELECT CURRENT_DATE();<br />
SELECT CURTIME();<br />
SELECT CURRENT_TIME();</p>
<p><strong>Give the syntax of GRANT commands? </strong></p>
<p>The generic syntax for GRANT is as following</p>
<p>GRANT [rights] on [database] TO [username@hostname] IDENTIFIED BY  [password]</p>
<p>Now rights can be:<br />
a) ALL privilages<br />
b) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc.</p>
<p>We can grant rights on all databse by usingh *.* or some specific  database by database.* or a specific table by database.table_name.</p>
<p><strong>Give the syntax of REVOKE commands? </strong></p>
<p>The generic syntax for revoke is as following</p>
<p>REVOKE [rights] on [database] FROM [username@hostname]</p>
<p>Now rights can be:<br />
a) ALL privilages<br />
b) Combination of CREATE, DROP, SELECT, INSERT, UPDATE and DELETE etc.</p>
<p>We can grant rights on all databse by usingh *.* or some specific  database by database.* or a specific table by database.table_name.</p>
<p><strong>Answer the questions with the following assumption </strong></p>
<p>The structure of table view buyers is as follows:</p>
<pre>+-------------+-------------+------+-----+---------+----------------+
| Field       | Type        | Null | Key | Default | Extra          |
+-------------+-------------+------+-----+---------+----------------+
| user_pri_id | int(15)     |      | PRI | NULL    | auto_increment |
| userid      | varchar(10) | YES  |     | NULL    |                |
+-------------+-------------+------+-----+---------+----------------+</pre>
<p>The value of user_pri_id of the last row is 2345. What will happen in  the following conditions?</p>
<p>Condition 1: Delete all the rows and insert another row. What is the  starting value for this auto incremented field user_pri_id?</p>
<p>Condition 2: Delete the last row (having the field value 2345) and  insert another row. What is the value for this auto incremented field  user_pri_id?</p>
<p>In both conditions, the value of this auto incremented field  user_pri_id is 2346.</p>
<p><strong>What is the difference between CHAR and VARCHAR data types? </strong></p>
<p>CHAR is a fixed length data type. CHAR(n) will take n characters of  storage even if you enter less than n characters to that column. For  example, “Hello!” will be stored as “Hello! ” in CHAR(10) column.</p>
<p>VARCHAR is a variable length data type. VARCHAR(n) will take only the  required storage for the actual number of characters entered to that  column. For example, “Hello!” will be stored as “Hello!” in VARCHAR(10)  column.</p>
<p><strong>How can we encrypt and decrypt a data present in a mysql  table using mysql? </strong></p>
<p>AES_ENCRYPT() and AES_DECRYPT()</p>
<p><strong>Will comparison of string “10″ and integer 11 work in PHP? </strong></p>
<p>Yes, internally PHP will cast everything to the integer type, so  numbers 10 and 11 will be compared.</p>
<p><strong>What is the functionality of MD5 function in PHP? </strong></p>
<p>string md5(string)</p>
<p>It calculates the MD5 hash of a string. The hash is a 32-character  hexadecimal number.</p>
<p><strong>How can I load data from a text file into a table? </strong></p>
<p>The MySQL provides a LOAD DATA INFILE command. You can load data from  a file. Great tool but you need to make sure that:</p>
<p>a) Data must be delimited<br />
b) Data fields must match table columns correctly</p>
<p><strong>How can we know the number of days between two given dates  using MySQL? </strong></p>
<p>Use DATEDIFF()</p>
<p>SELECT DATEDIFF(NOW(),’2006-07-01′);</p>
<p><strong>How can we change the name of a column of a table? </strong></p>
<p>This will change the name of column:</p>
<p>ALTER TABLE table_name CHANGE old_colm_name new_colm_name</p>
<p><strong>How can we change the data type of a column of a table? </strong></p>
<p>This will change the data type of a column:</p>
<p>ALTER TABLE table_name CHANGE colm_name same_colm_name [new data  type]</p>
<p><strong>What is the difference between GROUP BY and ORDER BY in SQL? </strong></p>
<p>To sort a result, use an ORDER BY clause.<br />
The most general way to satisfy a GROUP BY clause is to scan the whole  table and create a new temporary table where all rows from each group  are consecutive, and then use this temporary table to discover groups  and apply aggregate functions (if any).<br />
ORDER BY [col1],[col2],…[coln]; Tells DBMS according to what columns it  should sort the result. If two rows will hawe the same value in col1 it  will try to sort them according to col2 and so on.<br />
GROUP BY [col1],[col2],…[coln]; Tells DBMS to group (aggregate) results  with same value of column col1. You can use COUNT(col1), SUM(col1),  AVG(col1) with it, if you want to count all items in group, sum all  values or view average.</p>
<p><strong>What is meant by MIME? </strong></p>
<p>Answer 1:<br />
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)</p>
<p>Some examples of MIME types:<br />
audio/x-ms-wmp<br />
image/png<br />
aplication/x-shockwave-flash</p>
<p>Answer 2:<br />
Multipurpose Internet Mail Extensions.<br />
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. …</p>
<p><strong>How can we know that a session is started or not? </strong></p>
<p>A session starts by session_start() function.<br />
This session_start() is always declared in header portion. it always  declares first. then we write session_register().</p>
<p><strong>What are the differences between mysql_fetch_array(),  mysql_fetch_object(), mysql_fetch_row()? </strong></p>
<p>Answer 1:<br />
mysql_fetch_array() -&gt; Fetch a result row as a combination of  associative array and regular array.<br />
mysql_fetch_object() -&gt; Fetch a result row as an object.<br />
mysql_fetch_row() -&gt; Fetch a result set as a regular array().</p>
<p>Answer 2:<br />
The difference between mysql_fetch_row() and mysql_fetch_array() is that  the first returns the results in a numeric array ($row[0], $row[1],  etc.), while the latter returns a the results an array containing both  numeric and associative keys ($row['name'], $row['email'], etc.).  mysql_fetch_object() returns an object ($row-&gt;name, $row-&gt;email,  etc.).</p>
<p><strong>If we login more than one browser windows at the same time  with same user and after that we close one window, then is the session  is exist to other windows or not? And if yes then why? If no then why? </strong></p>
<p>Session depends on browser. If browser is closed then session is  lost. The session data will be deleted after session time out. If  connection is lost and you recreate connection, then session will  continue in the browser.</p>
<p><strong>What are the MySQL database files stored in system ? </strong></p>
<p>Data is stored in name.myd<br />
Table structure is stored in name.frm<br />
Index is stored in name.myi</p>
<p><strong>What is the difference between PHP4 and PHP5? </strong></p>
<p>PHP4 cannot support oops concepts and Zend engine 1 is used.</p>
<p>PHP5 supports oops concepts and Zend engine 2 is used.<br />
Error supporting is increased in PHP5.<br />
XML and SQLLite will is increased in PHP5.</p>
<p><strong>Can we use include(abc.PHP) two times in a PHP page  makeit.PHP”? </strong></p>
<p>Yes we can include that many times we want, but here are some things  to make sure of:<br />
(including abc.PHP, the file names are case-sensitive)<br />
there shouldn’t be any duplicate function names, means there should not  be functions or classes or variables with the same name in abc.PHP and  makeit.php</p>
<p><strong>What are the differences between mysql_fetch_array(),  mysql_fetch_object(), mysql_fetch_row()? </strong></p>
<p>mysql_fetch_array – Fetch a result row as an associative array and a  numeric array.</p>
<p>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</p>
<p>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.</p>
<p><strong>What is meant by nl2br()? </strong></p>
<p>Anwser1:<br />
nl2br() inserts a HTML tag &lt;br&gt; before all new line characters \n  in a string.</p>
<p>echo nl2br(“god bless \n you”);</p>
<p>output:<br />
god bless&lt;br&gt;<br />
you</p>
<p><strong>How can we encrypt and decrypt a data presented in a table  using MySQL? </strong></p>
<p>You can use functions: AES_ENCRYPT() and AES_DECRYPT() like:</p>
<p>AES_ENCRYPT(str, key_str)<br />
AES_DECRYPT(crypt_str, key_str)</p>
<p><strong>How can I retrieve values from one database server and store  them in other database server using PHP? </strong></p>
<p>For this purpose, you can first read the data from one server into  session variables. Then connect to other server and simply insert the  data into the database.</p>
<p><strong>WHO IS THE FATHER OF PHP AND WHAT IS THE CURRENT VERSION OF  PHP AND MYSQL? </strong></p>
<p>Rasmus Lerdorf.<br />
PHP 5.1. Beta<br />
MySQL 5.0</p>
<p><strong>IN HOW MANY WAYS WE CAN RETRIEVE DATA IN THE RESULT SET OF  MYSQL USING PHP? </strong></p>
<p>mysql_fetch_array – Fetch a result row as an associative array, a  numeric array, or both<br />
mysql_fetch_assoc – Fetch a result row as an associative array<br />
mysql_fetch_object – Fetch a result row as an object<br />
mysql_fetch_row —- Get a result row as an enumerated array</p>
<p><strong>What are the functions for IMAP? </strong></p>
<p>imap_body – Read the message body<br />
imap_check – Check current mailbox<br />
imap_delete – Mark a message for deletion from current mailbox<br />
imap_mail – Send an email message</p>
<p><strong>What are encryption functions in PHP? </strong></p>
<p>CRYPT()<br />
MD5()</p>
<p><strong>What is the difference between htmlentities() and  htmlspecialchars()? </strong></p>
<p>htmlspecialchars() – Convert some special characters to HTML entities  (Only the most widely used)<br />
htmlentities() – Convert ALL special characters to HTML entities</p>
<p><strong>What is the functionality of the function htmlentities? </strong></p>
<p>htmlentities() – Convert all applicable characters to HTML entities<br />
This function is identical to htmlspecialchars() in all ways, except  with htmlentities(), all characters which have HTML character entity  equivalents are translated into these entities.</p>
<p><strong>How can we get the properties (size, type, width, height) of  an image using php image functions? </strong></p>
<p>To know the image size use getimagesize() function<br />
To know the image width use imagesx() function<br />
To know the image height use imagesy() function</p>
<p><strong>How can we increase the execution time of a php script? </strong></p>
<p>By the use of void set_time_limit(int seconds)<br />
Set the number of seconds a script is allowed to run. If this is  reached, the script returns a fatal error. The default limit is 30  seconds or, if it exists, the max_execution_time value defined in the  php.ini. If seconds is set to zero, no time limit is imposed.</p>
<p>When called, set_time_limit() restarts the timeout counter from zero.  In other words, if the timeout is the default 30 seconds, and 25  seconds into script execution a call such as set_time_limit(20) is made,  the script will run for a total of 45 seconds before timing out.</p>
<p><strong>HOW CAN WE TAKE A BACKUP OF A MYSQL TABLE AND HOW CAN WE  RESTORE IT? </strong></p>
<p>Answer 1:<br />
Create a full backup of your database: shell&gt; mysqldump  tab=/path/to/some/dir opt db_name<br />
Or: shell&gt; mysqlhotcopy db_name /path/to/some/dir</p>
<p>The full backup file is just a set of SQL statements, so restoring it  is very easy:</p>
<p>shell&gt; mysql “.”Executed”;</p>
<p>Answer 2:<br />
To backup: BACKUP TABLE tbl_name TO /path/to/backup/directory<br />
’ To restore: RESTORE TABLE tbl_name FROM /path/to/backup/directory</p>
<p>mysqldump: Dumping Table Structure and Data</p>
<p>Utility to dump a database or a collection of database for backup or  for transferring the data to another SQL server (not necessarily a MySQL  server). The dump will contain SQL statements to create the table  and/or populate the table.<br />
-t, no-create-info<br />
Don’t write table creation information (the CREATE TABLE statement).<br />
-d, no-data<br />
Don’t write any row information for the table. This is very useful if  you just want to get a dump of the structure for a table!</p>
<p><strong>How to set cookies? </strong></p>
<p>setcookie(‘variable’,&#8217;value’,&#8217;time’)<br />
;<br />
variable – name of the cookie variable<br />
value – value of the cookie variable<br />
time – expiry time<br />
Example: setcookie(‘Test’,$i,time()+3600);</p>
<p>Test – cookie variable name<br />
$i – value of the variable ‘Test’<br />
time()+3600 – denotes that the cookie will expire after an one hour</p>
<p><strong>How to reset/destroy a cookie </strong></p>
<p>Reset a cookie by specifying expire time in the past:<br />
Example: setcookie(‘Test’,$i,time()-3600); // already expired time</p>
<p>Reset a cookie by specifying its name only<br />
Example: setcookie(‘Test’);</p>
<p><strong>WHAT TYPES OF IMAGES THAT PHP SUPPORTS? </strong></p>
<p>Using imagetypes() function to find out what types of images are  supported in your PHP engine.<br />
imagetypes() – Returns the image types supported.<br />
This function returns a bit-field corresponding to the image formats  supported by the version of GD linked into PHP. The following bits are  returned, IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM.</p>
<p><strong>CHECK IF A VARIABLE IS AN INTEGER IN JAVASCRIPT </strong></p>
<p>var myValue =9.8;<br />
if(parseInt(myValue)== myValue)<br />
alert(‘Integer’);<br />
else<br />
alert(‘Not an integer’);</p>
<p><strong>Tools used for drawing ER diagrams. </strong></p>
<p>Case Studio<br />
Smart Draw</p>
<p><strong>How can I know that a variable is a number or not using a  JavaScript? </strong></p>
<p>Answer 1:<br />
bool is_numeric( mixed var)<br />
Returns TRUE if var is a number or a numeric string, FALSE otherwise.</p>
<p>Answer 2:<br />
Definition and Usage<br />
The isNaN() function is used to check if a value is not a number.</p>
<p>Syntax<br />
isNaN(number)</p>
<p>Parameter Description<br />
number Required. The value to be tested</p>
<p><strong>How can we submit from without a submit button? </strong></p>
<p>Trigger the JavaScript code on any event ( like onSelect of drop down  list box, onfocus, etc ) document.myform.submit(); This will submit the  form.</p>
<p><strong>How many ways can we get the value of current session id? </strong></p>
<p>session_id() returns the session id for the current session.</p>
<p><strong>How can we destroy the cookie? </strong></p>
<p>Set the cookie with a past expiration time.</p>
<p><strong>What are the current versions of Apache, PHP, and MySQL? </strong></p>
<p>PHP: PHP 5.1.2<br />
MySQL: MySQL 5.1<br />
Apache: Apache 2.1</p>
<p><strong>What are the reasons for selecting LAMP (Linux, Apache,  MySQL, Php) instead of combination of other software programs, servers  and operating systems? </strong></p>
<p>All of those are open source resource. Security of linux is very very  more than windows. Apache is a better server that IIS both in  functionality and security. Mysql is world most popular open source  database. Php is more faster that asp or any other scripting language.</p>
<p><strong>What are the features and advantages of OBJECT ORIENTED  PROGRAMMING? </strong></p>
<p>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.</p>
<p><strong>What is the use of friend function? </strong></p>
<p>Friend functions<br />
Sometimes a function is best shared among a number of different classes.  Such functions can be declared either as member functions of one class  or as global functions. In either case they can be set to be friends of  other classes, by using a friend specifier in the class that is  admitting them. Such functions can use all attributes of the class which  names them as a friend, as if they were themselves members of that  class.<br />
A friend declaration is essentially a prototype for a member function,  but instead of requiring an implementation with the name of that class  attached by the double colon syntax, a global function or member  function of another class provides the match.<br />
class mylinkage<br />
{<br />
private:<br />
mylinkage * prev;<br />
mylinkage * next;</p>
<p>protected:<br />
friend void set_prev(mylinkage* L, mylinkage* N);<br />
void set_next(mylinkage* L);</p>
<p>public:<br />
mylinkage * succ();<br />
mylinkage * pred();<br />
mylinkage();<br />
};</p>
<p>void mylinkage::set_next(mylinkage* L) { next = L; }</p>
<p>void set_prev(mylinkage * L, mylinkage * N ) { N-&gt;prev = L; }</p>
<p>Friends in other classes<br />
It is possible to specify a member function of another class as a friend  as follows:<br />
class C<br />
{<br />
friend int B::f1();<br />
};<br />
class B<br />
{<br />
int f1();<br />
};</p>
<p>It is also possible to specify all the functions in another class as  friends, by specifying the entire class as a friend.<br />
class A<br />
{<br />
friend class B;<br />
};</p>
<p>Friend functions allow binary operators to be defined which combine  private data in a pair of objects. This is particularly powerful when  using the operator overloading features of C++. We will return to it  when we look at overloading.</p>
<p><strong>How can we get second of the current time using date  function? </strong></p>
<p>$second = date(“s”);</p>
<p><strong>What is the maximum size of a file that can be uploaded using  PHP and how can we change this? </strong></p>
<p>You can change maximum size of a file set upload_max_filesize  variable in php.ini file</p>
<p><strong>How can I make a script that can be bilingual (supports  English, German)? </strong></p>
<p>You can change charset variable in above line in the script to  support bilanguage.</p>
<p><strong>What are the difference between abstract class and interface? </strong></p>
<p>Abstract class: abstract classes are the class where one or more  methods are abstract but not necessarily all method has to be abstract.  Abstract methods are the methods, which are declare in its class but not  define. The definition of those methods must be in its extending class.</p>
<p>Interface: Interfaces are one type of class where all the methods are  abstract. That means all the methods only declared but not defined. All  the methods must be define by its implemented class.</p>
<p><strong>What are the advantages of stored procedures, triggers,  indexes? </strong></p>
<p>A stored procedure is a set of SQL commands that can be compiled and  stored in the server. Once this has been done, clients don’t need to  keep re-issuing the entire query but can refer to the stored procedure.  This provides better overall performance because the query has to be  parsed only once, and less information needs to be sent between the  server and the client. You can also raise the conceptual level by having  libraries of functions in the server. However, stored procedures of  course do increase the load on the database server system, as more of  the work is done on the server side and less on the client (application)  side. Triggers will also be implemented. A trigger is effectively a  type of stored procedure, one that is invoked when a particular event  occurs. For example, you can install a stored procedure that is  triggered each time a record is deleted from a transaction table and  that stored procedure automatically deletes the corresponding customer  from a customer table when all his transactions are deleted. Indexes are  used to find rows with specific column values quickly. Without an  index, MySQL must begin with the first row and then read through the  entire table to find the relevant rows. The larger the table, the more  this costs. If the table has an index for the columns in question, MySQL  can quickly determine the position to seek to in the middle of the data  file without having to look at all the data. If a table has 1,000 rows,  this is at least 100 times faster than reading sequentially. If you  need to access most of the rows, it is faster to read sequentially,  because this minimizes disk seeks.</p>
<p><strong>What is maximum size of a database in mysql? </strong></p>
<p>If the operating system or filesystem places a limit on the number of  files in a directory, MySQL is bound by that constraint. The efficiency  of the operating system in handling large numbers of files in a  directory can place a practical limit on the number of tables in a  database. If the time required to open a file in the directory increases  significantly as the number of files increases, database performance  can be adversely affected.<br />
The amount of available disk space limits the number of tables.<br />
MySQL 3.22 had a 4GB (4 gigabyte) limit on table size. With the MyISAM  storage engine in MySQL 3.23, the maximum table size was increased to  65536 terabytes (2567 – 1 bytes). With this larger allowed table size,  the maximum effective table size for MySQL databases is usually  determined by operating system constraints on file sizes, not by MySQL  internal limits.<br />
The InnoDB storage engine maintains InnoDB tables within a tablespace  that can be created from several files. This allows a table to exceed  the maximum individual file size. The tablespace can include raw disk  partitions, which allows extremely large tables. The maximum tablespace  size is 64TB.<br />
The following table lists some examples of operating system file-size  limits. This is only a rough guide and is not intended to be definitive.  For the most up-to-date information, be sure to check the documentation  specific to your operating system.<br />
Operating System File-size Limit<br />
Linux 2.2-Intel 32-bit 2GB (LFS: 4GB)<br />
Linux 2.4+ (using ext3 filesystem) 4TB<br />
Solaris 9/10 16TB<br />
NetWare w/NSS filesystem 8TB<br />
Win32 w/ FAT/FAT32 2GB/4GB<br />
Win32 w/ NTFS 2TB (possibly larger)<br />
MacOS X w/ HFS+ 2TB</p>
<p><strong>Explain normalization concept? </strong></p>
<p>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).</p>
<p>First Normal Form<br />
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).</p>
<p>Second Normal Form<br />
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.</p>
<p>Third Normal Form<br />
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</p>
<p><strong>What’s the difference between accessing a class method via  -&gt; and via ::? </strong></p>
<p>:: is allowed to access methods that can perform static operations,  i.e. those, which do not require object initialization.</p>
<p><strong>What are the advantages and disadvantages of CASCADE STYLE  SHEETS? </strong></p>
<p>External Style Sheets<br />
Advantages<br />
Can control styles for multiple documents at once Classes can be created  for use on multiple HTML element types in many documents Selector and  grouping methods can be used to apply styles under complex contexts</p>
<p>Disadvantages<br />
An extra download is required to import style information for each  document The rendering of the document may be delayed until the external  style sheet is loaded Becomes slightly unwieldy for small quantities of  style definitions</p>
<p>Embedded Style Sheets<br />
Advantages<br />
Classes can be created for use on multiple tag types in the document  Selector and grouping methods can be used to apply styles under complex  contexts No additional downloads necessary to receive style information</p>
<p>Disadvantage<br />
This method can not control styles for multiple documents at once</p>
<p>Inline Styles<br />
Advantages<br />
Useful for small quantities of style definitions Can override other  style specification methods at the local level so only exceptions need  to be listed in conjunction with other style methods</p>
<p>Disadvantages<br />
Does not distance style information from content (a main goal of  SGML/HTML) Can not control styles for multiple documents at once Author  can not create or control classes of elements to control multiple  element types within the document Selector grouping methods can not be  used to create complex element addressing scenarios</p>
<p>What type of inheritance that php supports?</p>
<p>In PHP an extended class is always dependent on a single base class,  that is, multiple inheritance is not supported. Classes are extended  using the keyword ‘extends’.</p>
<p><strong>How can increase the performance of MySQL select query? </strong></p>
<p>We can use LIMIT to stop MySql for further search in table after we  have received our required no. of records, also we can use LEFT JOIN or  RIGHT JOIN instead of full join in cases we have related data in two or  more tables.</p>
<p><strong>How can we change the name of a column of a table? </strong></p>
<p>MySQL query to rename table: RENAME TABLE tbl_name TO new_tbl_name<br />
or,<br />
ALTER TABLE tableName CHANGE OldName newName.</p>
<p><strong>When you want to show some part of a text displayed on an  HTML page in red font color? What different possibilities are there to  do this? What are the advantages/disadvantages of these methods? </strong></p>
<p>There are 2 ways to show some part of a text in red:</p>
<p>1. Using HTML tag &lt;font color=”red”&gt;<br />
2. Using HTML tag &lt;span style=”color: red”&gt;</p>
<p><strong>When viewing an HTML page in a Browser, the Browser often  keeps this page in its cache. What can be possible  advantages/disadvantages of page caching? How can you prevent caching of  a certain page (please give several alternate solutions)? </strong></p>
<p>When you use the metatag in the header section at the beginning of an  HTML Web page, the Web page may still be cached in the Temporary  Internet Files folder.</p>
<p>A page that Internet Explorer is browsing is not cached until half of  the 64 KB buffer is filled. Usually, metatags are inserted in the  header section of an HTML document, which appears at the beginning of  the document. When the HTML code is parsed, it is read from top to  bottom. When the metatag is read, Internet Explorer looks for the  existence of the page in cache at that exact moment. If it is there, it  is removed. To properly prevent the Web page from appearing in the  cache, place another header section at the end of the HTML document. For  example:</p>
<p><strong>What are the different ways to login to a remote server?  Explain the means, advantages and disadvantages? </strong></p>
<p>There is at least 3 ways to logon to a remote server:<br />
Use ssh or telnet if you concern with security<br />
You can also use rlogin to logon to a remote server.</p>
<p><strong>Please give a regular expression (preferably Perl/PREG  style), which can be used to identify the URL from within a HTML link  tag. </strong></p>
<p>Try this: /href=”([^"]*)”/i</p>
<p><strong>How can I use the COM components in php? </strong></p>
<p>The COM class provides a framework to integrate (D)COM components  into your PHP scripts.<br />
string COM::COM( string module_name [, string server_name [, int  codepage]]) – COM class constructor.</p>
<p>Parameters:</p>
<p>module_name: name or class-id of the requested component.<br />
server_name: name of the DCOM server from which the component should be  fetched. If NULL, localhost is assumed. To allow DCOM com, allow_dcom  has to be set to TRUE in php.ini.<br />
codepage – specifies the codepage that is used to convert php-strings to  unicode-strings and vice versa. Possible values are CP_ACP, CP_MACCP,  CP_OEMCP, CP_SYMBOL, CP_THREAD_ACP, CP_UTF7 and CP_UTF8.<br />
Usage:<br />
$word-&gt;Visible = 1; //open an empty document<br />
$word-&gt;Documents-&gt;Add(); //do some weird stuff<br />
$word-&gt;Selection-&gt;TypeText(“This is a test…”);<br />
$word-&gt;Documents[1]-&gt;SaveAs(“Useless test.doc”); //closing word<br />
$word-&gt;Quit(); //free the object<br />
$word-&gt;Release();<br />
$word = null;</p>
<p><strong>How many ways we can give the output to a browser? </strong></p>
<p>HTML output<br />
PHP, ASP, JSP, Servlet Function<br />
Script Language output Function<br />
Different Type of embedded Package to output to a browser</p>
<p><strong>What is the default session time in php and how can I change  it? </strong></p>
<p>The default session time in php is until closing of browser</p>
<p><strong>What changes I have to do in php.ini file for file uploading? </strong></p>
<p>Make the following line uncomment like:<br />
; Whether to allow HTTP file uploads.<br />
file_uploads = On<br />
; Temporary directory for HTTP uploaded files (will use system default  if not<br />
; specified).<br />
upload_tmp_dir = C:\apache2triad\temp<br />
; Maximum allowed size for uploaded files.<br />
upload_max_filesize = 2M</p>
<p><strong>How can I set a cron and how can I execute it in Unix, Linux,  and windows? </strong></p>
<p>Cron is very simply a Linux module that allows you to run commands at  predetermined times or intervals. In Windows, it’s called Scheduled  Tasks. The name Cron is in fact derived from the same word from which we  get the word chronology, which means order of time.<br />
The easiest way to use crontab is via the crontab command.</p>
<p># crontab</p>
<p>This command ‘edits’ the crontab. Upon employing this command, you  will be able to enter the commands that you wish to run. My version of<br />
Linux uses the text editor vi. You can find information on using vi  here.</p>
<p>The syntax of this file is very important – if you get it wrong, your  crontab will not function properly. The syntax of the file should be as  follows:<br />
minutes hours day_of_month month day_of_week command</p>
<p>All the variables, with the exception of the command itself, are  numerical constants. In addition to an asterisk (*), which is a wildcard  that allows any value, the ranges permitted for each field are as  follows:</p>
<p>Minutes: 0-59<br />
Hours: 0-23<br />
Day_of_month: 1-31<br />
Month: 1-12<br />
Weekday: 0-6</p>
<p>We can also include multiple values for each entry, simply by  separating each value with a comma.<br />
command can be any shell command and, as we will see momentarily, can  also be used to execute a Web document such as a PHP file.<br />
So, if we want to run a script every Tuesday morning at 8:15 AM, our  mycronjob file will contain the following content on a single line:</p>
<p>15 8 * * 2 /path/to/scriptname</p>
<p>This all seems simple enough, right? Not so fast! If you try to run a  PHP script in this manner, nothing will happen (barring very special  configurations that have PHP compiled as an executable, as opposed to an  Apache module). The reason is that, in order for PHP to be parsed, it  needs to be passed through Apache. In other words, the page needs to be  called via a browser or other means of retrieving</p>
<p>Web content. For our purposes, I’ll assume that your server  configuration includes wget, as is the case with most default  configurations. To test your configuration, log in to shell. If you’re  using an RPM-based system (e.g. Redhat or Mandrake), type the following:</p>
<p># wget help</p>
<p>If you are greeted with a wget package identification, it is  installed in your system.<br />
You could execute the PHP by invoking wget on the URL to the page, like  so:</p>
<p># wget http://www.example.com/file.php</p>
<p>Now, let’s go back to the mailstock.php file we created in the first  part of this article. We saved it in our document root, so it should be  accessible via the Internet. Remember that we wanted it to run at 4PM  Eastern time, and send you your precious closing bell report? Since I’m  located in the Eastern timezone, we can go ahead and set up our crontab  to use 4:00, but if you live elsewhere, you might have to compensate for  the time difference when setting this value.<br />
This is what my crontab will look like:</p>
<p>0 4 * * 1,2,3,4,5 wget http://www.example.com/mailstock.php</p>
<p><strong>Steps for the payment gateway processing? </strong></p>
<p>An online payment gateway is the interface between your merchant  account and your Web site. The online payment gateway allows you to  immediately verify credit card transactions and authorize funds on a  customer’s credit card directly from your Web site. It then passes the  transaction off to your merchant bank for processing, commonly referred  to as transaction batching</p>
<p><strong>How many ways I can redirect a PHP page? </strong></p>
<p>Here are the possible ways of php page redirection.</p>
<p>1. Using Java script:<br />
‘; echo ‘window.location.href=”‘.$filename.’”;’; echo ”; echo ”; echo ”;  echo ”; } } redirect(‘http://maosjb.com’); ?&gt;</p>
<p>2. Using php function: header(“Location:http://maosjb.com “);</p>
<p><strong>List out different arguments in PHP header function? </strong></p>
<p>void header ( string string [, bool replace [, int  http_response_code]])</p>
<p><strong>What type of headers have to be added in the mail function to  attach a file? </strong></p>
<p>$boundary = ‘–’ . md5( uniqid ( rand() ) );<br />
$headers = “From: \”Me\”\n”;<br />
$headers .= “MIME-Version: 1.0\n”;<br />
$headers .= “Content-Type: multipart/mixed; boundary=\”$boundary\”&#8221;;</p>
<p><strong>How to store the uploaded file to the final location? </strong></p>
<p>move_uploaded_file ( string filename, string destination)</p>
<p>This function checks to ensure that the file designated by filename  is a valid upload file (meaning that it was uploaded via PHP’s HTTP POST  upload mechanism). If the file is valid, it will be moved to the  filename given by destination.</p>
<p>If filename is not a valid upload file, then no action will occur,  and move_uploaded_file() will return FALSE.</p>
<p>If filename is a valid upload file, but cannot be moved for some  reason, no action will occur, and move_uploaded_file() will return  FALSE. Additionally, a warning will be issued.</p>
<p><strong>What is the difference between Reply-to and Return-path in  the headers of a mail function? </strong></p>
<p>Reply-to: Reply-to is where to delivery the reply of the mail.</p>
<p>Return-path: Return path is when there is a mail delivery failure  occurs then where to delivery the failure notification.</p>
<p><strong>Explain about Type Juggling in php? </strong></p>
<p>PHP does not require (or support) explicit type definition in  variable declaration; a variable’s type is determined by the context in  which that variable is used. That is to say, if you assign a string  value to variable $var, $var becomes a string. If you then assign an  integer value to $var, it becomes an integer.</p>
<p>An example of PHP’s automatic type conversion is the addition  operator ‘+’. If any of the operands is a float, then all operands are  evaluated as floats, and the result will be a float. Otherwise, the  operands will be interpreted as integers, and the result will also be an  integer. Note that this does NOT change the types of the operands  themselves; the only change is in how the operands are evaluated.</p>
<p>$foo += 2; // $foo is now an integer (2)<br />
$foo = $foo + 1.3; // $foo is now a float (3.3)<br />
$foo = 5 + “10 Little Piggies”; // $foo is integer (15)<br />
$foo = 5 + “10 Small Pigs”; // $foo is integer (15)</p>
<p>If the last two examples above seem odd, see String conversion to  numbers.<br />
If you wish to change the type of a variable, see settype().<br />
If you would like to test any of the examples in this section, you can  use the var_dump() function.<br />
Note: The behavior of an automatic conversion to array is currently  undefined.</p>
<p>Since PHP (for historical reasons) supports indexing into strings via  offsets using the same syntax as array indexing, the example above  leads to a problem: should $a become an array with its first element  being “f”, or should “f” become the first character of the string $a?  The current versions of PHP interpret the second assignment as a string  offset identification, so $a becomes “f”, the result of this automatic  conversion however should be considered undefined. PHP 4 introduced the  new curly bracket syntax to access characters in string, use this syntax  instead of the one presented above:</p>
<p><strong>How can I embed a java programme in php file and what changes  have to be done in php.ini file? </strong></p>
<p>There are two possible ways to bridge PHP and Java: you can either  integrate PHP into a Java Servlet environment, which is the more stable  and efficient solution, or integrate Java support into PHP. The former  is provided by a SAPI module that interfaces with the Servlet server,  the latter by this Java extension.<br />
The Java extension provides a simple and effective means for creating  and invoking methods on Java objects from PHP. The JVM is created using  JNI, and everything runs in-process.</p>
<p>Example Code:</p>
<p>getProperty(‘java.version’) . ”; echo ‘Java vendor=’ .  $system-&gt;getProperty(‘java.vendor’) . ”; echo ‘OS=’ .  $system-&gt;getProperty(‘os.name’) . ‘ ‘ .  $system-&gt;getProperty(‘os.version’) . ‘ on ‘ .  $system-&gt;getProperty(‘os.arch’) . ‘ ‘; // java.util.Date example  $formatter = new Java(‘java.text.SimpleDateFormat’, “EEEE, MMMM dd, yyyy  ‘at’ h:mm:ss a zzzz”); echo $formatter-&gt;format(new  Java(‘java.util.Date’)); ?&gt;</p>
<p>The behaviour of these functions is affected by settings in php.ini.<br />
Table 1. Java configuration options<br />
Name<br />
Default<br />
Changeable<br />
java.class.path<br />
NULL<br />
PHP_INI_ALL<br />
Name Default Changeable<br />
java.home<br />
NULL<br />
PHP_INI_ALL<br />
java.library.path<br />
NULL<br />
PHP_INI_ALL<br />
java.library<br />
JAVALIB<br />
PHP_INI_ALL</p>
<p><strong>How To Turn On the Session Support? </strong></p>
<p>The session support can be turned on automatically at the site level,  or manually in each PHP page script:</p>
<ul>
<li>Turning on session support      automatically at  the site level: Set session.auto_start = 1 in php.ini.</li>
<li>Turning on session support      manually in each  page script: Call session_start() funtion.</li>
</ul>
<p><strong>Explain the ternary conditional operator in PHP? </strong></p>
<p>Expression preceding the ? is evaluated, if it’s true, then the  expression preceding the : is executed, otherwise, the expression  following : is executed.</p>
<p><strong>What’s the difference between include and require? </strong></p>
<p>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.</p>
<p><strong>How many ways can we get the value of current session id? </strong></p>
<p>session_id() returns the session id for the current session.</p>
<p><strong>How can we destroy the cookie? </strong></p>
<p>Set the cookie in past.</p>
<p><strong>How To Read the Entire File into a Single String? </strong></p>
<p>If you have a file, and you want to read the entire file into a  single string, you can use the file_get_contents() function. It opens  the specified file, reads all characters in the file, and returns them  in a single string. Here is a PHP script example on how to  file_get_contents():</p>
<p>&lt;?php<br />
$file = file_get_contents(“/windows/system32/drivers/etc/services”);<br />
print(“Size of the file: “.strlen($file).”\n”);<br />
?&gt;</p>
<p>﻿</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/php/php-mysql-interview-questions-and-answers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP OOPS Interview Questions &amp; Answers</title>
		<link>http://www.manojpareta.info/os-commerce/php-oops-interview-questions-answers/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-oops-interview-questions-answers</link>
		<comments>http://www.manojpareta.info/os-commerce/php-oops-interview-questions-answers/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 09:20:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Os Commerce]]></category>
		<category><![CDATA[koshti]]></category>
		<category><![CDATA[kosthi]]></category>
		<category><![CDATA[kosti]]></category>
		<category><![CDATA[pareta]]></category>
		<category><![CDATA[PHP OOPS]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=292</guid>
		<description><![CDATA[1)	Explain what is object oriented programming language?
Object oriented programming language allows concepts such as modularity,  encapsulation, polymorphism and inheritance.  Objects are said to be  the most important part of object oriented language. Concept revolves  around making simulation programs around an object. Organize a program  around its data (object)&#38; set well define interface [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1)	Explain what is object oriented programming language?</strong><br />
Object oriented programming language allows concepts such as modularity,  encapsulation, polymorphism and inheritance.  Objects are said to be  the most important part of object oriented language. Concept revolves  around making simulation programs around an object. Organize a program  around its data (object)&amp; set well define interface to that data.  i.e. objects and a set of well defined interfaces to that data. OOP is  the common abbreviation for Object-Oriented Programming.  OOps have many  properties such as DataHiding,Inheritence,Data Absraction,Data  Encapsulation and many more.</p>
<p><strong>2)	Name some languages which have object oriented language  and characteristics?</strong><br />
Some of the languages which have object oriented languages present in  them are ABAP, ECMA Script, C++, Perl, LISP, C#, Tcl, VB, Ruby, Python,  PHP, etc. Popularity of these languages has increased considerably as  they can solve complex problems with ease.<br />
<strong>3)	Explain about UML?</strong><br />
UML or unified modeling language is regarded to implement complete  specifications and features of object oriented language. Abstract design  can be implemented in object oriented programming languages. It lacks  implementation of polymorphism on message arguments which is a OOPs  feature.<br />
<strong>4)	Explain the meaning of object in object oriented programming?</strong><br />
Languages which are called as object oriented almost implement  everything in them as objects such as punctuations, characters,  prototypes, classes, modules, blocks, etc. They were designed to  facilitate and implement object oriented methods.<br />
<strong>5)	Explain about message passing in object oriented programming?</strong><br />
Message passing is a method by which an object sends data to another  object or requests other object to invoke method. This is also known as  interfacing. It acts like a messenger from one object to other object to  convey specific instructions.<br />
<strong>6)	State about Java and its relation to Object oriented  programming?</strong><br />
Java is widely used and its share is increasing considerably which is  partly due to its close resemblance to object oriented languages such as   C++. Code written in Java can be transported to many different  platforms without changing it. It implements virtual machine.<br />
<strong>7)	What are the problems faced by the developer using object  oriented programming language?</strong></p>
<p>These are some of the problems faced by the developer using object  oriented language they are: -</p>
<p>a)	Object oriented uses design patterns which can be referred to as  anything in general.<br />
b)	Repeatable solution to a problem can cause concern and disagreements  and it is one of the major problems in software design.<br />
<strong>8 )	State some of the advantages of object oriented programming?</strong><br />
Some of the advantages of object oriented programming are as follows: -<br />
a) A clear modular structure can be obtained which can be used as a  prototype and it will not reveal the mechanism behind the design. It  does have a clear interface.<br />
b)	Ease of maintenance and modification to the existing objects can be  done with ease.<br />
c)	A good framework is provided which facilitates in creating rich GUI  applications.<br />
<strong> 9 )	Explain about inheritance in OOPS?</strong><br />
Objects in one class can acquire properties of the objects in other  classes by way of inheritance. Reusability which is a major factor is  provided in object oriented programming which adds features to a class  without modifying it. New class can be obtained from a class which is  already present.<br />
<strong> 10)	 Explain about the relationship between object oriented  programming and databases?</strong><br />
Object oriented programming and relational database programming are  almost similar in software engineering. RDBMS will not store objects  directly and that’s where object oriented programming comes into play.  Object relational mapping is one such solution.<br />
<strong> 11)	 Explain about a class in OOP?</strong><br />
In Object oriented programming usage of class often occurs. A class  defines the characteristics of an object and its behaviors. This defines  the nature and functioning of a specified object to which it is  assigned. Code for a class should be encapsulated.</p>
<p><strong>12)	 Explain the usage of encapsulation?</strong><br />
Encapsulation specifies the different classes which can use the members  of an object. The main goal of encapsulation is to provide an interface  to clients which decrease the dependency on those features and parts  which are likely to change in future. This facilitates easy changes to  the code and features.<br />
<strong> 13)	 Explain about abstraction?</strong><br />
Abstraction can also be achieved through composition. It solves a  complex problem by defining only those classes which are relevant to the  problem and not involving the whole complex code into play.<br />
<strong> 14)	 Explain what a method is?</strong><br />
A method will affect only a particular object to which it is specified.  Methods are verbs meaning they define actions which a particular object  will perform. It also defines various other characteristics of a  particular object.<br />
<strong> 15)	 Name the different Creational patterns in OO design?</strong><br />
There are three patterns of design out of which Creational patterns play  an important role the various patterns described underneath this are: -<br />
a)	Factory pattern<br />
b)	Single ton pattern<br />
c)	Prototype pattern<br />
d)	Abstract factory pattern<br />
e)	Builder pattern<br />
<strong>16)	 Explain about realistic modeling?</strong><br />
As we live in a world of objects, it logically follows that the object  oriented approach models the real world accurately. The object oriented  approach allows you to identify entities as objects having attributes  and behavior.<br />
<strong> 17)	 Explain about the analysis phase?</strong><br />
The anlaysis or the object oriented analysis phase considers the system  as a solution to a problem in its environment or domain. Developer  concentrates on obtaining as much information as possible about the  problem. Critical requirements needs to be identified.</p>
<p>************************************************************************************************************</p>
<p><strong>1)	Explain the rationale behind Object Oriented concepts?</strong></p>
<p>Object oriented concepts form the base of all modern programming  languages. Understanding the basic concepts of object-orientation helps a  developer to use various modern day programming languages, more  effectively.<br />
<strong>2)	Explain about Object oriented programming?</strong><br />
Object oriented programming is one of the most popular methodologies in  software development. It offers a powerful model for creating computer  programs. It speeds the program development process, improves  maintenance and enhances reusability of programs.<br />
<strong>3)	Explain what is an object?</strong><br />
An object is a combination of messages and data. Objects can receive and  send messages and use messages to interact with each other. The  messages contain information that is to be passed to the recipient  object.<br />
<strong>4)	Explain the implementation phase with respect to OOP?</strong><br />
The design phase is followed by OOP, which is the implementation phase.  OOP provides specifications for writing programs in a programming  language. During the implementation phase, programming is done as per  the requirements gathered during the analysis and design phases.<br />
<strong>5)	Explain about the Design Phase?</strong><br />
In the design phase, the developers of the system document their  understanding of the system. Design generates the blue print of the  system that is to be implemented. The first step in creating an object  oriented design is the identification of classes and their  relationships.<br />
<strong>6)	Explain about a class?</strong><br />
Class describes the nature of a particular thing. Structure and  modularity is provided by a Class in object oriented programming  environment. Characteristics of the class should be understandable by an  ordinary non programmer and it should also convey the meaning of the  problem statement to him. Class acts like a blue print.</p>
<p><strong>7)	 Explain about instance in object oriented programming?</strong><br />
Every class and an object have an instance. Instance of a particular  object is created at runtime. Values defined for a particular object  define its State. Instance of an object explains the relation ship  between different elements.<br />
<strong>8 )	Explain about inheritance?</strong><br />
Inheritance revolves around the concept of inheriting knowledge and  class attributes from the parent class. In general sense a sub class  tries to acquire characteristics from a parent class and they can also  have their own characteristics. Inheritance forms an important concept  in object oriented programming.<br />
<strong>9)	Explain about multiple inheritance?</strong><br />
Inheritance involves inheriting characteristics from its parents also  they can have their own characteristics. In multiple inheritance a class  can have characteristics from multiple parents or classes. A sub class  can have characteristics from multiple parents and still can have its  own characteristics.<br />
<strong>10)	 Explain about encapsulation?</strong><br />
Encapsulation passes the message without revealing the exact functional  details of the class. It allows only the relevant information to the  user without revealing the functional mechanism through which a  particular class had functioned.<br />
<strong>11)	 Explain about abstraction?</strong><br />
Abstraction simplifies a complex problem to a simpler problem by  specifying and modeling the class to the relevant problem scenario. It  simplifies the problem by giving the class its specific class of  inheritance. Composition also helps in solving the problem to an extent.<br />
<strong>12)	 Explain the mechanism of composition?</strong><br />
Composition helps to simplify a complex problem into an easier problem.  It makes different classes and objects to interact with each other thus  making the problem to be solved automatically. It interacts with the  problem by making different classes and objects to send a message to  each other.<br />
<strong>13)	 Explain about polymorphism?</strong><br />
Polymorphism helps a sub class to behave like a parent class. When an  object belonging to different data types respond to methods which have a  same name, the only condition being that those methods should perform  different function.<br />
<strong>14)	Explain about overriding polymorphism?</strong><br />
Overriding polymorphism is known to occur when a data type can perform  different functions. For example an addition operator can perform  different functions such as addition, float addition etc. Overriding  polymorphism is generally used in complex projects where the use of a  parameter is more.<br />
<strong>15)	 Explain about object oriented databases?</strong><br />
Object oriented databases are very popular such as relational database  management systems. Object oriented databases systems use specific  structure through which they extract data and they combine the data for a  specific output. These DBMS use object oriented languages to make the  process easier.<br />
<strong>16)	 Explain about parametric polymorphism?</strong><br />
Parametric polymorphism is supported by many object oriented languages  and they are very important for object oriented techniques. In  parametric polymorphism code is written without any specification for  the type of data present. Hence it can be used any number of times.<br />
<strong>17)	 What are all the languages which support OOP?</strong><br />
There are several programming languages which are implementing OOP  because of its close proximity to solve real life problems. Languages  such as Python, Ruby, Ruby on rails, Perl, PHP, Coldfusion, etc use OOP.  Still many languages prefer to use DOM based languages due to the ease  in coding.</p>
<p>var gaJsHost = ((“https:” == document.location.protocol) ?  “https://ssl.” : “http://www.”);<br />
document.write(unescape(“%3Cscript src=’” + gaJsHost +  “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));</p>
<p>try {<br />
var pageTracker = _gat._getTracker(“UA-1855756-5″);<br />
pageTracker._trackPageview();<br />
} catch(err) {}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/os-commerce/php-oops-interview-questions-answers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Php Interview Question</title>
		<link>http://www.manojpareta.info/os-commerce/php-interview-question/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-interview-question</link>
		<comments>http://www.manojpareta.info/os-commerce/php-interview-question/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 10:14:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Os Commerce]]></category>
		<category><![CDATA[Interview Question]]></category>
		<category><![CDATA[manoj]]></category>
		<category><![CDATA[manojpareta]]></category>
		<category><![CDATA[php interview question]]></category>
		<category><![CDATA[php question]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=286</guid>
		<description><![CDATA[1. What does a special set of tags &#60;?= and ?&#62; do in PHP? &#8211; The output is displayed directly to the browser.
2. What’s the difference between include and require? &#8211; 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 [...]]]></description>
			<content:encoded><![CDATA[<p>1. What does a special set of tags &lt;?= and ?&gt; do in PHP? &#8211; The output is displayed directly to the browser.<br />
2. What’s the difference between include and require? &#8211; 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.<br />
3. I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem? &#8211; PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.<br />
4. Would I use print &#8220;$a dollars&#8221; or &#8220;{$a} dollars&#8221; to print out the amount of dollars in this example? &#8211; In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like &#8220;{$a},000,000 mln dollars&#8221;, then you definitely need to use the braces.<br />
5. How do you define a constant? &#8211; Via define() directive, like define (&#8220;MYCONSTANT&#8221;, 100);<br />
6. How do you pass a variable by value? &#8211; Just like in C++, put an ampersand in front of it, like $a = &amp;$b<br />
7. Will comparison of string &#8220;10&#8243; and integer 11 work in PHP? &#8211; Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.<br />
8. When are you supposed to use endif to end the conditional statement? &#8211; When the original if was followed by : and then the code block without braces.<br />
9. Explain the ternary conditional operator in PHP? &#8211; Expression preceding the ? is evaluated, if it’s true, then the expression preceding the : is executed, otherwise, the expression following : is executed.<br />
10. How do I find out the number of parameters passed into function? &#8211; func_num_args() function returns the number of parameters passed in.<br />
11. If the variable $a is equal to 5 and variable $b is equal to character a, what’s the value of $$b? &#8211; 100, it’s a reference to existing variable.<br />
12. What’s the difference between accessing a class method via -&gt; and via ::? &#8211; :: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.<br />
13. Are objects passed by value or by reference? &#8211; Everything is passed by value.<br />
14. How do you call a constructor for a parent class? &#8211; parent::constructor($value)<br />
15. What’s the special meaning of __sleep and __wakeup? &#8211; __sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.<br />
16. Why doesn’t the following code print the newline properly? &lt;?php<br />
$str = ‘Hello, there.nHow are you?nThanks for visiting TechInterviews’;<br />
print $str;<br />
?&gt;<br />
Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters &#8211; and n.<br />
17. Would you initialize your strings with single quotes or double quotes? &#8211; Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.<br />
18. How come the code &lt;?php print &#8220;Contents: $arr[1]&#8220;; ?&gt; works, but &lt;?php print &#8220;Contents: $arr[1][2]&#8220;; ?&gt; doesn’t for two-dimensional array of mine? &#8211; Any time you have an array with more than one dimension, complex parsing syntax is required. print &#8220;Contents: {$arr[1][2]}&#8221; would’ve worked.<br />
19. What is the difference between characters �23 and x23? &#8211; The first one is octal 23, the second is hex 23.<br />
20. With a heredoc syntax, do I get variable substitution inside the heredoc contents? &#8211; Yes.<br />
21. I want to combine two variables together:</p>
<p>$var1 = &#8216;Welcome to &#8216;;<br />
$var2 = &#8216;TechInterviews.com&#8217;;</p>
<p>What will work faster? Code sample 1:</p>
<p>$var 3 = $var1.$var2;</p>
<p>Or code sample 2:</p>
<p>$var3 = &#8220;$var1$var2&#8243;;</p>
<p>Both examples would provide the same result &#8211; $var3 equal to &#8220;Welcome to TechInterviews.com&#8221;. However, Code Sample 1 will work significantly faster. Try it out with large sets of data (or via concatenating small sets a million times or so), and you will see that concatenation works significantly faster than variable substitution.<br />
22. For printing out strings, there are echo, print and printf. Explain the differences. &#8211; echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:</p>
<p>&lt;?php echo &#8216;Welcome &#8216;, &#8216;to&#8217;, &#8216; &#8216;, &#8216;TechInterviews!&#8217;; ?&gt;</p>
<p>and it will output the string &#8220;Welcome to TechInterviews!&#8221; print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.<br />
23. I am writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with PHP? &#8211; On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split().<br />
24. What’s the output of the ucwords function in this example?</p>
<p>$formatted = ucwords(&#8220;TECHINTERVIEWS IS COLLECTION OF INTERVIEW QUESTIONS&#8221;);<br />
print $formatted;</p>
<p>What will be printed is TECHINTERVIEWS IS COLLECTION OF INTERVIEW QUESTIONS.<br />
ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first.<br />
25. What’s the difference between htmlentities() and htmlspecialchars()? &#8211; htmlspecialchars only takes care of &lt;, &gt;, single quote ‘, double quote &#8221; and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.<br />
26. What’s the difference between md5(), crc32() and sha1() crypto on PHP? &#8211; The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.<br />
27. So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()? &#8211; Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/os-commerce/php-interview-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Cron</title>
		<link>http://www.manojpareta.info/php/wordpress-cron/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress-cron</link>
		<comments>http://www.manojpareta.info/php/wordpress-cron/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 10:07:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[kosti]]></category>
		<category><![CDATA[manoj]]></category>
		<category><![CDATA[pareta]]></category>
		<category><![CDATA[pareta cron]]></category>
		<category><![CDATA[php cron]]></category>
		<category><![CDATA[php wordpress cron]]></category>
		<category><![CDATA[scheduling]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=281</guid>
		<description><![CDATA[How to call some function after a particular interval of time  in a wordpress below is the answer :
WordPress has its own cron to automatically and scheduled run your tash. Therefore WordPress provides several functions to use the cron.
As default, WordPress can handle 3 time keys, which you can call with the function wp_schedule_event.
wp_schedule_event( time(), [...]]]></description>
			<content:encoded><![CDATA[<p>How to call some function after a particular interval of time  in a wordpress below is the answer :</p>
<p>WordPress has its own cron to automatically and scheduled run your tash. Therefore WordPress provides <a title="read in codex" href="http://codex.wordpress.org/Function_Reference/wp_schedule_event">several functions</a> to use the cron.</p>
<p>As default, WordPress can handle 3 time keys, which you can call with the function <code>wp_schedule_event</code>.</p>
<pre>wp_schedule_event( time(), 'hourly', 'my_task_hook' );

1. Time
2. Interval like (hourly, daily and twicedaily)
3. Your function like (my_task_hook)

Below is the uses:
<pre>if ( !wp_next_scheduled('my_task_hook') ) {
	wp_schedule_event( time(), 'hourly', 'my_task_hook' ); // hourly, daily and twicedaily
}
 
function my_task_function() {
	Your_function ('example@yoursite.com', 'Automatic mail', 'Hello, this is an automatically scheduled email from WordPress.');
}
add_action('my_task_hook', 'my_task_function');</pre>
<p>[There is a video that cannot be displayed in this feed. <a href="http://www.manojpareta.info/php/wordpress-cron/">Visit the blog entry to see the video.]</a></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/php/wordpress-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>contact</title>
		<link>http://www.manojpareta.info/blog/contact/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=contact</link>
		<comments>http://www.manojpareta.info/blog/contact/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:20:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=273</guid>
		<description><![CDATA[
		
		
		
		Send Me Teaser :-->
		
			Your Name(required)
			Email(valid email required)
			Message
		
		
		
			&#160;
			
			
			
			
			
			
			
		
		
		
		cforms contact form by delicious:days
]]></description>
			<content:encoded><![CDATA[<div class="side_right">
		<div id="usermessagea" class="cf_info "></div>
		<form enctype="multipart/form-data" action="/feed/#usermessagea" method="post" class="cform cfnoreset" id="cformsform">
		<fieldset class="cf-fs1">
		<legend>Send Me Teaser :--></legend>
		<ol class="cf-ol">
			<li id="li--2" class=""><label for="cf_field_2"><span>Your Name</span></label><input type="text" name="cf_field_2" id="cf_field_2" class="single fldrequired" value="Your Name" onfocus="clearField(this)" onblur="setField(this)"/><span class="reqtxt">(required)</span></li>
			<li id="li--3" class=""><label for="cf_field_3"><span>Email</span></label><input type="text" name="cf_field_3" id="cf_field_3" class="single fldemail fldrequired" value=""/><span class="emailreqtxt">(valid email required)</span></li>
			<li id="li--4" class=""><label for="cf_field_4"><span>Message</span></label><textarea cols="30" rows="8" name="cf_field_4" id="cf_field_4" class="area"></textarea></li>
		</ol>
		</fieldset>
		<fieldset class="cf_hidden">
			<legend>&nbsp;</legend>
			<input type="hidden" name="comment_post_ID" id="comment_post_ID" value="273"/>
			<input type="hidden" name="cforms_pl" id="cforms_pl" value="http://www.manojpareta.info/blog/contact/"/>
			<input type="hidden" name="cf_working" id="cf_working" value="One%20moment%20please..."/>
			<input type="hidden" name="cf_failure" id="cf_failure" value="Please%20fill%20in%20all%20the%20required%20fields."/>
			<input type="hidden" name="cf_codeerr" id="cf_codeerr" value="Please%20double-check%20your%20verification%20code."/>
			<input type="hidden" name="cf_customerr" id="cf_customerr" value="yyy"/>
			<input type="hidden" name="cf_popup" id="cf_popup" value="nn"/>
		</fieldset>
		<p class="cf-sb"><input type="submit" name="sendbutton" id="sendbutton" class="sendbutton" value="Submit" onclick="return cforms_validate('', false)"/></p>
		</form>
		<p class="linklove" id="ll"><a href="http://www.deliciousdays.com/cforms-plugin"><em>cforms</em> contact form by delicious:days</a></p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/blog/contact/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Url rewriterule using htaccess</title>
		<link>http://www.manojpareta.info/php/url-rewriterule-using-htaccess/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=url-rewriterule-using-htaccess</link>
		<comments>http://www.manojpareta.info/php/url-rewriterule-using-htaccess/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 08:40:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=267</guid>
		<description><![CDATA[The structure of a RewriteRule
RewriteRule Pattern Substitution [OptionalFlags]
The general structure of a RewriteRule is fairly simple if you already understand    regular expressions.  This article isn’t intended to be a tutorial about regular    expressions though &#8211; there are already plenty of those available.  RewriteRules are    [...]]]></description>
			<content:encoded><![CDATA[<h3>The structure of a RewriteRule</h3>
<pre>RewriteRule <em>Pattern Substitution [OptionalFlags]</em></pre>
<p>The general structure of a RewriteRule is fairly simple if you already understand    regular expressions.  This article isn’t intended to be a tutorial about regular    expressions though &#8211; there are already plenty of those available.  RewriteRules are    broken up as follows:</p>
<dl>
<dt>RewriteRule</dt>
<dd>This is just the name of the command.</p>
</dd>
<dt>Pattern</dt>
<dd>A regular expression which will be applied to the “current” URL.  If any RewriteRules          have already been performed on the requested URL, then that changed URL will be the          current URL.</p>
</dd>
<dt>Substitution</dt>
<dd>Substitution occurs in the same way as it does in Perl, PHP, etc.</p>
<p>You can include backreferences and server variable names (<code>%{VARNAME}</code>)  	      in the substitution.  Backreferences to this RewriteRule should be written as 	      <code>$N</code>, whereas backreferences to the previous RewriteCond should be written 	      as <code>%N</code>.</p>
<p>A special substitution is <code>-</code>.  This substitution tells Apache to not 	      perform any substitution.  I personally find that this is useful when using the 	      <code>F</code> or <code>G</code> flags (see below), but there are other uses as well.</p>
</dd>
<dt>OptionalFlags</dt>
<dd>This is the only part of the RewriteRule which isn’t mandatory.  Any flags which you          use should be surrounded in square brackets, and comma separated.  The flags which          I find to be most useful are:</p>
<ul>
<li><code>F</code> &#8211;  	            Forbidden.  The user will receive a 403 error.</li>
<li><code>L</code> &#8211;  	            Last Rule.  No more rules will be proccessed if this one was successful.</li>
<li><code>R[=code]</code> &#8211;  	            Redirect.  The user’s web browser will be visibly redirected to the substituted 	            URL.  If you use this flag, you <em>must</em> prefix the substitution with 	            <code>http://www.somesite.com/</code>, thus making it into a true URL.  If no 	            code is given, then a HTTP reponse of 302 (temporarily moved) is sent.</li>
</ul>
<p>A full list of flags is given in the Apache mod_rewrite manual.</p>
<p>&gt;&gt;you only need to do this once per .htaccess file:<br />
Options +FollowSymlinks<br />
RewriteEngine on</p>
<p>Below is the simple example:</p>
<p>&gt;&gt;Simply put, Apache scans all incoming URL requests, checks for matches in our .htaccess file and rewrites those matching URLs to whatever we specify. something like this..</p>
<p>All requests to whatever.htm will be sent to whatever.php:<br />
Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^(.*)\.htm$ $index.php [NC]</p>
<p>This will do a &#8220;real&#8221; external redirection:<br />
Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule ^(.+)\.htm$ http://manojpareta.info/$1.php [R,NC]</p>
</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/php/url-rewriterule-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get geo location using ip</title>
		<link>http://www.manojpareta.info/php/get-geo-location-using-ip/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=get-geo-location-using-ip</link>
		<comments>http://www.manojpareta.info/php/get-geo-location-using-ip/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 11:00:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[get location using ip]]></category>
		<category><![CDATA[ip details]]></category>
		<category><![CDATA[remotelocation]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=258</guid>
		<description><![CDATA[Why Geolocation?
The benefits of geolocation may sound complex, but a simple example may help illustrate the possibilities. Consider a traveling businessman currently on the road to San Francisco. After checking into his hotel, he pulls out his laptop and hops onto the wireless Internet access point provided by the hotel. He opens his chat program [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Why Geolocation?</strong></p>
<p>The benefits of geolocation may sound complex, but a simple example may help illustrate the possibilities. Consider a traveling businessman currently on the road to San Francisco. After checking into his hotel, he pulls out his laptop and hops onto the wireless Internet access point provided by the hotel. He opens his chat program as well as a Web browser. His friends and family see from his chat profile that he currently is near Golden Gate Park. Consequently, they can determine his local time. By pulling up a Web browser, furthermore, the businessman can do a localized search to find nearby restaurants and theaters.</p>
<p>Without having to know the address of the hotel he&#8217;s staying in, the chat program and Web pages can determine his location based on the Internet address through which he is connecting. The following week, when he has returned to his home in Florida, he uses his laptop to log into a chat program, and his chat profile correctly places him in his home city. There is no need to change computer configurations, remember addresses or even be aware, as the user, that you are benefitting from geolocation services.</p>
<p><strong>Geolocation Standards and Services:</strong></p>
<p>To get the complete detail of your ip, you just need to use very simple line of code or you can get full ip detail by just passing the ip in url as a parameter .</p>
<p>For example, a function in PHP for getting and parsing the NetGeo response looks like this:</p>
<pre>--
1: function getLocationCaidaNetGeo($ip)
2: {
3: $NetGeoURL = "http://netgeo.caida.org/perl/netgeo.cgi?target=".$ip;
4:
5: if($NetGeoFP = fopen($NetGeoURL,r))
6: {
7:         ob_start();
8:
9:         fpassthru($NetGeoFP);
10:         $NetGeoHTML = ob_get_contents();
11:         ob_end_clean();
12:
13: fclose($NetGeoFP);
14: }
15: preg_match ("/LAT:(.*)/i", $NetGeoHTML, $temp) or die("Could not find element LAT");
16: $location[0] = $temp[1];
17: preg_match ("/LONG:(.*)/i", $NetGeoHTML, $temp) or die("Could not find element LONG");
18: $location[1] = $temp[1];
19:
20: return $location;
21: }
--
</pre>
<pre>$ http://netgeo.caida.org/perl/netgeo.cgi?target=192.168.0.1
VERSION=1.0
TARGET: 192.168.0.1
NAME: IANA-CBLK1
NUMBER: 192.168.0.0 - 192.168.255.255
CITY: MARINA DEL REY
STATE: CALIFORNIA
COUNTRY: US
LAT: 33.98
LONG: -118.45
LAT_LONG_GRAN: City
LAST_UPDATED: 16-May-2001
NIC: ARIN
LOOKUP_TYPE: Block Allocation
RATING:
DOMAIN_GUESS: iana.org
STATUS: OK
</pre>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/php/get-geo-location-using-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moda4friends</title>
		<link>http://www.manojpareta.info/os-commerce/moda4friends/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=moda4friends</link>
		<comments>http://www.manojpareta.info/os-commerce/moda4friends/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 12:10:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Os Commerce]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=202</guid>
		<description><![CDATA[My cerloaded project
]]></description>
			<content:encoded><![CDATA[<p>My cerloaded project</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/os-commerce/moda4friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Photos</title>
		<link>http://www.manojpareta.info/blog/my-favourite-videos/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=my-favourite-videos</link>
		<comments>http://www.manojpareta.info/blog/my-favourite-videos/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 10:16:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=115</guid>
		<description><![CDATA[
 Hi this is manoj pareta
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.manojpareta.info/wp-content/uploads/2009/08/30052009639.jpg"><img class="alignnone size-medium wp-image-156" title="30052009639" src="http://www.manojpareta.info/wp-content/uploads/2009/08/30052009639-300x225.jpg" alt="" width="300" height="225" /></a><br />
<span id="more-115"></span> Hi this is manoj pareta</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/blog/my-favourite-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oldest Domain Names On Internet</title>
		<link>http://www.manojpareta.info/os-commerce/oldest-domain-names-on-internet/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=oldest-domain-names-on-internet</link>
		<comments>http://www.manojpareta.info/os-commerce/oldest-domain-names-on-internet/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 09:16:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Os Commerce]]></category>

		<guid isPermaLink="false">http://www.manojpareta.info/?p=87</guid>
		<description><![CDATA[

Rank
Registered Date
Domain Name


1
15-March-1985
SYMBOLICS.COM


2
24-April-1985
BBN.COM


3
24-May-1985
THINK.COM


4
11-July-1985
MCC.COM


5
30-September-1985
DEC.COM


6
07-November-1985
NORTHROP.COM


7
09-January-1986
XEROX.COM


8
17-January-1986
SRI.COM


9
03-March-1986
HP.COM


10
05-March-1986
BELLCORE.COM


11
19-March-1986
IBM.COM


11
19-March-1986
SUN.COM


13
25-March-1986
INTEL.COM


13
25-March-1986
TI.COM


15
25-April-1986
ATT.COM


16
08-May-1986
GMR.COM


16
08-May-1986
TEK.COM


18
10-July-1986
FMC.COM


18
10-July-1986
UB.COM


20
05-August-1986
BELL-ATL.COM


20
05-August-1986
GE.COM


20
05-August-1986
GREBYN.COM


20
05-August-1986
ISC.COM


20
05-August-1986
NSC.COM


20
05-August-1986
STARGATE.COM


26
02-September-1986
BOEING.COM


27
18-September-1986
ITCORP.COM


28
29-September-1986
SIEMENS.COM


29
18-October-1986
PYRAMID.COM


30
27-October-1986
ALPHACDC.COM


30
27-October-1986
BDM.COM


30
27-October-1986
FLUKE.COM


30
27-October-1986
INMET.COM


30
27-October-1986
KESMAI.COM


30
27-October-1986
MENTOR.COM


30
27-October-1986
NEC.COM


30
27-October-1986
RAY.COM


30
27-October-1986
ROSEMOUNT.COM


30
27-October-1986
VORTEX.COM


40
05-November-1986
ALCOA.COM


40
05-November-1986
GTE.COM


42
17-November-1986
ADOBE.COM


42
17-November-1986
AMD.COM


42
17-November-1986
DAS.COM


42
17-November-1986
DATA-IO.COM


42
17-November-1986
OCTOPUS.COM


42
17-November-1986
PORTAL.COM


42
17-November-1986
TELTONE.COM


42
11-December-1986
3COM.COM


50
11-December-1986
AMDAHL.COM


50
11-December-1986
CCUR.COM


50
11-December-1986
CI.COM


50
11-December-1986
CONVERGENT.COM


50
11-December-1986
DG.COM


50
11-December-1986
PEREGRINE.COM


50
11-December-1986
QUAD.COM


50
11-December-1986
SQ.COM


50
11-December-1986
TANDY.COM


50
11-December-1986
TTI.COM


50
11-December-1986
UNISYS.COM


61
19-January-1987
CGI.COM


61
19-January-1987
CTS.COM


61
19-January-1987
SPDCC.COM


64
19-February-1987
APPLE.COM


65
04-March-1987
NMA.COM


65
04-March-1987
PRIME.COM


67
04-April-1987
PHILIPS.COM


68
23-April-1987
DATACUBE.COM


68
23-April-1987
KAI.COM


68
23-April-1987
TIC.COM


68
23-April-1987
VINE.COM


72
30-April-1987
NCR.COM


73
14-May-1987
CISCO.COM


73
14-May-1987
RDL.COM


75
20-May-1987
SLB.COM


76
27-May-1987
PARCPLACE.COM


76
27-May-1987
UTC.COM


78
26-June-1987
IDE.COM


79
09-July-1987
TRW.COM


80
13-July-1987
UNIPRESS.COM


81
27-July-1987
DUPONT.COM


81
27-July-1987
LOCKHEED.COM


83
28-July-1987
ROSETTA.COM


84
18-August-1987
TOAD.COM


85
31-August-1987
QUICK.COM


86
03-September-1987
ALLIED.COM


86
03-September-1987
DSC.COM


86
03-September-1987
SCO.COM


89
22-September-1987
GENE.COM


89
22-September-1987
KCCS.COM


89
22-September-1987
SPECTRA.COM


89
22-September-1987
WLK.COM


93
30-September-1987
MENTAT.COM


94
14-October-1987
WYSE.COM


95
02-November-1987
CFG.COM


96
09-November-1987
MARBLE.COM


97
16-November-1987
CAYMAN.COM


97
16-November-1987
ENTITY.COM


99
24-November-1987
KSR.COM


100
30-November-1987
NYNEXST.COM


]]></description>
			<content:encoded><![CDATA[<div>
<div style="width: 500px;">
<div style="width: 20px; float: left;"><strong>Rank</strong></div>
<div style="width: 240px; text-align: center; float: left;"><strong>Registered Date</strong></div>
<div style="width: 240px; text-align: center; float: left;"><strong>Domain Name</strong></div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">1</div>
<div style="width: 240px; text-align: center; float: left;">15-March-1985</div>
<div style="width: 240px; text-align: center; float: left;">SYMBOLICS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">2</div>
<div style="width: 240px; text-align: center; float: left;">24-April-1985</div>
<div style="width: 240px; text-align: center; float: left;">BBN.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">3</div>
<div style="width: 240px; text-align: center; float: left;">24-May-1985</div>
<div style="width: 240px; text-align: center; float: left;">THINK.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">4</div>
<div style="width: 240px; text-align: center; float: left;">11-July-1985</div>
<div style="width: 240px; text-align: center; float: left;">MCC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">5</div>
<div style="width: 240px; text-align: center; float: left;">30-September-1985</div>
<div style="width: 240px; text-align: center; float: left;">DEC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">6</div>
<div style="width: 240px; text-align: center; float: left;">07-November-1985</div>
<div style="width: 240px; text-align: center; float: left;">NORTHROP.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">7</div>
<div style="width: 240px; text-align: center; float: left;">09-January-1986</div>
<div style="width: 240px; text-align: center; float: left;">XEROX.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">8</div>
<div style="width: 240px; text-align: center; float: left;">17-January-1986</div>
<div style="width: 240px; text-align: center; float: left;">SRI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">9</div>
<div style="width: 240px; text-align: center; float: left;">03-March-1986</div>
<div style="width: 240px; text-align: center; float: left;">HP.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">10</div>
<div style="width: 240px; text-align: center; float: left;">05-March-1986</div>
<div style="width: 240px; text-align: center; float: left;">BELLCORE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">11</div>
<div style="width: 240px; text-align: center; float: left;">19-March-1986</div>
<div style="width: 240px; text-align: center; float: left;">IBM.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">11</div>
<div style="width: 240px; text-align: center; float: left;">19-March-1986</div>
<div style="width: 240px; text-align: center; float: left;">SUN.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">13</div>
<div style="width: 240px; text-align: center; float: left;">25-March-1986</div>
<div style="width: 240px; text-align: center; float: left;">INTEL.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">13</div>
<div style="width: 240px; text-align: center; float: left;">25-March-1986</div>
<div style="width: 240px; text-align: center; float: left;">TI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">15</div>
<div style="width: 240px; text-align: center; float: left;">25-April-1986</div>
<div style="width: 240px; text-align: center; float: left;">ATT.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">16</div>
<div style="width: 240px; text-align: center; float: left;">08-May-1986</div>
<div style="width: 240px; text-align: center; float: left;">GMR.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">16</div>
<div style="width: 240px; text-align: center; float: left;">08-May-1986</div>
<div style="width: 240px; text-align: center; float: left;">TEK.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">18</div>
<div style="width: 240px; text-align: center; float: left;">10-July-1986</div>
<div style="width: 240px; text-align: center; float: left;">FMC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">18</div>
<div style="width: 240px; text-align: center; float: left;">10-July-1986</div>
<div style="width: 240px; text-align: center; float: left;">UB.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">20</div>
<div style="width: 240px; text-align: center; float: left;">05-August-1986</div>
<div style="width: 240px; text-align: center; float: left;">BELL-ATL.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">20</div>
<div style="width: 240px; text-align: center; float: left;">05-August-1986</div>
<div style="width: 240px; text-align: center; float: left;">GE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">20</div>
<div style="width: 240px; text-align: center; float: left;">05-August-1986</div>
<div style="width: 240px; text-align: center; float: left;">GREBYN.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">20</div>
<div style="width: 240px; text-align: center; float: left;">05-August-1986</div>
<div style="width: 240px; text-align: center; float: left;">ISC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">20</div>
<div style="width: 240px; text-align: center; float: left;">05-August-1986</div>
<div style="width: 240px; text-align: center; float: left;">NSC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">20</div>
<div style="width: 240px; text-align: center; float: left;">05-August-1986</div>
<div style="width: 240px; text-align: center; float: left;">STARGATE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">26</div>
<div style="width: 240px; text-align: center; float: left;">02-September-1986</div>
<div style="width: 240px; text-align: center; float: left;">BOEING.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">27</div>
<div style="width: 240px; text-align: center; float: left;">18-September-1986</div>
<div style="width: 240px; text-align: center; float: left;">ITCORP.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">28</div>
<div style="width: 240px; text-align: center; float: left;">29-September-1986</div>
<div style="width: 240px; text-align: center; float: left;">SIEMENS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">29</div>
<div style="width: 240px; text-align: center; float: left;">18-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">PYRAMID.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">ALPHACDC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">BDM.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">FLUKE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">INMET.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">KESMAI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">MENTOR.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">NEC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">RAY.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">ROSEMOUNT.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">30</div>
<div style="width: 240px; text-align: center; float: left;">27-October-1986</div>
<div style="width: 240px; text-align: center; float: left;">VORTEX.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">40</div>
<div style="width: 240px; text-align: center; float: left;">05-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">ALCOA.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">40</div>
<div style="width: 240px; text-align: center; float: left;">05-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">GTE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">ADOBE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">AMD.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">DAS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">DATA-IO.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">OCTOPUS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">PORTAL.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">17-November-1986</div>
<div style="width: 240px; text-align: center; float: left;">TELTONE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">42</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">3COM.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">AMDAHL.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">CCUR.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">CI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">CONVERGENT.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">DG.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">PEREGRINE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">QUAD.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">SQ.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">TANDY.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">TTI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">50</div>
<div style="width: 240px; text-align: center; float: left;">11-December-1986</div>
<div style="width: 240px; text-align: center; float: left;">UNISYS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">61</div>
<div style="width: 240px; text-align: center; float: left;">19-January-1987</div>
<div style="width: 240px; text-align: center; float: left;">CGI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">61</div>
<div style="width: 240px; text-align: center; float: left;">19-January-1987</div>
<div style="width: 240px; text-align: center; float: left;">CTS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">61</div>
<div style="width: 240px; text-align: center; float: left;">19-January-1987</div>
<div style="width: 240px; text-align: center; float: left;">SPDCC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">64</div>
<div style="width: 240px; text-align: center; float: left;">19-February-1987</div>
<div style="width: 240px; text-align: center; float: left;">APPLE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">65</div>
<div style="width: 240px; text-align: center; float: left;">04-March-1987</div>
<div style="width: 240px; text-align: center; float: left;">NMA.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">65</div>
<div style="width: 240px; text-align: center; float: left;">04-March-1987</div>
<div style="width: 240px; text-align: center; float: left;">PRIME.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">67</div>
<div style="width: 240px; text-align: center; float: left;">04-April-1987</div>
<div style="width: 240px; text-align: center; float: left;">PHILIPS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">68</div>
<div style="width: 240px; text-align: center; float: left;">23-April-1987</div>
<div style="width: 240px; text-align: center; float: left;">DATACUBE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">68</div>
<div style="width: 240px; text-align: center; float: left;">23-April-1987</div>
<div style="width: 240px; text-align: center; float: left;">KAI.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">68</div>
<div style="width: 240px; text-align: center; float: left;">23-April-1987</div>
<div style="width: 240px; text-align: center; float: left;">TIC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">68</div>
<div style="width: 240px; text-align: center; float: left;">23-April-1987</div>
<div style="width: 240px; text-align: center; float: left;">VINE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">72</div>
<div style="width: 240px; text-align: center; float: left;">30-April-1987</div>
<div style="width: 240px; text-align: center; float: left;">NCR.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">73</div>
<div style="width: 240px; text-align: center; float: left;">14-May-1987</div>
<div style="width: 240px; text-align: center; float: left;">CISCO.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">73</div>
<div style="width: 240px; text-align: center; float: left;">14-May-1987</div>
<div style="width: 240px; text-align: center; float: left;">RDL.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">75</div>
<div style="width: 240px; text-align: center; float: left;">20-May-1987</div>
<div style="width: 240px; text-align: center; float: left;">SLB.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">76</div>
<div style="width: 240px; text-align: center; float: left;">27-May-1987</div>
<div style="width: 240px; text-align: center; float: left;">PARCPLACE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">76</div>
<div style="width: 240px; text-align: center; float: left;">27-May-1987</div>
<div style="width: 240px; text-align: center; float: left;">UTC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">78</div>
<div style="width: 240px; text-align: center; float: left;">26-June-1987</div>
<div style="width: 240px; text-align: center; float: left;">IDE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">79</div>
<div style="width: 240px; text-align: center; float: left;">09-July-1987</div>
<div style="width: 240px; text-align: center; float: left;">TRW.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">80</div>
<div style="width: 240px; text-align: center; float: left;">13-July-1987</div>
<div style="width: 240px; text-align: center; float: left;">UNIPRESS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">81</div>
<div style="width: 240px; text-align: center; float: left;">27-July-1987</div>
<div style="width: 240px; text-align: center; float: left;">DUPONT.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">81</div>
<div style="width: 240px; text-align: center; float: left;">27-July-1987</div>
<div style="width: 240px; text-align: center; float: left;">LOCKHEED.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">83</div>
<div style="width: 240px; text-align: center; float: left;">28-July-1987</div>
<div style="width: 240px; text-align: center; float: left;">ROSETTA.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">84</div>
<div style="width: 240px; text-align: center; float: left;">18-August-1987</div>
<div style="width: 240px; text-align: center; float: left;">TOAD.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">85</div>
<div style="width: 240px; text-align: center; float: left;">31-August-1987</div>
<div style="width: 240px; text-align: center; float: left;">QUICK.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">86</div>
<div style="width: 240px; text-align: center; float: left;">03-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">ALLIED.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">86</div>
<div style="width: 240px; text-align: center; float: left;">03-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">DSC.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">86</div>
<div style="width: 240px; text-align: center; float: left;">03-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">SCO.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">89</div>
<div style="width: 240px; text-align: center; float: left;">22-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">GENE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">89</div>
<div style="width: 240px; text-align: center; float: left;">22-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">KCCS.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">89</div>
<div style="width: 240px; text-align: center; float: left;">22-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">SPECTRA.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">89</div>
<div style="width: 240px; text-align: center; float: left;">22-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">WLK.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">93</div>
<div style="width: 240px; text-align: center; float: left;">30-September-1987</div>
<div style="width: 240px; text-align: center; float: left;">MENTAT.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">94</div>
<div style="width: 240px; text-align: center; float: left;">14-October-1987</div>
<div style="width: 240px; text-align: center; float: left;">WYSE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">95</div>
<div style="width: 240px; text-align: center; float: left;">02-November-1987</div>
<div style="width: 240px; text-align: center; float: left;">CFG.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">96</div>
<div style="width: 240px; text-align: center; float: left;">09-November-1987</div>
<div style="width: 240px; text-align: center; float: left;">MARBLE.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">97</div>
<div style="width: 240px; text-align: center; float: left;">16-November-1987</div>
<div style="width: 240px; text-align: center; float: left;">CAYMAN.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">97</div>
<div style="width: 240px; text-align: center; float: left;">16-November-1987</div>
<div style="width: 240px; text-align: center; float: left;">ENTITY.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">99</div>
<div style="width: 240px; text-align: center; float: left;">24-November-1987</div>
<div style="width: 240px; text-align: center; float: left;">KSR.COM</div>
</div>
<div style="width: 500px;">
<div style="width: 20px; float: left;">100</div>
<div style="width: 240px; text-align: center; float: left;">30-November-1987</div>
<div style="width: 240px; text-align: center; float: left;">NYNEXST.COM</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.manojpareta.info/os-commerce/oldest-domain-names-on-internet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
