![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
sunshinehoo
这个作者很懒,什么都没留下…
展开
-
PHP 的 __FILE__ 常量
http://www.phpchina.com/manual/php/language.constants.predefined.htmldirname(__FILE___) 函数返回的是脚本所在在的路径。比如文件 b.php 包含如下内容:$basedir = dirname(__FILE__);?>如果b.php被其他目录里的a.php文件require 或者 include 去引用的话转载 2007-07-18 01:18:00 · 494 阅读 · 0 评论 -
Installing and Enabling the XDebug Debugger
Installing and Enabling the XDebug DebuggerDownload XDebug 2.0. The download links are listed under Releases. Download the Windows module appropriate for your version of PHP. Because Zend optimi转载 2008-12-09 11:52:00 · 342 阅读 · 0 评论 -
Unable to find the socket transport 'ssl' - did you forget to enable it when you configured PHP?
该错误表明PHP不支持openssl,解决方案:windows下,在php.ini中打开opensll扩展,并将php目录下的libeay32.dll和ssleay32.dll两个库拷贝到system32下;linux下,重新编译php,编译时加上参数--enable-ssl(具体参看configure的help)原创 2009-10-24 23:44:00 · 16163 阅读 · 1 评论 -
使PHP即时输出结果到浏览器
PHP: for ( $i = 0 ; $i 10 ; $i ++ ) { echo $i ; sleep ( 1 ) ; } ?> 类似上面的程序如果在PHP解释器中执行,每秒会输出一个数,和想象中一样。但是如果使用浏览器来访问,情况就有所不同。在浏览器中访问时,只有在十秒之后才会一转载 2009-11-11 13:56:00 · 3993 阅读 · 1 评论