hi,

I encountered a bit of problem when trying to perform file upload with
apache 1.3.12-27mdk

package : apache 1.3.12-27mdk + apache-common 1.3.12-27 + mod_php +
php4.0.2

The problem is when I try to perform file upload, it will cause
segmentation fault
when the multipart form was posted to it.


upload.html
--------
<HTML>
<HEAD>
<TITLE>Testing file upload</TITLE>
</HEAD>
<BODY>
<FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD="post" >
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="8192">
<INPUT TYPE="file" name="uploadfile"><br>
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
</BODY>
</HTML>

upload.php
-------
<HTML>
<HEAD>
<TITLE>Testing file upload</TITLE>
</HEAD>
<BODY>
<?php

 if(isset($uploadfile))
  {
//  copy ($uploadfile, "/tmp/phpupload");
  print ("Reached isset statement");
  print ("Uploadfilename : $uploadfile_name<br>\n");
  print ("Uploadfilesize : $uploadfile_size<br>\n");
  print ("Uploadfiletype : $uploadfile_type<br>\n");
  }
?>

<FORM ACTION="<?php echo $PHP_SELF?>" METHOD="post"
ENCTYPE="multipart/form-data">
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="8192">
<INPUT TYPE="file" name="uploadfile"><br>
<INPUT TYPE="submit" VALUE="Send File">
</FORM>

</BODY>
</HTML>


/var/log/httpd/error.log
---------------
[Thu Sep 21 10:55:45 2000] [notice] child pid 2535 exit signal
Segmentation fault (11)

The above works fine with Apache-1.3.12-12 and mod_php-3.0.16 which
ships default
with Mandrake 7.1

Outcome
------
Reached isset statementUploadfilename : mkiso.txt
Uploadfilesize : 68
Uploadfiletype : text/plain

Please help me with the above problem.

Thanks

Best regards,
Boon Kiat

begin:vcard 
n:Khoo;BK
tel;fax:2275808
tel;work:2276180
x-mozilla-html:FALSE
org:eLinux Pte Ltd;Technical Division
version:2.1
email;internet:[EMAIL PROTECTED]
title:E-commerce consultant
adr;quoted-printable:;;3, Shenton Way,=0D=0A#22-09 Shenton House	;;;068805;
x-mozilla-cpt:;0
fn:BK Khoo
end:vcard


begin:vcard 
n:Khoo;BK
tel;fax:2275808
tel;work:2276180
x-mozilla-html:FALSE
org:eLinux Pte Ltd;Technical Division
version:2.1
email;internet:[EMAIL PROTECTED]
title:E-commerce consultant
adr;quoted-printable:;;3, Shenton Way,=0D=0A#22-09 Shenton House	;;;068805;
x-mozilla-cpt:;0
fn:BK Khoo
end:vcard

Reply via email to