能否請 幫我看看 Guestbook 的 php code

看板FreeBSD作者時間20年前 (2006/01/08 12:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/9 (看更多)
請教, 我的 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 root@builder.daemonology.net:/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); // ...... ?> 不知這樣的資訊,足否讓 善心的 前輩們幫我忙 !? 須要更多資訊的話,請 不吝告知. 謝謝 :) <: 老音學生 :>
文章代碼(AID): #13m9N600 (FreeBSD)
討論串 (同標題文章)
文章代碼(AID): #13m9N600 (FreeBSD)