0% found this document useful (0 votes)
107 views6 pages

Archive For The PHP Category

A Content Management System (CMS) allows adding, editing, and deleting content on a website easily. It stores pages in a database rather than files so adding new pages is simpler, especially for large sites. Screen resolution can be retrieved using JavaScript functions like screen.width and screen.height in PHP. eregi_replace() is identical to ereg_replace() but ignores case when matching letters. The GET method shows info in the URL while POST is more secure as it does not display sensitive data in the URL.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views6 pages

Archive For The PHP Category

A Content Management System (CMS) allows adding, editing, and deleting content on a website easily. It stores pages in a database rather than files so adding new pages is simpler, especially for large sites. Screen resolution can be retrieved using JavaScript functions like screen.width and screen.height in PHP. eregi_replace() is identical to ereg_replace() but ignores case when matching letters. The GET method shows info in the URL while POST is more secure as it does not display sensitive data in the URL.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Archive for the PHP Category

Previous Entries

What is meant by content management system?


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.

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


Yes, it is possible to get screen resolution. But much more easy with javascript: Use => screen.width && screen.heigth

Posted in PHP | Tagged: Javascript | Leave a Comment

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


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 | 2 Comments

Whats diffrence between Get() and Post() Function.


Get shows information traveling 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

What does PHP stand for?


Personal home page Hypertext Pre Processor

Posted in PHP | Tagged: PHP | 2 Comments

How can we destroy the session, how can we unset the variable of a session?
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

What is the use of friend function?


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 | Leave a Comment

What are the types of errors in PHP?


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 behavior. 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 PHPs default behaviour is to display them to the user when they take place. Posted in PHP | Tagged: errors, PHP | Leave a Comment

What is zend engine?


The Zend Engine is an open-source scripting engine.

Posted in PHP | Tagged: PHP, zend | Leave a Comment

What types images that php supports?


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 | Leave a Comment

In PHP how many size data can upload by default?


As far i know it depends on your limitations specified by your hosting provider but not by your script. In general when you are uploading large file sizes it is advisable to use FTP protocol to load them into your server. For small filesizes you can load them using HTTP.

Posted in PHP | Tagged: PHP | 2 Comments

Functions in IMAP, POP3 AND LDAP?


Examples of IMAP Functions: 1. imap_list : Read the list of mailboxes 2. imap_open : Opens an IMAP stream to mailbox Examples of LDAP Functions: 1. ldap_connect : This will connect to the ldap server with the given login credentials. 2. ldap_search : By using this command we can search in ldap records.

Posted in PHP | Tagged: IMAP, LDAP, PHP, POP3 | Leave a Comment

How can we encrypt and decrypt a data presented in a table using MySQL?
You can use functions: AES_ENCRYPT() and AES_DECRYPT() like: AES_ENCRYPT(str, key_str) AES_DECRYPT(crypt_str, key_str) Posted in PHP | Tagged: PHP | Leave a Comment

What is the diffrence between Notify URL and Return URL?


Notify URL is used to just notify the status while processing. Return URL is used to return after processing .

Posted in PHP | Tagged: html | Leave a Comment

What is use of nl2br function?

nl2br() inserts a HTML tag <br> before all new line characters \n in a string. echo nl2br(god bless \n you); output: god bless<br> you Posted in PHP | Tagged: PHP | 1 Comment

What is the use of ob_start?


ob_start is used to initializing the object buffer, so that the whole page will be first parsed (instead of parsing in parts and thrown to browser gradually) and stored in output buffer so that after complete page is executed, it is thrown to the browser once at a time.

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

What are the MySQL database files stored in system?


Data is stored in name.myd Table structure is stored in name.frm Index is stored in name.myi Posted in PHP | Tagged: MYSQL | Leave a Comment

How many types of tables are in MYSQL database?


MyISAM InnoDB Memory Merge Archive Federated NDB CSV Blackhole

Posted in PHP | Tagged: MYSQL, types of table in mysql | Leave a Comment

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?
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. Posted in PHP | Tagged: PHP, session | Leave a Comment

PHP header function.


Generally header() being used for page redirection but header() may also be use for page authentication,
assigning content type, cache control, etc.

Posted in PHP | Tagged: Header function, PHP | Leave a Comment

You might also like