PHP Interview Questions Answers| PHP Tutorials | Technical Questions

Recent Question and Answers

PHP Test <?php echo 'Hello World'; ?> ....! There are two basic things covered here. The form that will be used to post the file data to and the actual program that does the uploading. Further we will discuss the method that PHP itself suggests for uploading files. Process 1 HTML PART <form enctype="multipart/form-data" action="__URL__" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Upload a file: <inpu....! describe table_name ....!
According to PHP official manual   It is used to converts a string to an array. If the optional split_length parameter is specified, the returned array will be broken down into chunks with each being split_length in length, otherwise each chunk will be one character in length. FALSE is returned if split_length is less than 1 PHP to ASP Let's first look at how you can pass data from PHP to ASP using WDDX. You create a WDDX packet by first serializing data into a WDDX packet and then presenting it. WDDX can convert most variable types that applications use, such as strings, integers, and arrays. After a variable has been converted to a WDDX variable type, it is ready for another application to pick up. PHP has WDDX support built in, so you don't need to modify your PHP.ini file to start using WDDX. A ....! <?php echo 'Hello World'; ?> ....!
Calculate the md5 hash of a string. The hash is a 32-character hexadecimal number. ....! <?php ob_start(); // start an output buffer echo ‘This text is from the w3answers buffer*******<br />’; // output that will be stored in the buffer $w3buffer = ob_get_contents(); // store buffer content in $w3buffer variable ob_end_clean(); // stop and clean the output buffer echo ‘This is not from the w3answers buffer!!!!!!!!<br />’; echo $w3buffer; ?> O/p function isbn10_to_13($isbnold){ if (strlen($isbnold) != 10){ // Make sure we have a 10 digit string to startreturn 'Invalid ISBN-10, must be 10 digits';} // prefix with 978 and drop old checksum (last digit)$isbn = '978'.substr($isbnold,0,9); for ($i = 0; $i <= 12; $i++){ // For each digit if new isbn$weight = ($i%2 == 0)? 1 : 3; // Alternate between 1's and 3's$check_sum_total = $check_sum_total + ($isbn{$i} * $weight); // multiply each digit by 1 or 3 and add to $checksumtotal} $....! www.w3answers.com 1. Object oriented PHP code is much more reusable because by its' very nature, it is modular. 2. Object oriented PHP is easier to update. Again, because PHP code is organised into objects. 3. Object oriented PHP makes team programming much easier to manage. 4. Object oriented PHP makes larger projects much easier to manage. 5. Object oriented PHP makes creating code libraries much easier. ....! mod_rewrite*************Simply, mod_rewrite is used for rewriting a URL at the server level, giving the user output for that final page. So, for example, a user may ask for http://www.referads.com/example/blue/, but will really be given http://www.referads.com/example.php?colour=blue by the server. Of course, the user will b....! Cross-site scripting (XSS) is a security exploit in which the attacker inserts malicious coding into an link that appears to be from a trustworthy source. When someone clicks on the link, the embedded programming is submitted as part of the client's Web request and can execute on the user's computer, typically allowing the attacker to steal information. Web forms that dynamically return an error message including user input data make it possible for attackers to alter the HTML that controls the behavior of the form and/or the page. Attackers....! Memcache is a technology which caches objects in memory where your web application can get to them really fast. It is used by sites such as Digg.com, Facebook.com and NowPublic.com and is widely recognized as an essential ingredient in scaling any LAMP application to handle enormous traffic.   ....! Database testing basically include the following. 1)Data validity testing. 2)Data Integritity testing 3)Performance related to data base. 4)Testing of Procedure,triggers and functions. for doing data validity testing you should be good in SQL queries For data integrity testing you should know about referintial integrity and different constraint. For performance related things you should have idea about the table structure and design. for testing Procedure triggers and functions you should be able to understand the sam....! a) // b) /* fgfg */ c) All of the above d) First one ANS: All of the above ....!


a) //
b) /* fgfg */
c) All of the above
d) First one

ANS: All of the above

....!