Home > Backend Development > PHP Tutorial > 跪求这10个题答案!凡参加者都有奖!10个都说清楚的至少90分以上…(这诚意明晃晃啊)大叔大婶come on AV8D

跪求这10个题答案!凡参加者都有奖!10个都说清楚的至少90分以上…(这诚意明晃晃啊)大叔大婶come on AV8D

WBOY
Release: 2016-06-13 12:09:05
Original
1079 people have browsed it

跪求这10个题答案!凡参与者都有奖!10个都说清楚的至少90分以上……(这诚意明晃晃啊!)大叔大婶come on AV8D!
(传个破图片真费劲)言归正传这是别人发的一个帖子但是我实在想知道这些问题答案(越清楚越好)所以我自己在补发一次,望各位大仙多多支持,谢谢

众仙家快快施展神通吧
------解决思路----------------------
你把题目抄一遍,可能就有人回应了
------解决思路----------------------
据说参与留言者都有分拿.
因此我留言了
------解决思路----------------------
凡参与者都有奖!

为了这句话,我来留言了
------解决思路----------------------
希望能得奖
------解决思路----------------------
我只会动感光波可以得奖吗
------解决思路----------------------
第七题
dbmopen() ;dbase_open() ;filepro() ;filepro_rowcount() ;filepro_retrieve() ;
------解决思路----------------------
参与有奖 参与有奖~~~~~~~
------解决思路----------------------
我是来参与的。。。
------解决思路----------------------
我是来蹭分的!
------解决思路----------------------
就知道第十个
------解决思路----------------------
这是全能型的吗?前端后端都有了。还有运维。。。
------解决思路----------------------
1.

<br />         <?php<br />             class Printer {    //代理对象,一台打印机<br />                 public function printSth() {<br />                     echo 'I can print <br>';<br />                 }<br />                 <br />                 // some more function below<br />                 // ...<br />             }<br />              <br />             class TextShop {    //这是一个文印处理店,只文印,卖纸,不照相<br />                 private $printer;<br />                 <br />                 public function __construct(Printer $printer) {<br />                     $this->printer = $printer;<br />                 }<br />                 <br />                 public function sellPaper() {    //卖纸<br />                     echo 'give you some paper <br>';<br />                 }<br />                 <br />                 public function __call($method, $args) {    //将代理对象有的功能交给代理对象处理<br />                     if(method_exists($this->printer, $method)) {<br />                         $this->printer->$method($args);<br />                     }<br />                 }<br />             }<br />              <br />             class PhotoShop {    //这是一个照相店,只文印,拍照,不卖纸<br />                 private $printer;<br />                 <br />                 public function __construct(Printer $printer) {<br />                     $this->printer = $printer;<br />                 }<br />                 <br />                 public function takePhotos() {    //照相<br />                     echo 'take photos for you <br>';<br />                 }<br />                 <br />                 public function __call($method, $args) {    //将代理对象有的功能交给代理对象处理<br />                     if(method_exists($this->printer, $method)) {<br />                         $this->printer->$method($args);<br />                     }<br />                 }<br />             }<br />             <br />             $printer = new Printer();<br />             $textShop = new TextShop($printer);<br />             $photoShop = new PhotoShop($printer);<br />             <br />             $textShop->printSth();<br />             $photoShop->printSth();<br />         ?><br />
Copy after login


2.在可点击的位置上加Google Analytics

3.
减少数据访问(减少磁盘访问)
返回更少数据(减少网络传输或磁盘访问)
减少交互次数(减少网络传输)
减少服务器CPU开销(减少CPU及内存开销)
利用更多资源(增加资源)

4.200w太少,随便导。大数据可以分表分批导

5.
<br />function Person(){<br />    this.name = “Mike”;<br />    this.sayGoodbye = function(){"alert(GoodBye!");};<br />}<br /><br />Person.prototype.sayHello = function(){alert(”Hello!”);};<br /><br />function Student(){}<br /><br />Student.prototype = new Person();<br />
Copy after login


6.低偶合,高内聚。

7.chdir, move_uploaded_file, chgrp, parse_ini_file, chown, rmdir, copy, rename, fopen, require, highlight_file, show_source, include, symlink, link, touch, mkdir, unlink

9.
<br />$file = "temp.txt";    <br />$fp = fopen($file , 'w');    <br />if(flock($fp , LOCK_EX)){    <br />    fwrite($fp , "abc\n");    <br />    flock($fp , LOCK_UN);    <br />}    <br />fclose($fp);  <br />
Copy after login


10.
<br />echo strtotime('2014-9-23 10:30:25');<br />
Copy after login

------解决思路----------------------
蹭蹭分
------解决思路----------------------
3 优化数据库  建索引
4mysqldump 导出

10 strtotime()

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template