A relatively basic PHP programmer interview Questions, test the comparative basis, but there are many details of things, if the foundation is not strong, it is difficult to pass. If you need a friend, refer to it.1. In PHP, the name of the current
$m =$_get[' m '];
$user =$_get[' user '];
$pass =$_get[' pass ';
$include ($m. " Do/php ");
$sql = "SELECT count (*) as B from user where Username= '". $user. "' and password= ' ". $pass." ';
$r =mysql_query ($sql);
$_cookie["Counter"]? ($c =$_cookie["Counter"]+1):($c =1);
Setcookie ("Counter", $c, Time () +60);
echo " Welcome to your first". "". $c. " Second access cookie";
by bbs.it-home.org
?>
Copy CodeHere is a code
PHP scripts can continue to execute even if the client disconnects (such as turning off the browser).
Ignore_user_abort ();
Execution time is unlimited, php default execution time is 30 seconds, through Set_time_limit (0) can allow the
This article introduces, is said to be cool news of the PHP Programmer interview questions, here to find the Notes section, share, for your reference. Featured: PHP Face questions and Answers1, there are three PHP files in the same directory, the
This article introduces, PHP open Error_log log method, have the need for friends, refer to it.In PHP programming, for some access to the PHP page without obvious error hints, you can use Error_log to make further judgments. But for a variety of
setcookie (' v1[name] ', ' hey ');
Setcookie (' v2[age] ', ' ");
unserialize (($_cookie["name"]);//actually set up two COOKIE variables.
copy code 2,cookie The time it takes to log the login status.
if
CREATE DATABASE ' Session ';
Copy CodeTo create a table structure:
CREATE TABLE ' session ' (ID char (+) not NULL, ' user ' char (+), data char (+), parmiry by (' id '));
Copy CodeSave the session file
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service