½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
asp
CSS
HTML
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 41 | Á¶È¸¼ö 628 | µî·ÏÀÏ 2000-02-16 17:22:28

´Ð³×ÀÓ

Anonymous

À̸ÞÀÏ

Á¦¸ñ

µµ¿ÍÁּſä!
³»¿ë
Áö³­¹ø¿¡´Â ±â°¡¸·È÷°Ô Çؼ­ Á˼ÛÇØ¿ä. ³Ê¸ð³ª ¸ô¶ó¼­¿ä.
¾î¶»°Ô ÇÁ·Î±×·¥À» ®´Âµ¥ ÇÁ·Î±×·¥ ¸¶Áö¸·¿¡ Àßµµ´ÂÁö
º¼·Á±¸ »ðÀÔÇÑ ¹®±¸¸¦ »©¸é 500 Internal Server Error°¡ ³³´Ï´Ù.
¾Æ·¡¿¡ ÇÁ·Î±×·¥À» ºÁÁּſä. ºÎŹÇÕ´Ï´Ù.
¸¶Áö¸·ÀÇ print¹®À» »©¸é 500 ¿¡·¯°¡ ³ª¿ä. ºÁÁּſä.
#!/usr/local/bin/perl
$regireal = "/home2/mis/syrhee/public_html/enro.html";
$date_comm = "/usr/bin/date";
$date = `$date_comm`; chop($date);
read (STDIN, $buf, $ENV{
CONTENT_LENGTH
});
@pairs = split(/&/, $buf);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/ / /;
$value =~ s/%(..)/pack("C",hex($1))/eg;
$value =~ s///g;
$FORM{$name} = $value;
}
open(FILE,"$regireal") &pip;&pip; die "Cannot open $regireal $!
";
@LINES=;
close(FILE);
$SIZE=@LINES;
open(ENRO,">$regireal") &pip;&pip; die "Cannot open $regireal $!
";
for ($i=0 ; $i<=$SIZE ; $i ) {
$_=$LINES[$i];
if (//) {
print ENRO "
";
print ENRO "[$date]";
if ($FORM{
dept
}) {
print ENRO ",$FORM{
dept
}";
}
if ($FORM{
realname
}) {
print ENRO ",$FORM{
realname
}";
}
if ($FORM{
phone
}) {
print ENRO ",$FORM{
phone
}";
}
if ($FORM{
cour1
}) {
$temp = $FORM{
cour1
};
if ($temp eq
on
){
print ENRO ",Internet";
}
}
if ($FORM{
cour2
}) {
$temp = $FORM{
cour2
};
if ($temp eq
on
){
print ENRO ",PP";
}
}
if ($FORM{
cour3
}) {
$temp = $FORM{
cour3
};
if ($temp eq
on
){
print ENRO ",Excel";
}
}
print ENRO "


";
}
else {
print ENRO $_;
}
}
close(ENRO);
#print "content-type:text/html

";
#print "
";
³¡. vi¿¡¼­ Â¥°í º¹»çÇؼ­ indentationÀÌ ¾û¸ÁÀÌ¿¡¿ä.
Á˼ÛÇØ¿ä.
Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û commerce.cgi¿¡¼­ ÀÔ±Ý °èÁ¹øÈ£¸¦ ¾îµð¿¡ 2000-02-16 17:11:04
´ÙÀ½°Ô½Ã±Û ¿©±â, ÀÚ·á½Ç ¼Ò½º ±¸ÇÒ ¼ö ÀÖ³ª¿ä?? ÀÚ·á½Ç¼Ò½º... Á¦¹ß¿ë... 2000-02-16 23:00:31