Interview Questions for Sina php engineers

Source: Internet
Author: User
1. Connection and difference between cookies and sessions. How can multiple web servers share sessions? 2. What is the difference between POST and GET in HTTP? 3. Write the output result of a piece of php code: *** this program *** $ a0; $ b0; if ($ a3) 0 | ($ b3) 0) {$ a; $ B; echo $ a; echo $ B; Output B} 4. reqiure includ

1. Connection and difference between cookies and sessions. How can multiple web servers share sessions? 2. What is the difference between POST and GET in HTTP? 3. Write the output result of a piece of php code:/***** this program *****/$ a = 0; $ B = 0; if ($ a = 3) 0 | ($ B = 3) 0) {$ a; $ B; echo $ a; echo $ B; // output B's} 4. reqiure's includ

1. Connection and difference between cookies and sessions. How can multiple web servers share sessions?
2. What is the difference between POST and GET in HTTP?
3. Write the output result of a piece of php code:
/***** This program ****/
$ A = 0;
$ B = 0;
If ($ a = 3)> 0 | ($ B = 3)> 0 ){
$ A ++;
$ B ++;
Echo $;
Echo $ B; // output the value of B
}
4. reqiure's include can contain files. What are the differences between the two?
5. What is the principle of WEB file upload in php? How can I limit the size of uploaded files?
6. Write a function to traverse all the files and folders in the folder.
7. 8. There are several unix shell questions in the middle (as if they were two), because I don't understand them and I don't remember these questions.
9. A document with mail. log contains several email addresses, separated by '/N. Select the sina.com email address (including reading, filtering, and printing files ).
The mail. log content is as follows:
James@sina.com.cn
Jack@163.com
Zhansan@sohu.com
Lisi@hotmail.com
Wangwu@gmail.com

10. Code for forward and backward webpage in js

11. In window (A), window. open () is used to open window (B). How can I call the content in window A from window B? A and B are only window codes, not window names

Window. opener is a child page opened by window. open. It calls the parent page object.

12. Do you know about ajax? Used ?......
13. What is MVC? Used? What problems have you encountered during use? How can this problem be solved?

14. Write the packet header required to access the http://www.sina.com.cn, hey, this is super pig think of it.


Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.