Functions in IMAP. For example: echo nl2br("god bless\n you") will output "god bless \n you" to your browser. 10.ini file. BDB MyISAM is the default storage engine as of MySQL 3. Returns string with ” inserted before all newlines.php") two times in a php page "makeit. php. how can we configure the paypals? 16. Can we use include ("abc. which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2).1
.23. 17.php". For example. Merge 4. 11.2 MySQL: MySQL 5. Heap 3. Suppose your ZEND engine supports the mode Then how can u configure your php ZEND engine to support mode ? If you change the line: short_open_tag = off in php. and mysql? PHP: php5.ename varchar(10)) ? Total 5 types of tables we can create 1. Be aware that if your PHP script was written for the Web CGI interface. variable value reassignments. What are the different tables present in mysql. it may not execute properly in command line environment.1. 14. 12.e. etc. What are the current versions of apache.net/imap http://uk2.prevent problems with function redefinitions. Then your php ZEND engine support only mode.php.php. Draw the architecture of ZEND engine? 18. Shopping cart online validation i. "php myScript. POP3 AND LDAP? Please visit: http://fi2. How can I execute a php script using command line? Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument.. assuming "php" is the command to invoke the CLI program.php"? Yes we can include.net/ldap 13. ISAM 6. What is meant by nl2br()? nl2br — Inserts HTML line breaks before all newlines in a string string nl2br (string). MyISAM 2. 15. InnoDB 5.
1 19. private. Mysql is world most popular open source database. We can encode data using base64_encode($string) and can decode using base64_decode($string).$filename. protected. echo ''.com'). How many ways I can redirect a php page? Here are the possible ways of php page redirection.href="'.location. echo ''. Security of linux is very very more than windows. boundary=\"$boundary\"". int http_response_code]]) 24. ?> Using php function: Header("Location:http://maosjb. echo 'window. 25. List out different arguments in php header function? void header ( string string [. 23. static.'. $headers .Apache: Apache 2. $headers . final and volatile? element Class Interface Data field Method Constructor modifier top level nested top level nested (outer) (inner) (outer) (inner) final yes yes no yes yes no no private yes yes yes no yes no yes protected yes yes yes no yes no yes public yes yes yes yes yes yes yes static yes yes no no yes no yes transient yes no no no no no no
. What type of headers have to add in the mail function in which file a attached? $boundary = '—–=' . How can we encrypt the username and password using php? You can encrypt a password with the following Mysql>SET PASSWORD=PASSWORD("Password"). What are the reasons for selecting lamp (Linux. transient. } } redirect('http://maosjb. bool replace [. 22. $headers = "From: \"Me\"\n".0\n". How can we encrypt and decrypt a data present in a mysql table using mysql? AES_ENCRYPT () and AES_DECRYPT () 21. Php is more faster that asp or any other scripting language. Using Java script: '. What are the differences between public. echo ''.= "MIME-Version: 1. 20. php) instead of combination of other software programs. echo ''. mysql. servers and operating systems? All of those are open source resource. Apache is a better server that IIS both in functionality and security.com "). md5( uniqid ( rand() ) ).= "Content-Type: multipart/mixed.'". apache.
or calling a non-existent function. For example: urlencode("10. 32.for example. 2. but they do not result in script termination.00%") will return "10%2E00%25?.although. 34. stristr() is idential to strstr() except that it is case insensitive.cc. Notices: These are trivial. 30. URL encoded strings are safe to be used as part of URLs.
. such errors are not displayed to the user at all . By default. non-critical errors that PHP encounters while executing a script . except with htmlentities(). 28. How can we convert the time zones using php? 33."@") will return "@example.net. For example: strstr("user@example. attempting to include() a file which does not exist. and PHP's default behaviour is to display them to the user when they take place. What is meant by urlencode and urldocode? urlencode() returns the URL encoded version of the given string. instantiating an object of a non-existent class. These errors cause the immediate termination of the script. How can we get second of the current time using date function? $second = date("s"). accessing a variable that has not yet been defined. 3. unset() makes a variable undefined. as you will see. What is the difference between the functions unlink and unset? unlink() deletes the given file from the file system. What are the differences between PHP 3 and PHP 4 and PHP 5? Go read the release notes at http://php.naken. you can change this default behaviour.com". 29. 31. all characters which have HTML character entity equivalents are translated into these entities. urldecode() returns the URL decoded version of the given string. What are the different types of errors in php? Three are three types of errors: 1. What is the functionality of the function strstr and stristr? strstr() returns part of a given string from the first occurrence of a given substring to the end of the string.for example. How can we convert asp pages to php pages? You can download asp2php front-end application from the site http://asp2php. Fatal errors: These are critical errors . 27. URL coding converts special characters into % signs followed by two hex digits. By default. What is the functionality of the function htmlentities? Answer: htmlentities — Convert all applicable characters to HTML entities This function is identical to htmlspecialchars() in all ways. Warnings: These are more serious errors . these errors are displayed to the user.for example.com".volatile yes no no no no no no 26.
? Answer: Create a full backup of your database: shell> mysqldump –tab=/path/to/some/dir –opt db_name Or: shell> mysqlhotcopy db_name /path/to/some/dir The full backup file is just a set of SQL statements. 36. How can we take a backup of a mysql table and how can we restore it. How can I make a script that can be bilanguage (supports Eglish. How can we get the browser properties using php? 38. width. type. 53. 40."Executed". German)? You can change charset variable in above line in the script to support bilanguage. How can we get the properties (size.35.ini file to your desired time in second.
. What is the maximum size of a file that can be uploaded using php and how can we change this? You can change maximum size of a file set upload_max_filesize variable in php. How can we increase the execution time of a php script? Set max_execution_time variable in php.ini file 39. How can we register the variables into a session? We can use the session_register ($ur_session_var) function. height) of an image using php image functions? To know the Image type use exif_imagetype () function To know the Image size use getimagesize () function To know the image width use imagesx () function To know the image height use imagesy() function 37. List out the predefined classes in php? Directory stdClass __PHP_Incomplete_Class Exception php_user_filter 54. mysql_close($link2). so restoring it is very easy: shell> mysql ".