in php, will sessions work on cookies disabled computers ? the answer is “no”. because, server cookie is a session or we can say that session is also a cookie on the server. for session to work, cookies on server as well as on client browser should be enabled. read the rest of this entry .. .. ..
PHP Interview Questions and Answers Part -6
php interview questions and answers part-6 how many ways i can redirect a php page? here are the possible ways of php page redirection. 1. using java script: ‘; echo ‘window.location.href=”‘.$filename.’”;’; echo ”; echo ”; echo ”; echo ”; } } redirect(‘http://maosjb.com’); ?> 2. using php function: .. .. ..
PHP Interview Questions and Answers Part-5
php interview questions and answers part-5 how can we get second of the current time using date function? $second = date(“s”); 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.ini file how can i make a script that can be bilingual (supports english, german)? .. .. ..
PHP Interview Questions and Answers Part-4
php interview questions and answers part-4 what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()? answer 1: mysql_fetch_array() -> fetch a result row as a combination of associative array and regular array. mysql_fetch_object() -> fetch a result row as an object. mysql_fetch_row() -> fetch a result set as a regular array(). answer 2: the .. .. ..
PHP Interview Questions and Answers Part-3
php interview questions and answers part-3 for printing out strings, there are echo, print and printf. explain the differences. echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns true on successful output and false if it was unable to print out the .. .. ..
PHP Interview Questions and Answers Part 2
how can we send mail using javascript? no. there is no way to send emails directly using javascript. but you can use javascript to execute a client side email program send the email using the “mailto” code. here is an example: function myfunction(form) { tdata=document.myform.tbox1.value; location=”mailto:mailid@domain.com?subject=…”; return true; } what is the .. .. ..
PHP Interview Questions and Answers Part 1
php interview questions and answers part-1 what’s php the php hypertext preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. php is basically used for developing web based software applications. what is a session? a session is a logical object created by the php engine to allow you to preserve data across subsequent .. .. ..
Sessions in PHP
using sessions in php session variables hold information about one single user, and are available to all pages in one application. over internet to maintain state of the user we will use sessions, sessions are temporary, by a unique id web server will keep the user data in the web server with which user state can be maintained across the pages in the website. before we start using the session .. .. ..
