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: CMS, content management system | 1 Comment »
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: Javascript | No Comments »
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: eregi_replace, ereg_replace, PHP | 1 Comment »
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: get, PHP, post | 2 Comments »
Posted by lampinterview on May 14, 2008
Posted in PHP | Tagged: PHP | 1 Comment »
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: PHP, session | 2 Comments »
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: PHP | No Comments »
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: errors, PHP | No Comments »
Posted by lampinterview on May 14, 2008
The Zend Engine is an open-source scripting engine.
Posted in PHP | Tagged: PHP, zend | No Comments »
Posted by lampinterview on May 14, 2008
imagetypes ? Return the image types supported by this PHP
build
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
Example 1. imagetypes()
Posted in PHP | Tagged: PHP | No Comments »