Hi, I have developed a html file to upload an image. It looks like this:
<form ENCTYPE="multipart/form-data" method="post" action="../noticias.php" name="ingresar">
<input type="file" name="foto" size="35">
<input type="submit" name="accion" value="ok">
</form>
noticias.php looks like this:
<?
copy($foto,"fotos\".$foto_name);
?>
Everything goes well at my developing environment where I use php 4.0.4 for win32, windows 98, apache 1.3.9 for win32; but in the production environment (WinNT server 4.0 with service pack 6.0 and IIS 4.0)it doesn't work.
My php.ini file looks like this:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path= ;
doc_root="D:\INETPUB\WWWROOT";
user_dir= ;
file_uploads=On ; WARNING! I saw this line in a forum article
upload_tmp_dir = "C:\TEMP" ;
upload_max_filesize = 2097152;
extension_dir ="C:\PHP";
enable_dl= On
I tried changing folder permissions in the NT server, and still not work.
Could anybody help me?