PHP Test 3 A variable $word is set to "HELLO WORLD", which of the following script returns in title case? echo ucfirst(strtolower($word). echo ucwords($word.) echo ucwords(strtolower($word). echo ucfirst($word). The difference between include() and require() are different how they handle failure both are same in every aspects is include() produced a Fatal Error while require results in a Warning None of above Which of the following method sends input to a script via a URL? None Both Post Get Which of the following method is suitable when you need to send larger form submissions? There is no direct way for larger form. You need to store them in a file and retrieve Get Post Both Get and Post Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create anew file. If the file exist, place the file pointer at the end of the file after all other data. W W+ A+ A The function setcookie( ) is used to Enable or disable cookie support Store data in cookie variable Declare cookie variables All of above To work with remote files in PHP you need to enable allow_remote_files allow_url_fopen both of above none of above In mail($param1, $param2, $param3, $param4), the $param2 contains The recipient The message The header The subject mysql_connect( ) does not take following parameter. user ID database host password database name Study following steps and determine the correct order. (1) Open a connection to MySql server (2) Execute the SQL query (3) Fetch the data from query (4) Select database (5) Close Connection 4, 1, 3, 2, 5 4, 1, 2, 3, 5 1, 4, 2, 3, 5 1, 5, 4, 2, 1 Which of the following is not a session function? session_pw session_id session_destroy session_decode When uploading a file if the UPLOAD_ERR-OK contains value 0 it means. File upload progress is 0% completed The file uploaded with success Uplaod is not successful, error occurred Uploaded file size is 0 Which of the following delimiter syntax is PHP's default delimiter syntax.a. b. c. d. a b c d Which of the following statement produce different output. a. b. c. d. print "This is php example"; a b c d Php supports all four different ways of delimiting. In this context identify the false statement. Variables declared in previous blocks are remembered on later blocks too! You can use different delimiting styles in same page You can use any delimiting style but must use a single style consistently for a page You can use any of the delimiting style Which of following commenting is supported by Php. Multiline Comment /* ------------- */ Shell syntax - # Both of above None of above To produce the output I love the summer time, Which of the following statement should be used?a. <?php print("I love the summer time");?>b. <?php $season = "summer time"; print("I love the $season"); ?>c. a a and c a and b All of the above What's the best way to copy a file from within a piece of PHP? Use "exec" to run an operating system command such as cp (Unix, Linux) or copy (Windows) Use the built in copy() function Open the input and output files, and use read() and write() to copy the data block by block until read() returns a zero Print out a message asking your user to "telnet" in to the server and copy the file for you PHP code is embedded directly into XHTML document? True False Is it possible to submit a form with out a submit button? Yes No Schreibe einen Kommentar Antworten abbrechenDu musst angemeldet sein, um einen Kommentar abzugeben.