A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

一、在 HTTP1.0 中,状态吗 500 的含义的是什么?如果返回 “找不到文件” 的提示,则可用 header(函数),其语句为?
500 Internal Server Error 服务器遇到了意料不到的情况,不能完成客户的请求

Header(“ HTTP/1.0 404 NOT FOUND”);

二、数组函数 arsort()的作用是什么?语句 err_reporting(2047)的作用是什么?
arsort: 对数组进行逆向排序并保持索引关系;

error_reporting (2047) 的作用是:report All errors and warnings

三、语句 include 和 require 都能把另外一个文件包含到当前文件中,它们的区别是;为避免多此包含同一个文件,可以用语句__来代替它们。
在如何处理失败时,include () 产生一个警告而 require () 则导致一个致命错误;require_once ()/include_once ()

四、get_magic_quotes_gpc 的作用是


本函数取得 PHP 环境配置的变量 magic_quotes_gpc (GPC, Get/Post/Cookie) 值。返回 0 表示关闭本功能;返回 1 表示本功能打开。当 magic_quotes_gpc 打开时,所有的 ‘ (单引号), “ (双引号), \ (反斜线) and 空字符会自动转为含有反斜线的溢出字符。



五、在 php 中,heredoc 是一种特殊的字符串,他的结束标志必须是_____
结束标识符所在的行不能包含任何其它字符除”;”

六、写出一个正则表达式,把 $string 中的所有数字全部删除
preg_replace('/\d/U','',$string);
七、找出 /data1/source 目录中大于 100k 的文件,并复制到~/tmp/35 / 下
find /data1/source +size >100k | cp ~/temp/35/
八、perl –pi –e ‘s|ABCD|Linux|g’ ‘find ./-type f’的含义是
find ./-type f: 找寻当前目录下的类型为 f 的文件
九、10 2 * * * /data0/apache/schedule/ussd/topnews/import_data.pl > /dev/null 的含义:___将 import_data.pl 清空或删除
十、rsync -avu 105903.zip 218.206.86.68::mmsres/resource/291/205 的含义:_____备份数据用
-a 归档模式,递归传输文件;

-v 详细模式输出;

-u, –update 仅仅进行更新,也就是跳过所有已经存在于 DST,并且文件时间晚于要备份的文件。(不覆盖更新的文件)

十一、写出 x,y 的值
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function test(){
      this.msg='hello';
      msg='nice';
      this.test=function(){
         msg='hi';
         var msg='good';
         return this.msg;
      }
      return this;
  }

  var x=new test().test();
  var y=test().test();

value of x is__hello___;
value of y is ___nice___;


十二、使用纯 CSS 实现未知寸的图片 (但高度都小于 200px) 在 200px 的正方形容器中水平和垂直居中,HTML 代码如下
1
2
3
4
5
6
7
8
9
10
<div id="box">
    <img src="/xx/" alt="" />
</div>

#box{
    width:200px;
    height:200px;
    text-align:center;
    line-height:200px;
}

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马