Cartes virtuelles
McCall
-
McCall -
McCall -
J'aimerais faire une page d'envoi de cartes virtuelles avec PERL sur serveur Linux ... mais je n'y arrive pas! Est-ce que quelqu'un peut m'aider? webmaster@instant-maj.com
J'ai essayé sur une page de mon site http://www.instant-maj.com/postcard/index.html ... mais ça plante et je ne sais pas pourquoi!
Un grand merci! :-)
J'ai essayé sur une page de mon site http://www.instant-maj.com/postcard/index.html ... mais ça plante et je ne sais pas pourquoi!
Un grand merci! :-)
A voir également:
- Cartes virtuelles
- Whatsapp avec 2 cartes sim - Guide
- Jeux de cartes gratuits à télécharger - Télécharger - Cartes
- Machines virtuelles - Guide
- Telecharger cartes google maps - Guide
- Créer des cartes postales gratuit - Télécharger - Vie quotidienne
3 réponses
#!/usr/bin/perl
$domain_name = "instant-maj.com";
$location = "http://www.instant-maj.com/postcard/";
$basepicurl = "http://www.instant-maj.com/postcard/pictures/";
$cgi = "/cgi-bin/card.cgi";
$cards = "$ENV{DOCUMENT_ROOT}/postcard/cards/";
$basepicdir = "$ENV{DOCUMENT_ROOT}/postcard/pictures/";
$preview1 = "$ENV{DOCUMENT_ROOT}/postcard/preview1.html";
$preview2 = "$ENV{DOCUMENT_ROOT}/postcard/preview2.html";
$makecard = "$ENV{DOCUMENT_ROOT}/postcard/makecard.html";
$thank_you = "$ENV{DOCUMENT_ROOT}/postcard/thankyou.html";
$error = "$ENV{DOCUMENT_ROOT}/postcard/error.html";
$email1 = "$ENV{DOCUMENT_ROOT}/postcard/email1.txt";
$email2 = "$ENV{DOCUMENT_ROOT}/postcard/email2.txt";
$mailprog = '/usr/lib/sendmail';
$MAX_DAYS = '10';
@picsallowed = ('gif','jpg','jpeg');
$subject1 = "You Have A Postcard!";
$subject2 = "Thank You for using our Postcard Card";
$uploadmax = '50';
$allowed = '1500';
require "$ENV{DOCUMENT_ROOT}/cgi-bin/program.cgi";
$domain_name = "instant-maj.com";
$location = "http://www.instant-maj.com/postcard/";
$basepicurl = "http://www.instant-maj.com/postcard/pictures/";
$cgi = "/cgi-bin/card.cgi";
$cards = "$ENV{DOCUMENT_ROOT}/postcard/cards/";
$basepicdir = "$ENV{DOCUMENT_ROOT}/postcard/pictures/";
$preview1 = "$ENV{DOCUMENT_ROOT}/postcard/preview1.html";
$preview2 = "$ENV{DOCUMENT_ROOT}/postcard/preview2.html";
$makecard = "$ENV{DOCUMENT_ROOT}/postcard/makecard.html";
$thank_you = "$ENV{DOCUMENT_ROOT}/postcard/thankyou.html";
$error = "$ENV{DOCUMENT_ROOT}/postcard/error.html";
$email1 = "$ENV{DOCUMENT_ROOT}/postcard/email1.txt";
$email2 = "$ENV{DOCUMENT_ROOT}/postcard/email2.txt";
$mailprog = '/usr/lib/sendmail';
$MAX_DAYS = '10';
@picsallowed = ('gif','jpg','jpeg');
$subject1 = "You Have A Postcard!";
$subject2 = "Thank You for using our Postcard Card";
$uploadmax = '50';
$allowed = '1500';
require "$ENV{DOCUMENT_ROOT}/cgi-bin/program.cgi";
Et le code de ma page "envoyer une carte virtuelle":
<HTML><style type="text/css">
<!--
body {
background-color: #000000;
}
.Style1 {color: #00FF33}
-->
</style>
<BODY>
<FORM ACTION="/cgi-bin/card.cgi" METHOD="POST">
<INPUT TYPE=HIDDEN NAME=action VALUE=preview>
<INPUT TYPE=HIDDEN NAME=type VALUE=picture>
<CENTER>
<p class="Style1">TEST</p>
<TABLE BORDER=1 BGCOLOR="#FFFFFF">
<TR>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/1.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="1.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/2.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="2.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/3.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="3.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/4.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="4.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/5.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="5.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/6.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="6.jpg"></TD>
</TR>
<TR>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/7.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="7.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/8.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="8.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/9.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="9.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/10.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="10.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/11.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="11.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/12.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="12.jpg"></TD>
</TR>
</TABLE>
<p><BR>
<BR>
<INPUT TYPE="submit" VALUE="Next">
</p>
<p> </p>
</CENTER>
</FORM>
</HTML>
<HTML><style type="text/css">
<!--
body {
background-color: #000000;
}
.Style1 {color: #00FF33}
-->
</style>
<BODY>
<FORM ACTION="/cgi-bin/card.cgi" METHOD="POST">
<INPUT TYPE=HIDDEN NAME=action VALUE=preview>
<INPUT TYPE=HIDDEN NAME=type VALUE=picture>
<CENTER>
<p class="Style1">TEST</p>
<TABLE BORDER=1 BGCOLOR="#FFFFFF">
<TR>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/1.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="1.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/2.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="2.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/3.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="3.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/4.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="4.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/5.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="5.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/6.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="6.jpg"></TD>
</TR>
<TR>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/7.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="7.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/8.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="8.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/9.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="9.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/10.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="10.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/11.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="11.jpg"></TD>
<TD WIDTH=75 ALIGN=CENTER>
<IMG SRC="http://www.instant-maj.com/postcard/pictures/12.jpg" HEIGHT=107 WIDTH=75 BORDER=1><BR>
<INPUT TYPE="radio" NAME="PICTURES" VALUE="12.jpg"></TD>
</TR>
</TABLE>
<p><BR>
<BR>
<INPUT TYPE="submit" VALUE="Next">
</p>
<p> </p>
</CENTER>
</FORM>
</HTML>