Click to See Complete Forum and Search --> : php.exe crash on submit <form>


Anon
06-28-2001, 12:30 PM
hello,

every time i submit the following form, an error box pops up with the message that php.exe caused a problem, and the browser returns an internal server error:

<form action="upload.phtml" method="post" enctype="multipart/form-data">
image:
<br>
<input type="file" name="image">
<input type="submit" value="absenden">
</form>

ma machine: win2k, apache 1.3.20, php 3.0.19

any suggestions,
tia,
alfons

ame12
06-28-2001, 05:58 PM
What are the contents of the upload.phtml file?? Here is my little test file (all in one upload test):


<HEAD>

<?php if (!isset($formtemp)) { ?>
<TITLE>File Uploading Interface</TITLE>
</HEAD>
<BODY>
<TABLE>
<FORM ENCTYPE="multipart/form-data" NAME=MyForm ACTION=upfile.php METHOD="POST">
<INPUT TYPE=hidden NAME=formtemp value=1>
<TR><TD>Choose File</TD><TD><INPUT NAME="MyFile"
TYPE="File"></TD></TR>
<TR><TD COLSPAN="2"><INPUT NAME="submit" VALUE="Submit"
TYPE="submit"></TD></TR>
</TABLE>

<?php } else { ?>

<?
If($MyFile != "none") {
copy($MyFile,"$MyFile_name");
unlink($MyFile);
}
else {
echo"You did not upload any file";
}
?>

<?php } ?>

</BODY>



Dave


===========================================
http://badblue.com/helpphp.htm
Free small footprint web server for Windows
PHP, file-sharing, Access/Excel transcoding
===========================================

Anon
06-29-2001, 03:45 AM
hey dave, thanks for your response. my upload.phtml looks like your code... tried to execute the code you suggestet, with the effect that php.exe still crashes...

don't know whats the problem, it's a fresh installed machine...

Anon
07-09-2002, 11:44 AM
Hello Fonsi

I have the same problem and don't know what's wrong ( the appliction is run on linux fine). can you give me a hint.

thanks in advance.

Matthias