I am going. Write down. 2345PHP interview question 1. Write the html of the checkbox in the figure. Label bicycle: inputtypecheckboxnamenamevaluevaluelabel2. write a css section to make a div left floating dividwerdiv # wer {position: relative; float: left} 3. Write a php set HTTP404 status
I am going. Write down. 2345PHP interview question 1. Write the html of the checkbox in the figure. Label bicycle: input type = checkbox name = name value = value/label 2. write a css section to make a p left floating p id = wer/p # wer {position: relative; float: left} 3. write a php HTTP 404 status
I am going. Write down. 2345PHP interview questions
1. Write the html of the checkbox in a graph.
Bicycle:
2. Write a piece of css to make a p float left
# Wer {position: relative; float: left}
3. Write a php HTTP 404 status page statement.
Header ('HTTP/1.1 404 Not Found ');
Header ("status: 404 Not Found ");
4. php prints the previous day in the format of 11:23:45
Echo date ("Y-h-d H: I: s", strtotime ('-1 '));
5. Fill in blank questions, fsockopen knowledge: Red is blank to fill in.
$ Fp = fsockopen ("www.example.com", 80, $ errno, $ errstr, 30 );
If (! $ Fp ){
Echo "$ errstr ($ errno)
\ N ";
} Else {
$ Out = "GET/HTTP/1.1 \ r \ n ";
$ Out. = "Host: www.example.com \ r \ n ";
$ Out. = "Connection: Close \ r \ n ";
Fwrite ($ fp, $ out );
While (! Feof ($ fp )){
Echo fgets ($ fp, 128 );
}
Fclose ($ fp );
}
6. Write at least five methods to increase the page loading speed:
1. css and js compression. 2. Image CDN cache. 3. Static pages. 4. Optimize the SQL or table structure of the page query. 5. Use redis or memcache. 6.
7. Write SQL statements for the rainwater distribution in each city, which is simple and omitted.
8. The linux Command is a test. php file. The owner has the right to read, write, and execute the file. The Group and others have only the following permissions:
Chmod 722 test. php