debug_backtrace — 返回一个供调试使用的信息树 debug_print_backtrace — 打印一个供调试使用的信息树 error_get_last — 捕获最后的一条错误信息 error_log — 将php的错误信息发送到某处 error_reporting — 设定php的错误显示状况 restore_error_handler — 恢复set_error_handler()函数对错误处理方式的修改 restore_exception_handler — 恢复set_exception_handler()函数对异常处理方式的修改 set_error_handler — 指定一...
by hkebao - php文档中心 - 2009-04-27 09:51:40 阅读(1176) 回复(0)
我在php.ini中对日志做了如下处理 error_reporting = E_ALL log_errors = On error_log = /var/log/httpd/php_err.log display_error=off 但是为什么出错时不写这个LOG文件呢?
mail.php 文件 我自己发给自己的邮件
php
echo "send email
";
$to = "zhiwenshanghai@sina.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "zhiwenshanghai@sina.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
php.ini 文件配置:
[mail function]
; For Win32 only.
SMTP = smtp.sina.com
smtp_port = 25
; For ...
今天发现服务器出现问题php连接oracle出现错误, ORA-12705: invalid or unknown NLS parameter value specified in xxxx on line 20 无法连接到数据库服务器。 bash_profile文件内容如下: JAVA_HOME=/usr/java/jdk1.5.0_11 export JAVA_HOME CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export CLASSPATH LD_LIBRARY_PATH=/usr/local/lib:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export LD_LIBRARY_PATH PATH=$JAVA_HOME/bin...
报错信息如下: OS :RHEL5 [root@localhost ZendOptimizer-3.3.3-linux-glibc23-i386]# php -v Failed loading /usr/local/Zend/lib/Optimizer-3.3.3/php-5.1.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.3/php-5.1.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied php 5.1.6 (cli) (built: Dec 19 2006 11:18:44) Copyright (c) 1997-2006 The php Group Zend Engine v2.1.0, C...
# ./configure configure:error:installation or configuration problem:C compiler cannot create executables
大家好: 我在执行以下php代码时: while($my=mysql_fetch_row($result)) 出现以下错误提示: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource 请各们大侠帮我看一下,是什么原因导致的? 在此,先谢了。
各们高手,大家好: 我在Dremware 8.0中写了一个PHP代码脚本:(如下) php $db = mysql_connect("it-g", "root", "oufeng"); mysql_select_db("class",$db) $sql= "select poll_id,poll_Name from poll where poll_del='1'";(这是第13行) $result = mysql_query($sql); ?> 可是在执行的是时候有以上错误: Parse error: syntax error, unexpected T_VARIABLE in /usr/local/apache/htdocs/tenfei/po...
main/php_config.h is unchanged creating main/internal_functions.c creating main/internal_functions_cli.c +--------------------------------------------------------------------+ | License: | | This software is subject to the php License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, ...
工作环境:Windows 2003 + Apache 2.0.52 + php 5.0.2.2 php.ini 配置如下:(sendmail部份) ;extension=php_sybase_ct.dll extension=php_smtp.dll extension=php_pop3.dll ;extension=php_tidy.dll [mail function] ; For Win32 only. SMTP = 邮件服务器域名 smtp_port = 25 ; For Win32 only. sendmail_from = 发送邮件的E-mail sendmail.php 源代码如下: php $to = [email]fourstar.co@126.com[/email]"; $subject =...
安装php5+apache2.2+Ras3.0 apache安装完毕 以下为编译过程 $ ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs configure: warning: You will need re2c 0.9.11 or later if you want to regenerate php parsers. configure: warning: bison versions supported for regeneration of the Zend/php parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none). checking for fle...