1- How to reset/destroy a cookie ?
Reset a cookie by specifying expire time in the past:
Example: setcookie(‘Test’,$i,time()-3600); // already expired time
Reset a cookie by specifying its name only
2- What types of images that PHP supports ?
Using imagetypes() function to find out what types of images are supported in your PHP engine.
imagetypes() – Returns the image types supported.
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.
var myValue =9.8;
alert(‘Not an integer’);
4- Tools used for drawing ER diagrams.
bool is_numeric( mixed var)
Returns TRUE if var is a number or a numeric string, FALSE otherwise.
Definition and Usage
The isNaN() function is used to check if a value is not a number.
number Required. The value to be tested
6- How can we submit from without a submit button?
7- How many ways can we get the value of current session id?
session_id() returns the session id for the current session.
8- How can we destroy the cookie?
Set the cookie with a past expiration time.
9- What are the current versions of Apache, PHP, and MySQL?
PHP: PHP 5..3.6 (Stable Version)
MySQL: MySQL 5.5.14
Apache: Apache 2.2.19
10- What are the reasons for selecting LAMP (Linux, Apache, MySQL, Php) instead of combination of other software programs, servers and operating systems?
All of those are open source resource. Security of Linux is 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.
11- What are the features and advantages of OBJECT ORIENTED PROGRAMMING?
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.
12- How can we get second of the current time using date function?
$second = date(“s”);
13- What is htaccess? Why do we use this and Where?
Answers :.htaccess files are configuration files of Apache Server which provide
a way to make configuration changes on a per-directory basis. A file,
containing one or more configuration directives, is placed in a particular
document directory, and the directives apply to that directory, and all