面试总结之OPL

/*************by garcon1986****************/

 

1. PHP的特点:
快速开发,面向对象,跨平台,适合中小企业应用的web开发语言

2. 如何在MySQL中优化SQL的查询时间
1)如果没有特殊需要,使列长尽量短。如:如果列长最长是40位,不要使用char(255)
使用适合的存储引擎。例如MyISAM数据表,最好用定长的列代替变长的列,不适用varchar()。 固定长度的数据行被处理的速度更快!但是占用的空间也更大。

如果空间很重要就用varchar,如果时间更重要就用char。

可以用Optimize table维护表格。
2)对于InnoDB表格来说,内部的行存储格式不分固定长度列和可变长度列。因此最好使用varchar。
3)使用索引。
4)优化where子句。如删除不必要的括号

3. PHP连接mysql数据库的脚本
$conn = mysql_connect("localhost","user","password");

4. PHP使用Select并得到查询结果的脚本
$query = "select * from testable";
mysql_query($query);

5. PHP控制email的正则表达式
preg_replace

6. 如何获得表单里的数据
$_GET,$_POST, $_COOKIE, $_REQUEST(尽量不要使用)
使用$_REQUEST可以不管数据的来源是get,post还是cookie。
EGPCS就是说明用$_REQUEST数组获取内容的优先级,其字母的含义分别代表为:E代表$_ENV,G代表$_GET,P代表$_POST,C代表$_COOKIE,S代表$_SESSION。后面出现的数据会覆盖前面写入的数据,其默认的数据写入方式就是EGPCS。

7. 如何获得SESSION数据
$_SESSION

8. 如何获得正在运行的脚本文件名
$_SERVER['PHP_SELF']
$_SERVER['SCRIPT_NAME']

9. 什么是cron
linux下的定时执行工具

10. javascript如何发邮件

11. 列举至少3种PHP排序函数
sort(), asort(), rsort(), arsort(), ksort(), krsort()

12. 列举传输协议
HTTP/HTTPS, UDP, FTP/FTPS

13. 什么是APACHE
第一种解释:
The Apache Software Foundation Community-led development since 1999.
Apache软件基金会是自1999年以来的一个社区性的开发团体。
第二种解释:
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
Apache HTTP Server是一个致力于为现代操作系统包括Unix和Windows NT等系统开发和维护开源HTTP服务器的项目。项目的目标是为了提供一个安全有效可扩展的服务器,在目前的HTTP标准下提供HTTP服务。
Apache httpd has been the most popular web server on the Internet since April 1996, and celebrated its 15th birthday as a project this February.
Apache httpd自从1996年来一直是最流行的网络服务器。


The Apache HTTP Server ("httpd") is a project of The Apache Software Foundation.
Apache HTTP server是一个ASF的项目。

TOMCAT

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process.
Apache Tomcat是一个Java Servlet和JavaServer Pages(JSP)技术的开源软件的实现。

Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project.
Apache Tomcat在Apache许可版本2下开发的。

Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the PoweredBy wiki page.

14. 面向对象语言的优势
封装(encapsulation),多态(polymorphism),继承(inheritance)

15. 什么是SVN
Subversion is an open source version control system.

16. 列举PHP framework
zend, symphony, ez publish, spip, CodeIgniter, cakePHP, Prado

17. PRADO
PRADO is a component-based and event-driven framework for rapid Web programming in PHP 5. PRADO reconceptualizes Web application development in terms of components, events and properties instead of procedures, URLs and query parameters.
PRADO是一个基于组件的和事件驱动的框架。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值