易截截图软件、单文件、免安装、纯绿色、仅160KB

推荐:yahoo的php面试题

呵呵,翻译了篇东西,N长时间没用英语了,出了丑大家可一定要指出来啊。翻译自:Nick Halstead's Blog
A friend recently got some pre-interview questions from YAHOO for a PHP
job. Following up my previous post about programmer questions I
thought I would post them to give people examples of what a large
corporation like YAHOO asks.
最近一位朋友得到了Yahoo的一些PHP面试题目,依照我之前发表关于程序员的相关文章的原则,我想我应该在这里发布出来,以给读者朋友们提供一些例
子,让大家看看像YAHOO这样的大公司关心哪些问题。
1. Which of the following will not add john to the users array?
1、下面哪个选项没有将 john 添加到users 数组中?
         1. $users[] = ‘john’;
         2. array_add($users,’john’);
         3. array_push($users,‘john’);
         4. $users ||= ‘john’;
2. What’s the difference between sort(), assort() and ksort? Under what
circumstances would you use each of these?
2、sort(), asort()(注:原作者为assort,应该是笔误)和ksort()
三者之间有什么差别?你分别在什么情况下会使用上面三个函数?
3. What would the following code print to the browser? Why?
3、下面这段代码将在浏览器上打印出什么内容?为什么?
      $num = 10;
      function multiply(){
            $num = $num * 10;
      }
      multiply();
      echo $num;
4. What is the difference between a reference and a regular variable?
How do you pass by reference & why would you want to?
4、引用变量与普通变量之间有何区别?如何通过引用传值?在什么情况下会这样做?
5. What functions can you use to add library code to the currently
running script?
5、哪些函数可以被用来向当前的代码中添加库代码?
6. What is the difference between foo() & @foo()?
6、foo()和@foo


相关文档:

PHP多进程协作编程之 popen

使用popen结合SHELL命令也可以实现多进程并发编程。
实例如下:
<?php
//b.php文件
$file = 'testdir/file.txt';
for ($i=0;$i<10;$i++){
    $fp = fopen($file,'a+');
    fputs($fp, $i.'\r\n');
    fclose($fp);
    sleep(1);
}
?> ......

如何在PHP中使用Oracle数据库

http://www.builder.com.cn/2007/1027/583048.shtml
在php3.0以上版本中,php内置了几乎目前所有的数据库处理函数,包括Oracle;在本文中我们通过一个实例来介绍了如何使用这些函数来操作Oracle数据库。
PHP提供了2大类API(应用程序接口)来操作Oracle数据库。一个是标准的Oracle处理函数(ORA) 另一个是Oracle 8调用接口函 ......

php define() 函数及defined()函数的用法


The define() function defines a constant.
define()函数的作用是:定义一个常量。
Constants are much like variables, except for the following differences: 
常量[constant]与变量[variable]有很多相似的地方,因此,很容易混淆;下面,我们列举一下常量[constant]与变量[variable]之间的不同点:
A const ......

php jquery 上传照片,上传后实时本页面预览

其实这个的主要部分并不是一个jquery,但是必须使用到
php程序部分,也只需要这个一个php程序就可以了
www.corange.cn亲测
<?php
header("Content-Type: text/html; charset=utf-8");
@header( "Cache-Control: no-cache, must-revalidate" );
@header( "Pragma: no-cache" );
@header( "Last-Modified: " ......

PHP:路在何方?

PHP4:奇迹背后
1995年时,Rasmus在用PHP写他的个人主页;今天,PHP成为风靡全球的脚本语言,越来越多的站点选择使用PHP,连Yahoo都放弃了自己的脚本而改用PHP支持它的网站。可以说,PHP是一个奇迹。我一直认为,任何奇迹背后都有它的原因。现在,就让我们透过这个奇迹,来看看PHP的成功之道。
1 简单易用
PHP的入门门槛 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号