# アップロード時に表示のテスト。trueの部分はアップロード時とgetでpageが渡って来ない時のみtrueにする予定 if(true){print $html_buffer;} else{ open HTML,">$index_file"; flock HTML,2; print HTML $html_buffer; close HTML; }
C:\xampp\mysql\bin\mysql -u root -p Enter password: mysqlのパスワード(忘れたらC:\xampp\security\security\mysqlrootpasswd.txtに書いてある) create database testDB; grant select,insert,delete,update,create,drop,file,alter,index on *.* to test identified by 'testpwd'; flush privileges; exit
C:\xampp\mysql\bin\mysql -u test -p Enter password: testpwd use testDB; create table toho(no char(8),md5 char(32),filename char(128),date char(20),size char(20)); exit
Sn Uploaderは拡張子を自動で cgi->txt,pl->txt,log->txt,jpeg->jpg,mpeg->mpg に変換してくれたような。
そういえばincludeで読み込むファイルなのか実行ファイルなのか分かりにくいから、 includeで読み込むファイルはフォルダに入れた方が良いかも。 ちなみに自分が自作したチャットではsystemってフォルダを作って入れて、年のために.htaccessで <Files ~ "\.(cgi|php)$"> Order deny,allow Deny from all </Files> ってのを入れてアクセスできないようにしてる。