I´ve testing the follow (upload.html) for upload files to a server wich is running php+pws (Windows98).
******upload.html*****************
<html>
<head><title> Prueba de Upload </title></head>
<body>
<FORM ENCTYPE="multipart/form-data" ACTION="manejafile.php" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
Send this file: <INPUT NAME="archivo" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
</body>
</html>
**********manejafile.php***********
<?php
echo "El archivo en el servidor es ". $archivo ;
echo "<br>";
echo "El nombre es $archivo_name";
echo "<br>";
echo "El tamaño es $archivo_size";
echo "<br>";
echo "El tipo es $archivo_type";
echo "<br>";
echo " see you later....";
?>
when I choose the file and pick "Send File" Button (all this from the same server e.g. http://localhost/based/upload.html), a file in the c:\windows\temp is created with name "nsformXX.tmp" extension and the "manejafile.php" script show all properties of the file uploaded. But, when I load "upload.html" from another PC on the LAN trought IP adrees e.g. "http://10.14.4.154/based/upload.html" it load and works properly (I can choose the file in that PC) and even when I pick "Send File" Button the "manejafile.php" script show the file properties; but looking the "C:\windows\temp" in the server, I take in account the file was not written.
Why from localhost it works very good (file is uploaded), but from another PC the file is not uploaded.
!Help!
Even, when I change the upload_tmp_dir to "c:\miname\temp" for avoid "c:\windows\temp" the file uploaded from localhost is still saved in "c:\windows\temp" after restart the server for reload php.ini.
I wonder why?
😕
some help is welcome.
Eloy Martinez.