Re: upload on Win9x

From: Date: Tue, 19 Jun 2001 22:23:08 +0000
Subject: Re: upload on Win9x
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54424@lists.php.net to get a copy of this message
yes... it goes like <form enctype="multipart/form-data" method="post"..... this is correct right? At 17:17 19/6/2001 +0930, Andrew Halliday wrote:
Have you set the content type of the form to be multipart MIME ? That screws me every time... AndrewH ----- Original Message ----- From: "Christian Dechery" <lemming@vento.com.br> To: <php-general@lists.php.net> Sent: Tuesday, June 19, 2001 11:16 AM Subject: [PHP] upload on Win9x I can't get file uploads to work on my Windows 98Me running Apache+PHP4.05... I did everything correctly according to the script I found on phpbuilder... it simply won't go... the error message is something like "can't open c:\file.ext for reading"... it's like it thinks it's a local file... this is the code... <pre> $upload_dir="c:\\apache\\htdocs\\mydir\\"; $upload_tmp_path=ini_get("upload_tmp_dir"); // this returns the correct path BTW $file=stripslashes($file); $newfile=$upload_dir."file.tmp"; // just for debugging, but it still doesn't work... chdir($upload_tmp_path); if(!copy($file,$newfile)) echo "<p><font face=tahoma size=2><b>Error uploading $newfile.</b></font></p>"; else process_file($newfile); </pre> ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer
____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

« previous php.general (#54424) next »