คืออย่างนี้ครับ ผมออกแบบไว้ว่า เมื่อทำการ Upload เรียบร้อยแล้ว จะย่อขนาดให้เป็นไปตามที่เรากำหนดได้เรียยร้อยแล้ว และปัญหามันเกิดตรงนี้แหละครับ
- เมื่อเราทดลองพรีวิวในเครื่องของเราเอง ไม่เกิดปัญหาอะไรเลย แถมภาพที่ Upload ไปนั้น ก็จะไปตำแหน่งที่เราจัดเตรียมไว้เรียบร้อยดี
แต่เมื่อเอาไปวางไว้ในโฮสฯ ปัญหาเกิดทันทีครับ คือว่ามันไม่ยอมไปหน้าที่เราต้องการครับ มันขึ้นแบบนี้ครับ
# # modsec-clamscan.pl # mod_security,
http://www.modsecurity.org # Copyright (c) 2002-2004 Ivan Ristic # # $Id: modsecurity-manual.xml,v 1.8.2.13 2006/04/10 12:35:37 ivanr Exp $ # # This script is an interface between mod_security and its # ability to intercept files being uploaded through the # web server, and ClamAV # by default use the command-line version of ClamAV, # which is slower but more likely to work out of the # box #$CLAMSCAN = "/usr/bin/clamscan"; # using ClamAV in daemon mode is faster since the # anti-virus engine is already running, but you also # need to configure file permissions to allow ClamAV, # usually running as a user other than the one Apache # is running as, to access the files $CLAMSCAN = "/usr/bin/clamdscan"; if (@ARGV != 1) { print "Usage: modsec-clamscan.pl \n"; exit; } my ($FILE) = @ARGV; $cmd = "$CLAMSCAN --stdout --disable-summary -<$FILE"; $input = `$cmd`; $input =~ m/^(.+)/; $error_message = $1; $output = "0 Unable to parse clamscan output [$1]"; if ($error_message =~ m/: Empty file\.$/) { $output = "1 empty file"; } elsif ($error_message =~ m/: (.+) ERROR$/) { $output = "0 clamscan: $1"; } elsif ($error_message =~ m/: (.+) FOUND$/) { $output = "0 clamscan: $1"; } elsif ($error_message =~ m/: OK$/) { $output = "1 clamscan: OK"; } print "$output\n";
โปรดแนะนำด้วยนะครับ คืออยากเปิดตัวเวปนี้แล้วจริง ๆ