Home  >  Article  >  php教程  >  新浪php工程师面试题

新浪php工程师面试题

WBOY
WBOYOriginal
2016-06-06 19:52:321693browse

1、COOKIE、SESSION的联系和区别,多台web服务器如何共享SESSION? 2、HTTP协议中的POST和GET有何区别? 3、一段php代码,写出输出结果: /**** 这个程序****/ $a=0; $b=0; if(($a=3)0||($b=3)0){ $a; $b; echo $a ; echo $b; //输出b的 } 4、reqiure的includ

1、COOKIE、SESSION的联系和区别,多台web服务器如何共享SESSION? 
2、HTTP协议中的POST和GET有何区别?
3、一段php代码,写出输出结果:
/**** 这个程序****/
$a=0;
$b=0;
if(($a=3)>0||($b=3)>0){
    $a++;
    $b++;    
    echo $a ;
    echo $b; //输出b的值
}
4、reqiure的include都可包含文件,二者的区别何在?
5、php中WEB上传文件的原理是什么,如何限制上传文件的大小?
6、写一个函数,可以遍历文件夹下的所有文件和文件夹。
7、8、中间有几个unix shell的题目(好像是两个),因为不懂,不记得这些题目了
9、有mail.log的一个文档,内容为若干邮件地址,其中用'/n'将邮件地址分隔。要求从中挑选出sina.com的邮件地址(包括从文件读取、过滤到列印出来)。
mail.log内容如下:
james@sina.com.cn
jack@163.com
zhansan@sohu.com
lisi@hotmail.com
wangwu@gmail.com

10、js中网页前进和后退的代码

11、window(A)中用window.open()打开了window(B),如何从窗口B调用窗口A中的内容?A、B仅仅是窗口的代号,不是窗口名字

window.opener 是window.open 打开的子页面调用父页面对象

12、了解ajax吗?用过吗?……
13、什么是MVC?用过吗?使用时遇到了什么问题,怎么解决的?

14.写出 访问 http://www.sina.com.cn 所需的报文头,嘿嘿,这是超级猪自己想起来地。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn