Moving files on windows server 2003 using php

Closed
ryan - May 7, 2010 at 08:16 PM
 ryan - May 11, 2010 at 12:32 AM
Hello,

i am developing my thesis and ive encounter a problem regarding uploading/moving files to server's folder. i use widows server 2003 OS. here is my code.

<?php
error_reporting(0);
session_start();


echo "<form action='test.php' method='post' enctype='multipart/form-data'>";
echo "<input type='file' name='file' id='file'>";
echo "<input type='submit' name='submit' value='submit'>";
echo "</form>";
if($_POST['submit']=="submit")
{


move_uploaded_file($_FILES["file"]["tmp_name"],
"../test/files/".$_FILES["file"]["name"]);



}


?>


when i run this code to XP, it is successfully upload/move the file. but the problem is that it doesnt work at windows server 2003.

any idea??? please help.

1 reply

i found the answer by my self
0