Home | Contact Us | Log In | Help
HOME NEW LISTING MOST POPULAR HIGHEST RATED SCRIPTS ADD SCRIPT DOWNLOADS FORUM
Tutorials
  ASP.Net & C#
  ASP
  Perl and PHP
  Java Scripts
  C and C++
  Ajax Tutorials
  J2ee, J2Me, Java
  Python & Ruby Rail
  Crystal Report
  Sap
  CGI
  XML
  Cold Fusion & CFML
  HTML, DHTML & CSS
  Dreamweaver
  FLASH
  Photoshop/Web Designing
  Tools & Utilities
  Oracle/D2K
  Sql Server
  MySql
  Domain Name Registration
  Remotely Hosting
  Web/Server Application
  Hotel Marketing
  Internet and Law
   Search Engine Optimization/SEO
E-Commerce
Interview Questions

Previous < 1 2 3 4 5 6 > Next

Perl and PHP (INTERVIEW QUESTIONS) 3
  How many ways we can retrieve the date in result set of mysql Using php?

As individual objects so single record or as a set or arrays.

   
  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?

    Get:
i. Get is one of the predefined variables.
ii. It is used to send short data
iii. Get data variables and values are visible at browser.
iv. It is unsecure.
v. 2083 character we can pass through url
    Post:
i. Post is one of the predefined variables.
ii. It is used to send more than 100 characters
iii. Post data variables and values are not visible at browser.
iv. It is secure.
v. 8 mb of data we can post

 
  How can we extract string ‘abc.com ‘ from a string ‘http://info@abc.com’ using regular expression of PHP?

   i. using strstr function
  Echo strstr(“http://info@abc.com”, ‘@’)
or
  ii. using list and split functions
  list($first,$second)=split(“@”,”http://info@abc.com”,2)
  echo $second;

 
  In how many ways we can retrieve the data in the result set of mysql using PHP?

In four ways we can retrieve data from mysql database. They are
  i. mysql_fetch_array();
  ii. mysql_fetch_row();
  iii. mysql_fetch_assoc()
  iv. mysql_fetch_object()

 
  What is the difference between mysql_fetch_object and mysql_fetch_array?

mysql_fetch_array
  i. We can access the data by the field names or their offsets
  mysql_fetch_object
  i. We can only access the data by the field names

 
  What types of arrays in PHP?

Types of arrays:
  • Numerically indexed arrays
  • Associative arrays
  • Multidimensional arrays
  • Sorting arrays

 
  What is changed between PHP 4 and PHP is the XML support?

  Two extensions have changed.
The XSLT extension present in PHP4 is not the XSL extension in PHP 5.
Additionally, the XML-DOM extension in PHP 4 is not the DOM extension
is PHP 5. What this means is that the syntax of the functions in these extensions have changed but the purpose of the extensions has not changed.
  In PHP 4, objects were really just primitive data types, and were referenced by value. In an attempt to retain as much backward compatibility as possible, setting the zend.ze1_compatibility_mode in PHP 5 allows compatibility with the version 4 methods. There are a number of other backward incompatible changes.

 
  What is PHP and what's it got to do with Oracle?

  PHP is a recursive acronym for "PHP Hypertext Preprocessor". It is an open source, interpretive, HTML centric, server side scripting language. PHP is especially suited for Web development and can be embedded into HTML pages. PHP is comparable to languages such as JSP (Java Server Pages) and Oracle's PSP (PL/SQL Server Pages).
  This FAQ describes how PHP interacts with the Oracle Database. It assumes that the reader has PHP installed and working. To test if PHP is working, create a simple PHP document, say hello.php:
If PHP is working, you will see "Hello World" below:
  echo "Hello world";
  phpinfo(); // Print PHP version and config info
  ?>
Execute hello.php from command line (php hello.php) or open it from a web browser (http://localhost/hello.php) to see the output. If it's not working, PHP is not correctly installed and this FAQ will not help you.

 
  What is the difference between the OCI and ORA extension modules?

 PHP offers two extension modules that can be used to connect to Oracle:
  * The normal Oracle functions (ORA); and
  * the Oracle Call-Interface functions (OCI).
OCI should be used whenever possible since it is optimised and provides more options. For example, ORA doesn't include support for CLOBs, BLOBs, BFILEs, ROWIDs, etc.

 

Previous < 1 2 3 4 5 6 > Next

  Copyright 2000-2006 © SoloScript.com, All rights reserved.