LAMPInterview

A Venture from AccuGlobal.com

Archive for May, 2008

What is meant by content management system?

Posted by lampinterview on May 14, 2008

A Content Management System (CMS) is used to add, edit, and delete content on a website. For a small website, such
as this, adding and deleting a page manually is fairly simple. But for a large website with lots of pages like a
news website adding a page manually without a content management system can be a headache.

A CMS is meant to ease the process of adding and modifying new content to a webpage. The pages content are stored in
database, not in the file server.

Posted in PHP | Tagged: , | 1 Comment »

write the function to fetch a image from mysql databases (datatype blob).

Posted by lampinterview on May 14, 2008

A BLOB is a binary large object that can hold a variable amount of data. The four BLOB  types are TINYBLOB, BLOB,
MEDIUMBLOB, and LONGBLOB. These differ only in the maximum length of the values they can hold. The four TEXT types are
TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT. BLOB columns are treated as binary strings (byte strings).
TEXT columns are treated as non-binary strings (character strings). BLOB  columns have no character set, and sorting
and comparison are based on the numeric values of the bytes in column values. TEXT columns have a character set, and
values are sorted and compared based on the collation of the character set.

Posted in MYSQL | Tagged: | No Comments »

Is it possible to get the screen resolution and like with php?

Posted by lampinterview on May 14, 2008

Yes, it is possible to get screen resolution. But much more easy with javascript:

Use => screen.width && screen.heigth

Posted in PHP | Tagged: | No Comments »

What is the difference between ereg_replace() and eregi_replace()?

Posted by lampinterview on May 14, 2008

eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching
alphabetic characters.

Posted in PHP | Tagged: , , | 1 Comment »

What’s diffrence between Get() and Post() Function.

Posted by lampinterview on May 14, 2008

Get shows information travling on the address bar but pet do not shows in this way the post method is more
secure than get.

Posted in PHP | Tagged: , , | 2 Comments »

What does PHP stand for?

Posted by lampinterview on May 14, 2008

Personal home page

Posted in PHP | Tagged: | 1 Comment »

How can we destroy the session, how can we unset the variable of a session?

Posted by lampinterview on May 14, 2008

session_destroy() function destroys all data registered to current session. use unset function to destroy varible
specified with session. So to destroy $name registered with session use unset($name) in your php script.

Posted in PHP | Tagged: , | 2 Comments »

What is the use of friend function?

Posted by lampinterview on May 14, 2008

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. 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.

Posted in PHP | Tagged: | No Comments »

What are the types of errors in PHP?

Posted by lampinterview on May 14, 2008

Three are three types of errors:

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, as you will see, you can change this default behaviour.

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.

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 behaviour is to display them to the user when they take place.

Posted in PHP | Tagged: , | No Comments »

What is zend engine?

Posted by lampinterview on May 14, 2008

The Zend Engine is an open-source scripting engine.

Posted in PHP | Tagged: , | No Comments »