PHP Classes

PHP Upload On IIS

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  PHP Upload On IIS  
Subject:PHP Upload On IIS
Summary:PHP Upload does not work on IIS
Messages:2
Author:chhlatnash
Date:2011-04-06 04:49:14
Update:2011-04-11 03:37:56
 

  1. PHP Upload On IIS   Reply   Report abuse  
Picture of chhlatnash chhlatnash - 2011-04-06 05:23:45
I have the following code

uploadfile.php

<?php
if(isset($_POST['submit'])){
$image =$_FILES["image"]["name"];
$uploadedfile = $_FILES['image']['tmp_name'];
move_uploaded_file($uploadedfile, "image/$image");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Testing</title>
</head>

<body>

<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="image" id="image" />
<input type="submit" name="submit" value="Submit" />
</form>

</body>
</html>

----------------------------------------

I have test the code on Apache webserver and it work just fine.
But this code does not work on IIS Webserver.
Please help help me
I the solution to this problem because we complete the project but stuck with this problem
Please help!

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.