LAMPInterview

A Venture from AccuGlobal.com

Archive for May 14th, 2008

is ‘easyphp’ is compelete technology to design a phpmysql?

Posted by lampinterview on May 14, 2008

Yes,easyphp include webserver,php and mysql

Posted in MYSQL | Tagged: | 1 Comment »

What types images that php supports?

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: | No Comments »

In PHP how many size data can upload by default?

Posted by lampinterview on May 14, 2008

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

Functions in IMAP, POP3 AND LDAP?

Posted by lampinterview on May 14, 2008

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: , , , | No Comments »

How can we create a database using PHP and mysql?

Posted by lampinterview on May 14, 2008

mysql_create_db() is used to create database in mysql.

Posted in MYSQL | Tagged: | No Comments »

How can we encrypt and decrypt a data presented in a table using MySQL?

Posted by lampinterview on May 14, 2008

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: | No Comments »

What is the diffrence between Notify URL and Return URL?

Posted by lampinterview on May 14, 2008

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

Posted in PHP | Tagged: | No Comments »

What is use of nl2br function?

Posted by lampinterview on May 14, 2008

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: | 1 Comment »

What is the use of ob_start?

Posted by lampinterview on May 14, 2008

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: , | 1 Comment »

What are the MySQL database files stored in system?

Posted by lampinterview on May 14, 2008

Data is stored in name.myd
Table structure is stored in name.frm
Index is stored in name.myi

Posted in PHP | Tagged: | No Comments »