看板FreeBSD
标 题Re: 能否请 帮我看看 Guestbook 的 php code
发信站Shaw Residential Internet (Sun Jan 8 13:50:17 2006)
转信站ptt!ctu-reader!Spring!news.nctu!news.alt.net!pd7cy2so!shaw.ca!pd7tw3no
感谢感谢 前辈不吝发言 :)
是.
这是 POST 後, httpd 的 log 部份 :
192.168.x.x - - [07/Jan/2006:21:40:03 -0800] "POST /GB/index.php HTTP/1.1"
200 57419
http://mydomain.myhost" compatible; MSIE 6.0; Windows NT 5.1; SV1;
MathPlayer 2.0; .NET CLR 1.1.4322)"
填了後, Guestbook 就当没事一样:
http_log , php_log , 及 该网页上, 都没有 error message;
也没真的新增一笔到 xxx.dat.php 档, 也没寄给 root 通知单 (之前有设,是会
e-mail 一份通知的).
请问我还须要显示啥?
须要全档 guestbook php code 吗 ?
( 只要 前辈说一声,当然没问题可以显示喔 :)
谢谢谢谢~
<: 老音学生 :>
===
"上班==上网??" <
[email protected]> 撰写於邮件新闻:
[email protected]...
>
> apache 没留下任何 error messages?
> 从你下面留的这一大串东西 只说了不能留言
> 根本没描述清楚错误情形...可能要请神仙来帮你罗
>
> 【 在 goaway. 的大作中提到: 】
> : 请教,
> : 我的 php guestbook 本来可以跑的,有一天,(大概是 make deinstall reinstall
> : clean 後吧!?) 就不能留言了.
> : 伤脑筋, 自己摸了好久, 搞不清要如何 debug & 订正..., 也看不到 error log (
> : /var/log/php.log 内容是空的)
> : 一些 phpinfo() 是这样的:
> : PHP Version 5.1.1
> : System FreeBSD ... 6.0-SECURITY FreeBSD 6.0-SECURITY
> : [email protected]:/usr/obj/usr/src/sys/GENERIC i386
> : Configure Command './configure' '--enable-versioning'
> : '--enable-memory-limit' '--with-layout=GNU'
> : '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
> : '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-spl'
> : '--with-regex=php' '--disable-cli' '--with-apxs2=/usr/local/sbin/apxs'
> : '--enable-debug' '--enable-zend-multibyte' '--disable-ipv6'
> : '--prefix=/usr/local' 'i386-portbld-freebsd6.0'
> : Server API Apache 2.0 Handler
> : PHP API 20041225
> : PHP Extension 20050922
> : Zend Extension 220051025
> : Debug Build yes
> : Thread Safety disabled
> : Zend Memory Manager enabled
> : Configuration
> : PHP Core
> : allow_call_time_pass_reference Off Off
> : allow_url_fopen On On
> : display_errors On On
> : display_startup_errors On On
> : error_log /var/log/php.log /var/log/php.log
> : error_reporting 2039 2039
> : expose_php On On
> :
> extension_dir/usr/local/lib/php/20050922-debug/usr/local/lib/php/20050922-debug
> : file_uploads On On
> : html_errors On On
> : ignore_repeated_errors Off Off
> : ignore_repeated_source Off Off
> : ignore_user_abort Off Off
> : implicit_flush Off Off
> : include_path .: .:
> : log_errors On On
> : report_zend_debug On On
> : apache2handler
> : Apache Version Apache/2.0.55 (FreeBSD) PHP/5.1.1
> : Loaded Modules ...... mod_rewrite mod_php5
> : ....
> : 还须要 show 哪些吗?
> : =====
> : 一些 php.ini 是这样的:
> : error_reporting = E_ALL & ~E_NOTICE
> : display_errors = On
> : display_startup_errors = On
> : error_log = /var/log/php.log
> : register_globals = Off
> : register_long_arrays = Off
> : ....
> : 还须要 show 哪些吗?
> : =====
> : Guestbook 的 php code 是从 BigSam ( http://bigsam.gezzed.net/ ) 的
> : Development Version (1.2.03 Alpha 3, 4.Apr.2005) 中文化个人化改的.
> : 它没用到 database; 但要开个 xxx.dat.php 文字档装留言内容.
> : 怕浪费篇幅,仅将 "写入" 部份的 php code 如下 :
> : <?php
> : // ......
> : fwrite ($fout,"\$archive_name[++\$index] = \"$name\";\n");
> : fwrite ($fout,"\$archive_usermark[ \$index] = \"$usermark\";\n");
> : fwrite ($fout,"\$archive_mail[ \$index] = \"$email\";\n");
> : fwrite ($fout,"\$archive_date[ \$index] = \"$insert_msgdate\";\n");
> : fwrite ($fout,"\$archive_userurl[ \$index] = \"$userurl\";\n");
> : fwrite ($fout,"\$archive_userfrom[ \$index] = \"$userfrom\";\n");
> : fwrite ($fout,"\$archive_subj[ \$index] = \"$subj\";\n");
> : fwrite ($fout,"\$archive_text[ \$index] = \"$message\";\n");
> : fwrite ($fout,"\$archive_ip[ \$index] = \"$ip\";\n");
> : fwrite ($fout,"\n ?>");
> : Xfclose($fout);
> : // ......
> : ?>
> : 不知这样的资讯,足否让 善心的 前辈们帮我忙 !?
> : 须要更多资讯的话,请 不吝告知.
> : 谢谢 :)
> : <: 老音学生 :>