search
Homephp教程php手册新浪php工程师面试题

新浪php工程师面试题

Jun 06, 2016 pm 07:52 PM
cookiephpsessionengineerSinatest questions

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment